(login for full post details)
|
#1 (permalink)
|
New Orleans Louisiana United States
Experience: Intermediate
Platform: Ninjatrader 7 & 8
Trading: forex
Posts: 4 since Jun 2014
Thanks: 0 given,
0
received
|
Hey guys, I need help getting the most recent swing low/high to be recognizable in ninjatrader strategies by exposing them as a Data Series or a Plot so they can be used as stops/targets. The original swing rays indicator (Swing Rays V2 that's here on futures.io) and my edited version are both down below.
In the properties section of the original indicator, its set to take the last swing high/low from "Values" but for some reason, it can't be recognized at all so I added in my own variables to map it on to the most recent swing high/low. (the closest line that's dashed, not solid)
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.
Can any experienced programmer help me rewrite this so that the plots for the most recent swing high/low are recognizable in ninjatrader strategies? I can't figure out why it's not working.

Here's a picture of what it looks like on a chart
|
|
|