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 sjsj2732, Yesterday, 04:31 AM
    0 responses
    28 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    284 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    281 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    132 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    90 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X