NexusFi: Find Your Edge


Home Menu

 





Help Recognizing New Rays


Discussion in NinjaTrader

Updated
    1. trending_up 848 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 posts
    2. attach_file 2 attachments




 
Search this Thread

Help Recognizing New Rays

  #1 (permalink)
 khari998 
New Orleans Louisiana United States
 
Experience: Intermediate
Platform: Ninjatrader 7 & 8
Trading: forex
Posts: 4 since Jun 2014
Thanks Given: 0
Thanks Received: 0

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

Attached Files
Elite Membership required to download: SwingRays.cs
Elite Membership required to download: SwingRays (edited).cs
Started this thread Reply With Quote




Last Updated on November 19, 2017


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts