Wondering if anyone has / knows of a successful way to create the NYAD cumulative?
I’m not sure P123 has the power to do that, but figured I might as well check…
The issue I’m running into is getting today’s A/D to add to prev day A/D without actually coding a line for every single day prior…
Here’s what I have (very simple)
SetVar(@adv0,UnivCnt(“Close(0)>close(1)”))
SetVar(@dec0,UnivCnt(“Close(0)<close(1)”))
SetVar(@AD, @adv0 - @dec0)
@AD
I have toyed with the various math factors but cannot seem to find one that works for this (or the issue may be that I’m understanding it wrong)
Would love to hear what your guys thoughts are…