Download MetaTrader 5

How to fix these warnings in my ea

To add comments, please log in or register
Mahfoud Allali
350
Mahfoud Allali  
Osama Shaban
1589
Osama Shaban  

These warnings will not effect on the results but no one like to see them on his meta editor ...

Anyway, you just change every line having OrderSelect to as follows ...

if(OrderSelect(i,SELECT_BY_POS)==true){
   ...
   ...
   ...
}

 and change every OrderModify command to the form shown bellow ...

bool res = OrderModify(OrderTicket(),OrderOpenPrice(),Stopl,Takep,0,Red);

 If you still got more warninngs, just let me know by sending me a message ...

Irwan Adnan
930
Irwan Adnan  
Mahfoud Allali:

instead of using : 

result = OrderSend(.....)

 use :

if(!OrderSend(......))return;

 that structure is also valid for the other.

To add comments, please log in or register