Please explain your question. What do you exactly mean?
I mean normally in the DeInit() function if you include something like this below.
say for instance im using 2 stochastics in my EA ie stocastic_1 and stochastic_2
if i include stochastic_1 in the OnDeinit() function like below, when backtesting is complete, stochastic_1 will not show on the chart because it has been released, however because stochastic_2 was NOT released, stochastic_2 will show on the chart.
My question is, when i have custom indicators in my EA, even though i didn't "release" it, it does not show on my chart after running my EA through the Strategy Tester...how do i get it to show on the chart after testing is complete.
void OnDeinit(const int reason)) { IndicatorRelease(stochastic_1); //This will remove or release stochastic_1 from the chart when backtesting is complete in the strategy tester }
- 2009.11.23
- Андрей
- www.mql5.com
If you made a template with your(s) indicator(s) and name it "Tester". Your(s) indicator(s) will be showed on chart at end of testing.
yes but with which parameters?
this is not a solution.
That sucks. I know you can add templates but then all the positions you have taken will disappear upon loading the template. It just becomes a annoying everytime you do a backtest and you want to analyse your chart.
Thanks to all for your replies.
Have you tried what I suggest to you. I don't say you to add a template manually. To be more clear.
- Made a chart as you want.
- Save as a template with the name : Tester.tpl
- Run your backtest.
- If set on "Auto open chart" or you use "Open chart" on result tab.
You obtain a chart with your template AND your positions (from backtesting). Isn't what you want ?
yes but with which parameters?
this is not a solution.
Are you not a bit lazy ? ;-)
no, i am very lazy. ;)
but this doesn't change the fact that i have to manually copy and change parameters when i am inspecting results of strategy tester for every backtest i do.
which should work automatically.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi Guys
I was wondering if anyone knew how to have custom indicators remain on chart after backtesting?