Download MetaTrader 5

Some Custom Indicator Functions in EA

To add comments, please log in or register
Do you often publish source codes? Find out how to do that correctly!
habboubih
37
habboubih 2013.11.22 14:26 

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"); 
whroeder1
14519
whroeder1 2013.11.22 15:35  
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)
To add comments, please log in or register