Forum

xb4d indicator

hi i use xb4d indicator for my ea & i use beffer 0 >0 for "buy" and buffer0<0 'sell' like: if ( iCustom ( NULL , 0 , "xb4d" , 50 , 0 , 0 )> 0 ) return ( "buy" ); else if ( iCustom ( NULL , 0 , "xb4d" , 50 , 0 , 0 )< 0 ) return ( "sell" ); but in this coding ea send "buy"

last fractal upper or lower

hi please help me about last upper or lower fractals candle no. i write this code: int OnInit() { int i,j ; for(i=1;i==200;i++) { if(iFractals(NULL,0,MODE_UPPER,i)!=0) { j=i; Comment(j); break; } } } but mql show error ('}' - not all control paths return a value) pls help i will be crazy

ima in momentum

hi i wana to create a ea about momentum pls help me to do it! when i type this: double m=iMA(NULL,0,28,0,MODE_SMMA,iMomentum(NULL,0,40,PRICE_CLOSE,0),0); Comment(m); mt4 is shown 0.0 for me please tell me whats wrong with this