- how to check the number of orders
- problem in taking order
- Stop Loss error
Try this
int x; for(int i=0;i<OrdersTotal();i++) { OrderSlect(i,SELECT_BY_POS); if(OrderSymbol()==Symbol()) { x++; break; } } if(x==0)//it means no orders for your currency
ok Roger i try!!! thankssssssssssssssss in fact i mean the possibility to do multi currency trading i will inform you tomorrow if it's ok grazie :-))
Good luck and remember you can't test multi-currency ea's in the tester! So don't be disappointed if you tried and it didn't work.
Best you can do is run your ea on a short time frame 1 or 5 min on a live demo, that way you should get enough possible trades to see if it works.
Let us know how you make out!
Keith
Good luck and remember you can't test multi-currency ea's in the tester! So don't be disappointed if you tried and it didn't work.
Best you can do is run your ea on a short time frame 1 or 5 min on a live demo, that way you should get enough possible trades to see if it works.
Let us know how you make out!
Keith
ciao Kminler. why cant i try my EA in multicurrency with tester??? i can tester the first one andh then the second one.... then i sum the results. no??
anyway at the moment i am able to open some order with this:
int x; for(int i=0;i<OrdersTotal();i++) { OrderSlect(i,SELECT_BY_POS); if(OrderSymbol()==Symbol()) { x++; break; } } if(x==0)//it means no orders for your currency
but i use two different type of EA ( one for Eur/Usd and one for Eur/Gbp ) and obviously two different open order conditions and 2 different close order conditions.
with the text above i can open some order simultaneasly but how can i close them according my rules??
if i use :
if x==1
....... close order conditions
it's wrong?

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use