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

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?

    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Spiderbird, Today, 12:15 PM
    0 responses
    1 view
    0 likes
    Last Post Spiderbird  
    Started by lorem, Yesterday, 09:18 AM
    3 responses
    13 views
    0 likes
    Last Post lorem
    by lorem
     
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    12 responses
    42 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by FrazMann, Today, 11:21 AM
    0 responses
    5 views
    0 likes
    Last Post FrazMann  
    Started by geddyisodin, Yesterday, 05:20 AM
    8 responses
    52 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X