Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 sidlercom80, 10-28-2023, 08:49 AM
    170 responses
    2,271 views
    0 likes
    Last Post sidlercom80  
    Started by Irukandji, Yesterday, 02:53 AM
    2 responses
    17 views
    0 likes
    Last Post Irukandji  
    Started by adeelshahzad, Today, 03:54 AM
    0 responses
    3 views
    0 likes
    Last Post adeelshahzad  
    Started by CortexZenUSA, Today, 12:53 AM
    0 responses
    3 views
    0 likes
    Last Post CortexZenUSA  
    Started by CortexZenUSA, Today, 12:46 AM
    0 responses
    1 view
    0 likes
    Last Post CortexZenUSA  
    Working...
    X