How would I construct a basic boolean indicator that returns a 1 if the black is above (or crosses above) the blue, otherwise returns a zero? I would like to then test the indicator value in an ATM strategy.
It appears that the code sets up a data series for the two lines, which the MAMA indicator then plots. I can't seem to access these from a custom indicator or otherwise can't figure out how to structure the C#.
I started with a copy of the MAMA indicator, but that gets complicated since I would like to plot the binary (1,0) result as a separate line (indicator) in a separate panel.
Thanks for your guidance on this.
Comment