Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

GetBarofSession

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

    GetBarofSession

    I am trying to get an indicator to only work if the current bar count of the session is 5 or less.

    if
    (Bars.GetSessionBar <= 5)
    {

    if (Close[1] >= Open[1] )
    {
    do something
    }
    }

    Where am I going wrong? NT7 does not like the "<="

    thanks

    #2
    Hello Velocity,

    I believe you're after Bars.BarsSinceSession instead.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by inanazsocial, Today, 01:15 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by rocketman7, Today, 02:12 AM
    0 responses
    10 views
    0 likes
    Last Post rocketman7  
    Started by dustydbayer, Today, 01:59 AM
    0 responses
    2 views
    0 likes
    Last Post dustydbayer  
    Started by trilliantrader, 04-18-2024, 08:16 AM
    5 responses
    23 views
    0 likes
    Last Post trilliantrader  
    Started by Davidtowleii, Today, 12:15 AM
    0 responses
    3 views
    0 likes
    Last Post Davidtowleii  
    Working...
    X