Hello all.
I’m trying to compare the value of the difference between 2 EMAs once each day just after market open and going back and checking the previous 2 candles to see if it’s growing or shrinking.
Is this correct? And how can I check it’s executing correctly?
emadiff = ExponentialAverage[20](Close)- ExponentialAverage[50](Close)
IF Time = 143500 then
C5 = (emadiff>emadiff[1] AND emadiff[1]>emadiff[2])
C6 = (emadiff<emadiff[1] AND emadiff[1]<emadiff[2])
Endif
Thanks.
Yes, that’s correct.
You can use RETURN emadiff, then check yourself on your screen.