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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    51 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    142 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    275 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X