I'm using 500 Tick chart. Sometimes I encounter a peculiar issue - the data that the Strategy programmatically perceives differs from what I visually observe on the chart. For instance, the Strategy prints the data (OHLC and Time) for the last closed cadnle on the chart it is attached on and this data is not related to what I see visually from this chart. Sometime it is OK, sometime not. I cannot identify the exact reason when it occurst for sure. What can be the reason?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Tick Chart data issue
Collapse
X
-
Tick Chart data issue
Hi,
I'm using 500 Tick chart. Sometimes I encounter a peculiar issue - the data that the Strategy programmatically perceives differs from what I visually observe on the chart. For instance, the Strategy prints the data (OHLC and Time) for the last closed cadnle on the chart it is attached on and this data is not related to what I see visually from this chart. Sometime it is OK, sometime not. I cannot identify the exact reason when it occurst for sure. What can be the reason?Tags: None
-
Make sure all charts start on the exact same day,
that is, days to load is the same for all charts.
Otherwise, are you using Break at EOD?
-
Hi bltdavid,
Yes, the option is enabled in the chart's data.Otherwise, are you using Break at EOD?
Do you mean exactly all the opened charts? Even if they are not related to the attached Strategy any way?Make sure all charts start on the exact same day,
that is, days to load is the same for all charts
In order to be on the same page, let me explain in more detail how the Strategy is being started:
- I open a chart I need, for instace ES Tick500;
- then right click on the chart -> Strategies -> MyStrategy -> OK. I expect that the Strategy is attached to the specific chart (date series) that I see visually.
- then enable it in the ControlCenter.
After these steps sometimes everything is OK and sometimes not. I cannot reproduce the error when I want it to be reproduced.
Comment
-
Hello webus,
Thanks for your notes.
If you are comparing multiple charts then ensure that each chart is using the same Data Series settings such as TradingHours, Days to load, Price based on, End date, etc.
Is your strategy running with Calculate.OnBarClose?
The Data Box window could be used to hover your mouse over the last closed candle to compare the prints from the strategy in the Output window with the OHLC values noted on the Data Box window.
When testing this on my end I'm seeing the correct OHLC values and Time print to the Output window when comparing the prints to the chart.
See this demonstration video: https://brandonh-ninjatrader.tinytak...NF8yMjQ2NTM0MA
Attached is the strategy used to test this so you may test it on your end using the same steps seen in the demonstration video.Attached Files<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
-
Hi NinjaTrader_BrandonH,
Probably something is not clear in my initial request. Let' me explain it step-by-step:If you are comparing multiple charts then ensure that each chart is using the same Data Series settings such as TradingHours, Days to load, Price based on, End date, etc.
1. I have a Strategy that prints the last closed candle's data in the NinjaScriptOutput window (the same as your 'OHLCPrintTest').
2. I start the Strategy on one 500Tick chart and compare the data I see in NinjaScriptOutput with the data I see visually on this chart in DataBox.
3. This is how I start the Strategy:
- I open a chart I need, for instace ES Tick500;
- then right click on the chart -> Strategies -> MyStrategy -> OK. I expect that the Strategy is attached to the specific chart (date series) that I see visually.
- then enable it in the ControlCenter.
4. After these steps sometimes I see the correct data, but sometimes - not. For instance, I can see that the last closed candle's time HH:MM:SS:xxx, but there is not such a candle on the Strategy's chart.
Again, sometimes it works OK, sometimes - not. I'm interesting - what can lead to such an issue?
I've tried it on OnBarClose (Time[0], Close[0], etc) and on OnEachTick (Time[1], Close[1], etc). The result is the same - sometime it see the correct data, somtimes not.Is your strategy running with Calculate.OnBarClose?
Yes, this is how I compare the data: visually from DataBox and programmably from NinjaScriptOutput.The Data Box window could be used to hover your mouse over the last closed candle to compare the prints from the strategy in the Output window with the OHLC values noted on the Data Box window.
Again - sometimes I see the corect data also. But sometimes - not. I do not understand what can be the reason.When testing this on my end I'm seeing the correct OHLC values and Time print to the Output window when comparing the prints to the chart.
See this demonstration video: https://brandonh-ninjatrader.tinytak...NF8yMjQ2NTM0MA
Comment
-
Hello webus,
Thanks for your notes.
I have tested this multiple times using the 'OHLCPrintTest' and I have not yet been able to reproduce the behavior.
Please ensure that you are updated to the current version of NinjaTrader (8.1.2.1) and then retest to see if you are able to reproduce the behavior.
If you need to update NinjaTrader to the current version, follow the steps below.- Shutdown all programs including NinjaTrader *important
- Download NinjaTrader from the link below
- Double click the downloaded file to execute it
- Follow the on screen instructions
- Restart NinjaTrader
https://ninjatrader.com/support/help...ease_notes.htm
Also, test to see if you are able to reproduce the behavior using the Playback connection.
To look into this behavior further we would need a way to reproduce the behavior so that we can investigate it. Once you are able to reproduce the behavior, please let us know the steps and settings you have taken to reproduce it and we will be happy to investigate this matter further.
<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
-
Hi,
Thanks, but no. I will not update the platform any more. The latest update took me several days of my life. And in the end I had to update back and manually restore all my projects that were not exported:Originally posted by NinjaTrader_BrandonH View PostHello webus,
Please ensure that you are updated to the current version of NinjaTrader (8.1.2.1) and then retest to see if you are able to reproduce the behavior.
Hi, I've updated the NT platform from '8.1.1.7' to '8.1.2.0'. I just downloaded the installer and installed it with default parameters. Now I cannot import anything - the platform is just freezed as soon as I klick 'Import'. Why do issues keep arising with the NT8 platform? Why does such a simple action as 'updating' lead to
Hi, I've been waiting for the compilation to finish for more than 5 minutes already. Is this another "feature" of the new update? Bless the developers of these updates, oh Lord. Should I wait more?
In the Release I do not see anything about Tick chart - so, I guess I don’t need to bother myself with updating the platform and solving problems with the update. My question is related to Tick chart.
Also, test to see if you are able to reproduce the behavior using the Playback connection.
As I wrote - I cannot reproduce it when I want. It appears randomly from time to time. This is what can be called a "bug". All what I can do is to start the 'OHLCPrintTest' and try to catch the issue and then make a video. However, if I send you the results with the issue, what will it give you? You will see the same as I described. The data from NinjaScriptOutput will differ from what is visible on the chart in DataBox. Will this move us closer to a solution?
I tried, but the issue appeared only twice and only on a live chart.Also, test to see if you are able to reproduce the behavior using the Playback connection.
Comment
-
Hello webus,
Thanks for your notes.
Unfortunately in order to investigate this matter further we would have to be able to reproduce the behavior. Without reproducing the behavior we cannot look into what might have caused the behavior to occur.
If at any time you are able to reproduce the behavior using certain steps, please let us know and we will be happy to investigate the matter further.
In regard to deleting the db/cache folder, this could be done by closing NinjaTrader and navigating to Documents\NinjaTrader 8\db\cache folder and deleting the contents within this folder.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
64 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
139 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
75 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|
Comment