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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    133 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    75 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    117 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    113 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    90 views
    0 likes
    Last Post CarlTrading  
    Working...
    X