Experts: Order Manage EA

 

Order Manage EA :

This is a percentage of the user set stop-loss or profit robot.

Author: nino

 
 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.

 
WDholic:

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.

 
angevoyageur:

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
 
nino_zhang:
sorry , i try to update , but the manager not audit it
Post a new comment to remind him the update.
 
IronFX - FxPro does not work.
 
hi nino, did you ever update this? commendable if its works, it could be with number/amount option instead of percentage
Reason: