Search code examples
mql4indicator

MQL custom indicator calling another custom indicator


I know how to call a custom indicator from an EA but would like to call a custom indicator from another custom indicator which I cannot manage to do. The compiler does not give me any errors. Is this possible to do? Thanks for your help.


Solution

  • Absolutely same approach -

    double value=iCustom(Symbol(),Period(),indicator_name,/* custom indicator buffer parameters separated by comma */,buffer,shift); - no difference between ea and indicator