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

Break at EOD

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

    Break at EOD

    Hello, i have a general question regarding the use of Break at EOD and having reread the help guide section on this property of a data series.

    Im trying to track and trace a 'potential' issue in my own custom indicator.

    I use a custom bar type which is similar to the range bar type :
    I enable tick replay for the chart
    i have a mixture of charts minute pnfigure and my custom bar type
    all of which have Break EOD enabled

    I have a section of code which for resetting some calculations uses the
    Bars.IsFirstBarOfSession and IsFirstTickOfBar property checks.

    In theory and in practice the firstbarofsession will indeed be the first bar in the new session if break EOD is enabled to true. In the case of break EOD disabled to false - would the firstbarofsession be the next bar after the bar which spans over the previous session and into the current session or would it be the bar that spanned the sessions ie include the bar data that initiated in the prior session?

    the reason i ask is i want to eliminate this as a potential source of the issue.

    given that i have consistently applied the break eod to be enabled ie true i am not anticipating issues with this but i wanted to check ... which if any combinations of break at eod and certain bar types could trigger issues with
    Bars.IsFirstBarOfSession and IsFirstTickOfBar property checks.

    thanks

    #2
    Hello soulfx,

    Thank you for your patience.

    In theory and in practice the firstbarofsession will indeed be the first bar in the new session if break EOD is enabled to true. In the case of break EOD disabled to false - would the firstbarofsession be the next bar after the bar which spans over the previous session and into the current session or would it be the bar that spanned the sessions ie include the bar data that initiated in the prior session?
    This is correct.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by RaddiFX, Today, 10:15 AM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by 21laienoch, Today, 10:21 AM
    0 responses
    1 view
    0 likes
    Last Post 21laienoch  
    Started by Rogers101, 05-05-2024, 11:30 AM
    23 responses
    68 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by Human#102, Today, 09:54 AM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by reynoldsn, 05-04-2024, 02:34 PM
    3 responses
    30 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X