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?
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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