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
double lastProfit1,lastProfit2=0.0;
if(OrderSelect(0,SELECT_BY_POS,MODE_HISTORY)==true){lastProfit1=OrderProfit();}
if(OrderSelect(1,SELECT_BY_POS,MODE_HISTORY)==true){lastProfit2=OrderProfit();}
I think this is how I would do it . . . .
one specify a function or a algorithm to calculate number of bars elapsed since 2 successive loosing trends
Thanks for all the info i have updated the original code i think i got it right this time :P.if not your advice is highly appreciated