5 tick consecutive

 

Hi

is possible to say like 5 tick consecutive in one diretion or more, how i can do that??

woth bid price??

es

1.4000..1.4001.1.4002 1.4003 1.4004


not like this

1.4000..1.4001 1.4002 1.4003 1.4002 1.4003

 

You'll need to clarify.

Haven't the faintest idea what you're talking about.


CB

 

I think he means if the current tick is greater than the previous one and this happens five consecutive times then go long.


Just check if the current tick is greater than the previous one and add one to a counter but if the condition is false clear the long counter and increment the short counter then trade if a counter reaches five.

 

double tick[5];

int start()

{

tick[4]=tick[3];

tick[3]=tick[2];

tick[2]=tick[1];

tick[1]=tick[0];

tick[0]=Bid;

if(tick[4]>tick[3]&&tick[3]>tick[2]&&tick[2]>tick[1]&&tick[1]>tick[0])........

if(tick[4]<tick[3]&&tick[3]<tick[2]&&tick[2]<tick[1]&&tick[1]<tick[0])........

....

}

 
how to collect tick data?
 
doshur wrote >>
how to collect tick data?

It depends on how do you plan to use it. I mean file or memory.

 

ok i should try this

if this tick is about 10 or more how i can

is buble sort code

tick [2 ]> Tick [1]

....

tick [10 ]> Tick [9]

Reason: