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 hdge4u, Yesterday, 09:09 PM
    0 responses
    15 views
    0 likes
    Last Post hdge4u
    by hdge4u
     
    Started by hdge4u, Yesterday, 09:02 PM
    0 responses
    8 views
    0 likes
    Last Post hdge4u
    by hdge4u
     
    Started by stormcloudseven, Yesterday, 08:41 PM
    1 response
    9 views
    0 likes
    Last Post DavidTrades  
    Started by GussJ, Yesterday, 01:24 PM
    0 responses
    23 views
    0 likes
    Last Post GussJ
    by GussJ
     
    Started by frslvr, Yesterday, 12:40 PM
    0 responses
    16 views
    0 likes
    Last Post frslvr
    by frslvr
     
    Working...
    X