Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CrossAbove

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

    CrossAbove

    Novice question: How do I refer to price if I want to do something when price crosses above a certain point, like price crossing above the high of the second last bar?

    (Price,High[1],2)

    #2
    Hello Pete77,

    Thank you for writing in.

    You'll want to use the Close series to obtain the price: https://ninjatrader.com/support/help...nt7/?close.htm

    If your script's CalculateOnBarClose property is set to false, Close[0] will refer to the current price. If this property is set to true, Close[0] will refer to the close price of the most recently closed bar.

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    581 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    338 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    552 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X