There is always data for the secondary bars. You can see the time slot 28/10/2021 15:01:00 to 15:10:01.
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
Behavior on delayed bar update
Collapse
X
-
Hello cliffhu,
Do you see this behavior testing the indicator that I have attached?
I am essentially printing the same thing, but this would give us a a common script to test with, so we can be sure there is not something else going on with your script.
I've attached screenshots showing my results for a couple realtime prints as well.
If you see issue with my test script, could you elaborate how the test is made? Please be as specific as possible (connection made, data provider, etc.)
JimNinjaTrader Customer Service
Comment
-
Hi Jim,
My print was from the attached indicator when running within a strategy with same primary bars. My data provider is Kinetick.
IndicatorVIXMTF.zip
I will test your script on Monday when market is open.
Comment
-
Hi Jim,
The issue is about when the indicator is running in a strategy. So I added your indicator in a simply strategy and got the same result as mine.
Primary Timestamp: 01/11/2021 11:10:00 Secondary Timestamp: 01/11/2021 11:00:00 PC Clock: 01/11/2021 11:10:03
Primary Timestamp: 01/11/2021 11:20:00 Secondary Timestamp: 01/11/2021 11:10:00 PC Clock: 01/11/2021 11:19:59
Primary Timestamp: 01/11/2021 11:30:00 Secondary Timestamp: 01/11/2021 11:21:00 PC Clock: 01/11/2021 11:29:59
I think data is not an issue here, as it always print the first or second bar in the 10 min interval.
Comment
-
Hello cliffhu,
There are still details missing from the bigger picture regarding your issue. I have not reproduced the prints you mention.
When I add the test indicator in a strategy, I see prints for the last ^VIX minute bar seen before the primary bar updates.- Do you see the behavior with this test strategy?
- If not, can you modify the strategy and share an export of the strategy + indicator that demonstrates the behavior?
- If you do see the behavior with this test strategy, do you see the behavior testing in a clean environment?
Clean Environment Test
Creating a clean environment can be done by following the steps below:- Close NinjaTrader 8, and rename the "NinjaTrader 8" folder in My Documents to something like: "NinjaTrader 8 OLD" Do not delete this folder.
- Uninstall NinjaTrader from the Windows Control Panel
- Delete the C:\Program Files (x86)\NinjaTrader 8 folder
- Reinstall using the installer from http://ninjatrader.com/PlatformDirect
- Import the sttached strategy + indicator and test to reproduce the mentioned prints. Please follow up with your results.
For example, Close NinjaTrader and rename the new "NinjaTrader 8" folder to "NinjaTrader 8 NEW" and the "NinjaTrader 8 OLD" folder to "NinjaTrader 8." Then restart the platform. Simply put: NinjaTrader 8 will always load the "NinjaTrader 8" folder in My Documents.
Attached FilesJimNinjaTrader Customer Service
Comment
-
Hello Cliff,
I have sent you a reply over email regarding how Update could be used to update the secondary data series.
We are suggesting the following gets added to OnBarUpdate for cases like these. You may copy and paste the section below into the script in post #20 to test.
Code:if (BarsInProgress == 1) { indi.Update(indi.BarsArray[1].Count - 1, 1); }
Last edited by NinjaTrader_Jim; 01-05-2022, 06:52 AM.JimNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
5 views
0 likes
|
Last Post Today, 02:34 AM | ||
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
12 views
0 likes
|
Last Post Today, 02:00 AM | ||
Started by Mariawilcoxi, Today, 01:32 AM
|
0 responses
4 views
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
||
Started by gleichnerany, Today, 01:17 AM
|
0 responses
5 views
0 likes
|
Last Post
by gleichnerany
Today, 01:17 AM
|
||
Started by WHICKED, 03-27-2024, 12:33 PM
|
4 responses
46 views
0 likes
|
Last Post Today, 12:28 AM |
Comment