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 burtoninlondon, Today, 12:38 AM
    0 responses
    2 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    11 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    12 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,982 views
    3 likes
    Last Post jhudas88  
    Working...
    X