Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnEachTick and IsLastBarOfSession and IsFirstBarOfSession

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

    OnEachTick and IsLastBarOfSession and IsFirstBarOfSession

    Hi,

    when I set the calculate to OnEachTick then IsLastBarOfSession and IsFirstBarOfSession do not work and the IsLastBarOfSession is always true and IsFirstBarOfSession is false.

    Please let me know , how I can have IsLastBarOfSession and IsFirstBarOfSession worked on each tick calculation.

    #2
    Hello bosajin,

    Bars.IsFirstBarOfSession will be true for every update of the first bar of the session, even when Calculate is .OnEachTick.
    https://ninjatrader.com/support/help...rofsession.htm

    However, Bars.IsLastBarOfSession will always be true when Calculate is .OnEachTick.
    "When running Calculate.OnEachTick / OnPriceChange, this property will always return true on the most current real-time bar since it is the last bar that is updating in the trading session. If you need to find a bar which coincides with the session end time, please use the SessionIterator.ActualSessionEnd."
    https://ninjatrader.com/support/help...rofsession.htm
    https://ninjatrader.com/support/help...oniterator.htm
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by b16_aln, Today, 05:15 AM
    0 responses
    4 views
    0 likes
    Last Post b16_aln
    by b16_aln
     
    Started by sidlercom80, Today, 04:57 AM
    0 responses
    7 views
    0 likes
    Last Post sidlercom80  
    Started by patricia70, Today, 03:57 AM
    0 responses
    5 views
    0 likes
    Last Post patricia70  
    Started by pjsmith, Today, 03:25 AM
    0 responses
    7 views
    0 likes
    Last Post pjsmith
    by pjsmith
     
    Started by cincai, Today, 01:04 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_Jason  
    Working...
    X