Download MetaTrader 5
To add comments, please log in or register
Deposit to your account using bank cards via Gate2Shop
pema83
7
pema83 2015.03.07 23:42 

Hi!

For an EA I use a custom indicator with iCustom.

It works fine so far.

But for the strategy I need to change the indicators parameters at some point of time.

I can get a new indicatorhandel with iCustom(...) with the new indicator settings. this works fine too.

But then I will have two indicators running. I need to get rid of the old one.
I tried to use indicatorrelease() but this is not working.

It just says 

ERR_FUNCTION_NOT_ALLOWED

4014

Function is not allowed for call

 

How can I get rid of the  old indicator or change it's parameters?

Thanks for your help!

 Best regards 

Documentation on MQL5: Timeseries and Indicators Access / IndicatorRelease
Documentation on MQL5: Timeseries and Indicators Access / IndicatorRelease
  • www.mql5.com
Timeseries and Indicators Access / IndicatorRelease - Reference on algorithmic/automated trading language for MetaTrader 5
Alain Verleyen
Moderator
30299
Alain Verleyen 2015.03.08 00:12  

You can't change the parameter.

IndicatorRelease() is working only on a live chart. With the Strategy Tester you can't call it, so don't worry about it.

/
To add comments, please log in or register