I added the two new data series on line 29 and 30. They are initialized as a class on lines 58 and 59. I also set it as a double in lines 135 and 195. And finally, I added the data series to the properties in lines 210 and 217.
I can't tell what I've done wrong here but no strategy I use this indicator with can identify the most recent swing high or low with this code. Can you tell me what I did wrong? I tried using the Ninjatrader Swing indicator as a reference because I know that works well. I can't figure out what I did wrong here.
(The indicator is publicly available by the way. I just need help on a slight modification I'm making because the old code was incomplete)
Comment