Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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.