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])........
....
}
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]
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
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