- Cristiano Rodrigo Olegini: the winning lines no longer show do you know why?
Answered for the third time, stop deleting your other posts! They are created by the tester. If you want them on the live chart, code it.
- Cristiano Rodrigo Olegini: code error?
Yes. Not checking OrderSelect. Checking symbol twice. No need to test OrderType (unless you open pending orders). You must update Bid and Ask predefined variables between server calls and sleeps. No need for Sleep. Not checking return codes and reporting errors.
void CloseThisSymbolAll() { for (int trade = OrdersTotal() - 1; trade >= 0; --trade) if( OrderSelect(trade, SELECT_BY_POS) && OrderMagicNumber() == MagicNumber && OrderSymbol() == Symbol() ) { if(!OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), slip, Blue)) Alert("Close failed"); } }

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
ea expert.
the winning lines no longer show do you know why?
code error?