Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Understanding Calculate.OnBarClose and Break at EOD

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

    Understanding Calculate.OnBarClose and Break at EOD

    Hi,

    Suppose I am trading a market like ZS, whose close is at 2:20pm EST (1:20pm CST) using 60 minute (1 hour) and I have Calculate = Calculate.OnBarClose in my strategy. While adding the data series to my chart, I also had "Break at EOD" checked.

    When I run a strategy live on ZS, I noticed that while the chart is displayed fine, but the strategy doesn't run the OnBarUpdate on the 2:00pm-2:20pm bar (last bar of the day) at 2:20pm EST or even 3:00pm EST (which is the rounded 60 min bar).

    The 2:00pm-2:20pm bar's OnBarUpdate ran when the next day's session opened (at the beginning of the next bar at 8pm EST). Is there anyway to make the 2:00pm-2:20pm bar's OnBarUpdate run at say 3pm EST ?
    Last edited by uday12; 04-23-2019, 06:01 PM.

    #2
    Hello uday12,

    Thank you for your post.

    When you say your strategy doesn't close the 2-2:20 pm bar, do you mean it doesn't exit on session close?

    It's not the Break at EOD in the Data Series that affects whether your strategy exits at the end of the session - that is actually in the strategy settings. Have you tried changing your trading hours template so that the bar ends when the session does?

    Thanks in advance; I look forward to further assisting you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    47 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X