how do I detect the change in indicator value from strategy?
for eg. when I look at the databox, the indicator shows n/a for the values that I did not plot.
when I plot the values, I can see the values in the databox.
so how do I compare if prev indicator value ==n/a and current indicator value>=0 from my strategy?
this is what I did but I don't see the logic getting executed.
} if(PullbackBounce(20).UP[0]>=0 && !PullbackBounce(20).UP.IsValidDataPoint(1)) { Print(Bars.GetTime(1).ToString() + "Change in direction from short to long" ); } if(PullbackBounce(20).Down[0]<=0 && !PullbackBounce(20).Down.IsValidDataPoint(1)) { Print(Bars.GetTime(1).ToString() + "Change in direction from long to short" ); }
Comment