for(i=OrdersTotal();i>0;i--){Print("Position ist offen!!");
if(D>=0 && D1<0){Print("Ausstiegsignal gefunden!!! -> versuche zu verkaufen!!!");
y++;
if(OrderSelect(y,SELECT_BY_TICKET)){Print("Order ist gewählt");
if(OrderType()==OP_BUY){Print("Order ist Buy und wird geschlossen!!");
OrderClose(y,OrderLots(),Bid,NULL,Red);
}}elsePrint("Order konnte nicht gewählt werden");
}}
the code above isn´t working... the one below is - wheres the difference?
How can I increase the Moddeling quality of the EA?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
You need to use loop , for example
It is more safely code.
the code above isn´t working... the one below is - wheres the difference?
How can I increase the Moddeling quality of the EA?
This EA can open Buy but not to close.