how to set the indicator's input parameter from an Expert Adviser

 

I calling an indicator in my EA using iCustom, and the indicator has an input parameter. How can back-test the EA using different input values of the indicator's input parameter...

Of course I can set a default value and compile the indicator with different default input values. But, I don't want recompile it every time.

Please let me know what is the right way to do this. 


Thank you,

 
mikeitexpert:

I calling an indicator in my EA using iCustom, and the indicator has an input parameter. How can back-test the EA using different input values of the indicator's input parameter...

Of course I can set a default value and compile the indicator with different default input values. But, I don't want recompile it every time.

Please let me know what is the right way to do this. 


Thank you,

int  iCustom( 
   string           symbol,     // symbol name 
   ENUM_TIMEFRAMES  period,     // period 
   string           name        // folder/custom_indicator_name 
   ...                          // list of indicator input parameters 
   );
https://www.mql5.com/en/docs/indicators/icustom
Documentation on MQL5: Technical Indicators / iCustom
Documentation on MQL5: Technical Indicators / iCustom
  • www.mql5.com
[in]  The name of the custom indicator, with path relative to the root directory of indicators (MQL5/Indicators/). If an indicator is located in a subdirectory, for example, in MQL5/Indicators/ [in] input-parameters of a custom indicator, separated by commas. Type and order of parameters must match. If there is no parameters specified, then...
 


Thank you so much ... Big like

 
We can all use search here. It would be much more helpful if you posted an actual example
Reason: