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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    93 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    138 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    123 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    73 views
    0 likes
    Last Post PaulMohn  
    Working...
    X