lol Thanks in advance.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Chart problems while backtesting
Collapse
X
-
Chart problems while backtesting
When backtesting a strategy everything appears to work properly. The analyzer page, trades are listed, etc. But the trades are not posted on the chart! What am I doing wrong? Also, every time I pull up the chart (inside Strategy Analyzer) all the indicators and studies are gone. I have to reload a template every time. I need help here too.
lol Thanks in advance.
Last edited by MikeS; 05-12-2007, 07:16 AM.Tags: None
-
Hi Mike,
After running a backtest, any indicators will be removed from the chart and any indicators embedded in the strategy called by the Add() method will be displayed.
Please double click in the chart canvas to bring up the properties dialog and ensure that the property "Plot executions" is set to a value where it will display.RayNinjaTrader Customer Service
-
Reply Chart Problems
Ray thanks for your reply.Originally posted by NinjaTrader_Ray View PostHi Mike,
After running a backtest, any indicators will be removed from the chart and any indicators embedded in the strategy called by the Add() method will be displayed.
Please double click in the chart canvas to bring up the properties dialog and ensure that the property "Plot executions" is set to a value where it will display.
I'm still confused! Is it possible to embed indicators "in the strategy called by the Add() method", using Strategy Wizard? If so, how?
Also, after running a backtest, if I click on the Chart tab (in Strategy Analyzer) the chart does not have the trades posted on it or any studies or indicators. If I click on the Trades tab (in Strategy Analyzer) and then right click on one of the trades, and click chart. A chart comes up with all the trades posted. But no studies or indicators. When I right click on THAT chart and load a template, all the posted trades disappear. What am I doing wrong?
Comment
-
See the following link, look at the image and see the #2, you will see "Plot on chart", make sure this is set to true.
All you are doing is expected behaviour except the first backtest where you are not seeing trades plotted on the chart.
After running a backtest, please confirm:
- You click on the chart tab to display the chart
- The chart displays data for the entire backtest period
- You double click on the chart to bring up the chart properties, what value is the "Plot executions" property set to?RayNinjaTrader Customer Service
Comment
-
Ray - Sorry, but I don't see a link to click on. When I double click on my chart, and bring up the Chart Properties window, "plot executions" is set to "TextAndMarker". If that is what you are talking about. All data is present.Originally posted by NinjaTrader_Ray View PostSee the following link, look at the image and see the #2, you will see "Plot on chart", make sure this is set to true.
All you are doing is expected behaviour except the first backtest where you are not seeing trades plotted on the chart.
After running a backtest, please confirm:
- You click on the chart tab to display the chart
- The chart displays data for the entire backtest period
- You double click on the chart to bring up the chart properties, what value is the "Plot executions" property set to?
The Strategy Analyzer will plot the executions on the chart. But there are no studies or indicators on the chart. When I load a chart template for the studies & indicators the plotted executions disappear. IS IT POSSIBLE TO HAVE THE EXECUTIONS PLOTTED ON A CHART WITH MY CHART TEMPLATE? I would like to have both on the chart at the same time. It would be much easier to analyze the strategy if both were on the chart.
Thanks for your help.
Comment
-
My fault, here is the link - http://www.ninjatrader-support.com/H...mparisons.html
When you run a backtest, the Strategy Analyzer will load the "Default" template plus any indicators that are embedded in the chart provided that you have set "Plot on chart" set to true as per the image in the link above.
If you reload another template, it will wipe out your trades.RayNinjaTrader Customer Service
Comment
-
Another problem
Still having problems.Originally posted by NinjaTrader_Ray View PostMy fault, here is the link - http://www.ninjatrader-support.com/H...mparisons.html
When you run a backtest, the Strategy Analyzer will load the "Default" template plus any indicators that are embedded in the chart provided that you have set "Plot on chart" set to true as per the image in the link above.
If you reload another template, it will wipe out your trades.
All "Plot on chart" settings are now set to "true". In Control Center, when I bring up a chart, the correct "Default" template is loaded. In Strategy Analyzer, after running a backtest, when I click on the chart tab, I do not get my "default" template. I have the plotted trades! Of course when I load the default template, the trades are gone.
I've tried loading the default template into the Strategy Analzer chart and saving it as the default template. But it doesn't work. Any suggestions?
Comment
-
Hi MikeS,
Let me clarifying expected behaviour so we are on the same page:
- When running a backtest, the default chart template is uses and loads default settings excluding any indicator that may be part of the Default template
- The backtest will load into the chart any indicators that are embedded for display in the strategy itself
- Embedding indicators are accomplished by calling the Add(Indicator indicator) method if programming manually, or setting the "Plot on chart" value to true in the wizard as per one of my earlier posts
- Loading a template in the Strategy Analyzer after running a backtest will wipe out your strategies plotted tradesRayNinjaTrader Customer Service
Comment
-
Hi,
The Add() to plot an indicator in a Strategy script does not seem to work for the Bollingers Indicators.
here is the way I've written it :
Add(Bollinger(Close,2,20).Upper);
I've also Tried
with
Add(Bollinger(2,20).Upper);
Any idea?
Another question : can we chose the color of the indicator in the add command?
Originally posted by NinjaTrader_Ray View PostHi MikeS,
Let me clarifying expected behaviour so we are on the same page:
- When running a backtest, the default chart template is uses and loads default settings excluding any indicator that may be part of the Default template
- The backtest will load into the chart any indicators that are embedded for display in the strategy itself
- Embedding indicators are accomplished by calling the Add(Indicator indicator) method if programming manually, or setting the "Plot on chart" value to true in the wizard as per one of my earlier posts
- Loading a template in the Strategy Analyzer after running a backtest will wipe out your strategies plotted trades
Comment
-
Jean, you can't add a specific plot, but an indicator - please try this
For defining the visualization, please review this tip - http://www.ninjatrader-support2.com/...ead.php?t=3228Code:Add(Bollinger(2, 20));
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
93 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
48 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
31 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
34 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
69 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment