array problem, please help

 

Dear all

I have difficulty in translating my idea into an array.

I want to use "CCI value cross 0 upward" as start of an array, recording all turning points of high (i.e. high[1] > high[2] and high[1] < high[0]) and low, and use "CCI value reaches 100" as the end of that array.

After that, I want to put the turning points to form another array for further calculation.

I have tried writing it myself, but it is really out of my ability. So please help.

wing

 

wing:

I have tried writing it myself, but it is really out of my ability. So please help.

So where is the code? No slaves here, either learn to code or pay someone.
 
WHRoeder:
So where is the code? No slaves here, either learn to code or pay someone.


WHRoeder:

Thanks for telling me what I should further provide. In fact, I really don't know how to write it, so please be patient. Below is my code:

int start()

double cciarray[1000];

int Y,A,B,C;

icci_1 = iCCI(NULL,PERIOD_M5,15,PRICE_CLOSE,1);

icci_2 = iCCI(NULL,PERIOD_M5,15,PRICE_CLOSE,2);

if(icci_1>0 && icci_2<=0)

}

Y=0;

A=2;

}

if(A>0 && icci_1<100)

{

A++;

}

if(A>0 && icci_1>=100)

{

A-1;

}

for (Y=0, Y!=A, Y++)

{

if(high[0]<high[1] && high[1]>high[2])

{

B=high[1];

cciarray[Y] = B[Y];

}

if(low[0]>low[1] && low[1]<low[2])

{

C=low[1];

cciarray[Y] = C[Y] ;

}

Above is what I am able to write now. Please correct me where I write is wrong.

wing