How to calculate A/D Line in AB?
Assuming A/D Line = (Adv-Dec)+Previous value of A/D Line.
For data, I have the daily Advances in one symbol, the Declines in
another symbol. How would I create A/D Line.
I've read to start with a large value, such as 100,000 then go from
there.
For example. On day 1, calculate as 100,000 + (Adv-Dec)
On day 2, calculate as previous value (above) + (Adv-Dec)
etc.
My concern (because I don't know how to code this) is that each time I
run exploration, it will calculate from the 100,000 and not the
previous value.
Thank You