Ruben Ortega:
Im coding an ea that sells but i dont know why it doesnt work. I upload you the image of the pattern that i want to code. Thanks
The first observation is this:
for (int i=0;i<OrdersTotal();i++) {
If you have no orders in the system this loop will never execute - have you tested that?
After that it is a matter of debugging each step to make sure you reach and successfully execute the OrderSend()
Ruben Ortega:
Im coding an ea that sells but i dont know why it doesnt work. I upload you the image of the pattern that i want to code. Thanks
for (int i=0;i<OrdersTotal();i++) { int orden_seleccionada = OrderSelect (1,SELECT_BY_POS,MODE_TRADES); if (OrderSymbol()==Symbol() && OrderMagicNumber()==magic) { trade= false; break; } }
for (int i=0;i<OrdersTotal();i++) { int orden_seleccionada = OrderSelect (1,SELECT_BY_POS,MODE_TRADES); if (OrderSymbol()==Symbol() && OrderMagicNumber()==magic) { trade= false; break; } }
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
Im coding an ea that sells but i dont know why it doesnt work. I upload you the image of the pattern that i want to code. Thanks