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

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.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bmartz, 03-12-2024, 06:12 AM
    4 responses
    32 views
    0 likes
    Last Post bmartz
    by bmartz
     
    Started by Aviram Y, Today, 05:29 AM
    4 responses
    12 views
    0 likes
    Last Post Aviram Y  
    Started by algospoke, 04-17-2024, 06:40 PM
    3 responses
    28 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by gentlebenthebear, Today, 01:30 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by cls71, Today, 04:45 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X