Use custom indicator in Expert Advisor for testing

 

Hello,

How is it possible to use a custom indicator (say MACD or so) in an Expert advisor for testing? I tried this but my journal says that 'SetIndexbuffer function must be called from custom indicator only'.

Thank you.

 
Use iCustom() . . .  search for it in the Forum,  it has been discussed many, many times.
Reason: