Experts: Order Manage EA
for(int i = OrdersTotal()-1; i>=0; i--) { if( OrderSelect( i, SELECT_BY_POS, MODE_TRADES ) == false ) break; if(ManageAllSymbol && OrderSymbol()!= Symbol())break;
i think this EA wont work correctly ..because it is always break if we set manageallsymbol= true.
but if we set manageallsymbol=false it will close open position in other symbol.
i think this EA wont work correctly ..because it is always break if we set manageallsymbol= true.
but if we set manageallsymbol=false it will close open position in other symbol.
Exact, if ManageAllSymbol is true, it will manage only current symbol, and if it's false, it will manage all symbols.
Should be :
if(!ManageAllSymbol || OrderSymbol()!= Symbol()) continue;
By the way, first if() should also use "continue" and not "break". Didn't check rest of the code.
This code is not reliable.
Exact, if ManageAllSymbol is true, it will manage only current symbol, and if it's false, it will manage all symbols.
Should be :
By the way, first if() should also use "continue" and not "break". Didn't check rest of the code.
This code is not reliable.
sorry , i try to update , but the manager not audit it
Order Manage EA :
Author: nino