simple iCustom call for an indicator shows line New comment [Deleted] 2010.03.29 21:42 Hello I just wrote an simple indicator to call another indicator, because each of its buffers is used...and nothing but a line appears! The code is simple, but I can't find the mistake! #property indicator_separate_window #property indicator_buffers 1 #property indicator_minimum 0 #property indicator_maximum 100 #property indicator_color1 FireBrick //---- input parameters extern int FastMA= 100; extern int SlowMA= 200; extern int Crosses= 50; extern bool Comments= false; double TRY[]; int init() { //---- indicators SetIndexBuffer(0,TRY); SetIndexStyle(0, DRAW_LINE); //---- return(0); } int start() { int counted_bars=IndicatorCounted(); int i, limit; if(counted_bars > 0) counted_bars--; limit=Bars-counted_bars; for(i= 0; i< limit; i++) { TRY[i]=iCustom(NULL, 0, "Cycle", FastMA, SlowMA, Crosses, Comments, 0, 1); } return(0); } //+------------------------------------------------------------------+ Please help me! Thanks leMai one of three buffers is hidden Coding help... Cyclical indicator Volume ima on array for expert advisor New comment
I just wrote an simple indicator to call another indicator, because each of its buffers is used...and nothing but a line appears!
The code is simple, but I can't find the mistake!
Please help me!
Thanks
leMai