From there, it seems the last indicator bar not being drawn is expected until the next bar has started. In my case, I'm using end-of-day historical data (non-realtime), so it seems the last day in my historical data will never get an OnBarUpdate event called, since I don't know the next close until the end of the [next] day. Is there a some kind of workaround to get this calculation made and the indicator for today's bar drawn, because I need it to make a trade at that time rather than waiting until the next close? Setting "CalculateOnBarClose = false;" doesn't work for non-realtime historical data, according to my testing and the docs.
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!
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
NinjaTrader
Indicator for last bar not drawing (OnBarUpdate not called)
Collapse
X
-
Indicator for last bar not drawing (OnBarUpdate not called)
I read this thread:
From there, it seems the last indicator bar not being drawn is expected until the next bar has started. In my case, I'm using end-of-day historical data (non-realtime), so it seems the last day in my historical data will never get an OnBarUpdate event called, since I don't know the next close until the end of the [next] day. Is there a some kind of workaround to get this calculation made and the indicator for today's bar drawn, because I need it to make a trade at that time rather than waiting until the next close? Setting "CalculateOnBarClose = false;" doesn't work for non-realtime historical data, according to my testing and the docs.Tags: None
-
I see this is an old post, but was there ever a resolution to it? I was interested in scanning the end of day data to look for signals on the daily charts after hours for orders going into the next day.
This allows for backtesting, but not actual present day trading on the daily charts.
Comment
-
Hello neilgalloway,
Thank you for your post.
This is resolved in NinjaTrader 8 where you can set the Calculate option to OnEachTick or OnPriceChange and see the last bar on the chart call OnBarUpdate even if it is a historical bar and/or you are using an End Of Day feed.
Below, you will find links to some FREE resources to help you more about NinjaTrader 8.- Live Training Webinars: http://ninjatrader.com/PlatformTraining
- NinjaTrader's YouTube Channel: https://www.youtube.com/user/NinjaTraderLLC/featured
- NinjaTrader 8 Training Playlist: https://www.youtube.com/playlist?lis...ZmVnauWXkWe0Nf
- Online Help Guide: http://ninjatrader.com/support/helpGuides/nt8/en-us/
- Video Library: http://ninjatrader.com/support/helpG...eo_library.htm
Please let me know if you have any questions.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by algospoke, Yesterday, 06:40 PM
|
2 responses
23 views
0 likes
|
Last Post
by algospoke
Today, 07:04 PM
|
||
Started by ghoul, Today, 06:02 PM
|
3 responses
14 views
0 likes
|
Last Post Today, 06:43 PM | ||
Started by jeronymite, 04-12-2024, 04:26 PM
|
3 responses
45 views
0 likes
|
Last Post
by jeronymite
Yesterday, 10:10 PM
|
||
Started by Barry Milan, Yesterday, 10:35 PM
|
7 responses
21 views
0 likes
|
Last Post Today, 06:16 PM | ||
Started by AttiM, 02-14-2024, 05:20 PM
|
10 responses
181 views
0 likes
|
Last Post
by jeronymite
Today, 06:11 PM
|
Comment