Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Refering to OHLC of the EntryBar

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Refering to OHLC of the EntryBar

    How to refer to the OHLC of the Entry Bar of a strategy?
    For example I want to set my stop of a long entry to the Low of the Entry Bar and the stop of a short position to the High of the Entry Bar..
    Can I do this within the Ninja Script wizard? If yes how?

    #2
    Hello,
    You can do this within the Strategy Wizard by selecting Price Data from the condition builder and set the Low/High to a variable and then use the variable from the stops and targets window.

    If you are wanting to use this outside of the NinjaScript Wizard you can call the Low of the current bar by using Low[0] or the High of the current bar by using High[0].

    If we can be of any other assistance please let us know.
    Cody B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    558 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X