***Important problem :strategy tester***
-
Hello
How can i make EA base of indicators that when i use strategy tester it isn't show that indicator on chart that it is possible to show my strategy that i don't love any body see my strategy!
for example when i use stochastic in EA in strategy tester it draw stochastic or when use moving average it draw that on chart
Thanks so much for your helping
-
into on Init section place this:

-
@miro1360
Thank so much , it seems work excellent
but why when i use this in one EA it affect all of other EA ? what's wrong?!
Thanks again
-
it have probably effect on whole metatrader (until restart? )
for EA where you need see indicators, give the same line but with "false" instead of "true":
HideTestIndicators(false);but I am not sure with this, I never used it so you need take experiments

-
@miro1360
Thanks again
Do you know anything for same problem in mt5 ?
i use Hide (true) in custom mt5 code but not work and has error!
Thanks -
in MT5 it is very different working with indicators and they dont support simple function for this, only IndicatorRelease function but there must be done tons of changes in code manually
-
@miro1360
Thanks
is it true for example :
double value = IndicatorGetValue(iMA(SYMBOL,TIMEFRAME,MAperiod,MAshift,MAmethod,AppliedPrice),0,SHIFT+FXD_MORE_SHIFT);
IndicatorRelease(value);
?
(when i use moving average i found this in the codes of fxdreema mt5) -
to get IndicatorRelease working you need first create indicator state with handle ...
this before variables:
int MA_handle=INVALID_HANDLE;this in on Init:
MA_handle=iMA(Symbol(),0,MA_Period,MA_shift,MA_smooth,PRICE_CLOSE);and finally this in on Deinit:
IndicatorRelease(MA_handle);and all this you need create for each indicator

and maybe it is not working at all

-
@miro1360
Thank so much
for example:
i added
MA_handle=iMA(Symbol(),0,1,0,MODE_SMA,PRICE_CLOSE);
MA_handle2=iMA(Symbol(),0,2,0,MODE_SMA,PRICE_CLOSE);
MA_handle3=iMA(Symbol(),0,3,0,MODE_SMA,PRICE_CLOSE);
MA_handle4=iMA(Symbol(),0,4,0,MODE_SMA,PRICE_CLOSE);
in oninit
and
IndicatorRelease(MA_handle);
IndicatorRelease(MA_handle2);
IndicatorRelease(MA_handle3);
IndicatorRelease(MA_handle4);
on deinit
and
int MA_handle=INVALID_HANDLE;
int MA_handle2=INVALID_HANDLE;
int MA_handle3=INVALID_HANDLE;
int MA_handle4=INVALID_HANDLE;
before variable
but this is not work!
is it possible this problem because of fxdreema ima codes ?
how can i fix this ?
Thanks -
I thought it can working with these handle operations but it is not working - I tested it now (I tested it in correct way with CopyBuffer function and arrays), but without success ...
so you need wait or communicate with MQL company if they add HideTestIndicators in MT5but you can do this little trick in on Init:

it makes visual mode in MT5 tester functionless and user can test EA only without visual mode option ...
-
@miro1360
Thank you very much
I sent request in help desk in MQL5 community and this is answer :
"
Sorry, such function won't be implemented in MQL5. You can use The IndicatorRelease() function in the Tester"
Thanks -
standard reply from MQL5
IndicatorRelease() is not working in tester (at least in case as I tested it) ...