Forum

My iCustom code always return empty value (2147483647)----------------------(second edition)

this is the indicator code #property indicator_buffers 2 double var_a[]; double var_b[]; int init(){ SetIndexBuffer ( 0 , var_a); SetIndexBuffer ( 1 , var_b); return ( 0 ); } int start(){ double getMainTrend; double getMainTrend2; getMainTrend = iMACD ( NULL , Maintrend_TimeFrame, 8 , 17 , 9

My iCustom code always return empty value (2147483647)

this is the indicator code double val[]; int count= 0 ; int init(){ SetIndexBuffer ( 0 ,val); return ( 0 ); } int start(){ TheValue=count; ArrayResize (val,count+ 1 ); val[count]=TheValue; count++; return ( 0 ); } int deinit(){ return ( 0 ); } Now this is the ea #property strict int init(){ return

Problem asigning value to array

i dont know why but it always return zero, help double test_array[]; int i; i= 1 ; int init(){ return ( 0 ); } int start(){ test_array[i]= 3.2 ; alert( "value = " + test_array[i]); return ( 0 ); } int deinit{ return ( 0 ); }

How to make a simple count of every ticks on indicators?

I have tried IndicatorCounted and Bars, but its always return the same value. I need to count ticks for arrays