Download MetaTrader 5

How to fix these warnings in my ea

To add comments, please log in or register
Having troubles understanding the code? Articles can help you!
Mahfoud Allali
324
Mahfoud Allali 2015.11.07 20:35 
Osama Shaban
1447
Osama Shaban 2015.11.07 21:14  

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
886
Irwan Adnan 2015.11.08 02:34  
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