1-As a title How can i delete indicator automatically after run EA on strategy tester ?
I mean use code in on deinit !
2-When i use indicator in my EA and run it on strategy tester , after tester end it draw indicator on chart !, is it possible change it that nor draw on chart ?
Forum on trading, automated trading systems and testing trading strategies
HideTestIndicators function in MQL5
Young Ho Seo, 2016.01.29 12:17
I also wrote service desk if they are planning to implement HideTestIndicators function.
Their short answer was "No".
Just sharing some information I got.
Using IndicatorsRelesae function will not have exact same functionality as HideTestIndicators function.
Disabling visual mode isn't very elegant solution either. T T
So there is nothing we can do.
Thanks for your answer
and do you know answer for other question
This was/is a bug of the site. Many comments were emptied automatically.
You can just add 10 more moving averages and psar, bands,gator and etc...so that they will have to figure out which one you are using.
Here is the solution I use ...
double MA1c = iMA(Symbol(),TimeFrame,ma1Period,0,MODE_EMA,PRICE_CLOSE,0);
double MA2c = iMA(Symbol(),TimeFrame,ma2Period,0,MODE_EMA,PRICE_CLOSE,0);
double MA1p = iMA(Symbol(),TimeFrame,ma1Period,0,MODE_EMA,PRICE_CLOSE,1);
double MA2p = iMA(Symbol(),TimeFrame,ma2Period,0,MODE_EMA,PRICE_CLOSE,1);
double RSI = iRSI(Symbol(),TimeFrame,rsiPeriod,PRICE_CLOSE,0);
If you do the same as above, indicators will not show after the the back-test finish or stopped.
As a result, no one can know what indicators you are using. I suppose this is what you are looking for.
The question was about MT5. The method you mentioned works in MT4 only.
Yeah I am really funny :-)
If I remember well I was saying something like :
You can code your indicator(s) to no draw anything.