about an array

 

hola.

can some one help me i have an array with 10 price and i wanna compare in all tick the price withe an externe price.

array=1.575 1.625 1.58 1.62 1.585 1.615 1.59 1.61 1.595

and the price is XXXXX

and in a time if the XXXX not equal to a price for the array then open a new ordersend with the price XXXX

 

make a loop

for(int i=0; i<=10; 1++)

then run your comparison inside the loop so it compares each array index with your price

something like

if(price != array[i])

{

ordersend()

}

 
SDC:

make a loop

for(int i=0; i<=10; 1++)

then run your comparison inside the loop so it compares each array index with your price

something like

if(price != array[i])

{

ordersend()

}


tank you that s what i need.