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 TraderG23, 12-08-2023, 07:56 AM
    9 responses
    382 views
    1 like
    Last Post Gavini
    by Gavini
     
    Started by oviejo, Today, 12:28 AM
    0 responses
    1 view
    0 likes
    Last Post oviejo
    by oviejo
     
    Started by pechtri, 06-22-2023, 02:31 AM
    10 responses
    125 views
    0 likes
    Last Post Leeroy_Jenkins  
    Started by judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Yesterday, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Working...
    X