Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Input Condition 20% Less than Session open?

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

    Input Condition 20% Less than Session open?

    Hello I am trying to set a condition in relation to the session open price

    I want to set one of my conditions to be: close price is 20% Less than Session open close price.

    I cant seem to find the session open command and First bar of the session doesn't seem to be the solution. I am not sure if time intervals will work either.

    Thanks

    #2
    Hello ecmazii,

    Thanks for your post.

    The session open price would be the open price of the first bar of the session. So checking for Bars.IsFirstBarOfSession and obtaining the Open[0] of that bar would be the session open price. Reference: https://ninjatrader.com/support/help...rofsession.htm

    Alternatively, you could use the indicator CurrentDayOHL and use the "Open" plot as a reference for the session opening price level.

    I'm not sure what you mean by Session open close price. Do you mean that you are looking for the close[0] of the current bar to be less than the Close of the session opening bar?

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    45 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    31 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X