Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Multidata indicator abort problem
Collapse
X
-
Multidata indicator abort problem
Since Ninja does not allow "Hidden" data (like, if I want to see only an indicator on another data series I cannot Hide the data bar, only make them Transparent), I tried to make an indicator that Adds a dataseries of a different data type than the primary bars and then use only conditional background color changes based on the dataseries 2 data, thinking that would not distort the spacing of the primary bars the way adding a visible second dataset does. I made sure to use BarsInProgress to make the calcs conditional, but Ninja aborts, saying it encountered an error and needs to shut down. Is it even possible to do this? I made the invisible data minute bars and put the indicator on volume bars. Can I not mix types, even using the check (BarsInProgress == 1) before running any of the data2 code?Tags: None
-
Thank you RyanM.Originally posted by NinjaTrader_RyanM View PostHello Tarkus11,
Can you please clarify what you're looking to do?
You can use DataSeries, which are synced to bars and do not plot. I'm not sure if this fits what you're looking for with "hidden".
For a simple example, let's say I wanted to copy the SMA to do the following:
Use a second dataseries that is Add-ed, not displayed as the data source,
Conditionally change the background color of the primary data depending on whether the unseen data makes the SMA slope upward or downward.
The Add-ed data that will change the panel color will be minute data while the primary data will be Tick or Volume.
I have tried a more complicated version of this and NT is aborting.
Comment
-
Yes, this is possible. One thing you should look out for is the different format in TimeStamps between time based charts and tick or volume. NinjaTrader stamps bars when they will end, so your minute bar time stamps project into the future. Your tick and volume time stamps will be according to the time of the last trade.
To debug your more complicated version:
Start simple and verify behavior at each step to make sure it works properly.
Please let us know the error message you're getting and share the code you're using to see it.Ryan M.NinjaTrader Customer Service
Comment
-
Ah - I see. So that means I will run in synchronization problems - so I will have to address it more like the "Correlation" and/or "Spread" indicators.Originally posted by NinjaTrader_RyanM View PostYes, this is possible. One thing you should look out for is the different format in TimeStamps between time based charts and tick or volume. NinjaTrader stamps bars when they will end, so your minute bar time stamps project into the future. Your tick and volume time stamps will be according to the time of the last trade.
To debug your more complicated version:
Start simple and verify behavior at each step to make sure it works properly.
Please let us know the error message you're getting and share the code you're using to see it.
Thanks. That makes it clearer.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
603 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
349 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
104 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
560 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment