When I change my Time Frame '"Load data based on" from Days (e.g. 1 day) to Bars (e.g. 500 bars), my indicator plots do not display on the the latter. What could be the issue here. Kindly assist.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Ninjatrader8 Loading Bars Then No Indicator Plots
Collapse
X
-
Ninjatrader8 Loading Bars Then No Indicator Plots
Hello,
When I change my Time Frame '"Load data based on" from Days (e.g. 1 day) to Bars (e.g. 500 bars), my indicator plots do not display on the the latter. What could be the issue here. Kindly assist.Tags: None
-
Hello mutongoi,
Try adding the SMA indicator on the chart.
Are you seeing this plot after 20 bars?
If so, there may be an issue with the code in the script.
If the expected behavior is not occurring, this would indicate that the condition that triggers the action is not evaluating as true. This could result in an order not being submitted, a value not being assigned, a drawing object not being drawn, or many other actions.
To understand why the script is behaving as it is, such as placing orders or not placing orders or drawing objects when expected, it is necessary to add prints to the script that print the values used for the logic of the script to understand how the script is evaluating.
In the indicator add prints (outside of any conditions) that print the date time of the bar and all values compared in every condition that triggers the action.
For your script, within the condition that sets the plot value, also print the value being assigned to the plot series along with the date time of the bar.
The prints should include the time of the bar and should print all values from all variables and all hard coded values in all conditions that must evaluate as true for this action to be triggered. It is very important to include a text label for each value and for each comparison operator in the print to understand what is being compared in the condition sets.
The debugging print output should clearly show what the condition is, what time the conditions are being compared, all values being compared, and how they are being compared.
Prints will appear in the NinjaScript Output window (New > NinjaScript Output window).
I am happy to assist you with analyzing the output from the output window.
Run or backtest the script and when the output from the output window appears save this by right-clicking the output window and selecting Save As... -> give the output file a name and save -> then attach the output text file to your reply.
Below is a link to a support article that demonstrates using informative prints to understand behavior.
Let me know the date and time the behavior occurred or when you are expecting the behavior to occur.
Please let me know if I may further assist with analyzing the output or if you need any assistance creating a print.Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
558 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment