Some Custom Indicator Functions in EA

 

Hello,

I am trying to use the follow code in an EA. Any alternative code ?

SetIndexStyle(0, DRAW_NONE);

SetIndexBuffer(0, ExtMapBuffer0);



SetIndexStyle(1, DRAW_NONE);

SetIndexBuffer(1, ExtMapBuffer1);



SetIndexStyle(1, DRAW_NONE);

SetIndexBuffer(2, ExtMapBuffer2);



IndicatorShortName("ShortNameHere"); 
 
habboubih: I am trying to use the follow code in an EA. Any alternative code ?
  1. RTFM you can't use ANY indicator specific functions: buffers, indicatorCounted etc.
  2. No need to either. Detailed explanation of iCustom - MQL4 forum
  3. If you want to see the lines either attach the indicator to the chart or have the EA draw them (polyline)
Reason: