Why my trade close prematurely?
This code close the manually open trades when
1) LMWA4 and LMWA20 crossed
2) When the profit is more than 50 pips.
Why my trades are closed before LMWA4 and LMWA20 crossed and profit still less than 50 pips? Also, why there are warning messages as below:
return value of 'OrderSelect' should be checked 20250314 Simplified EA.mq4 45 2
return value of 'OrderClose' should be checked 20250314 Simplified EA.mq4 49 2
return value of 'OrderClose' should be checked 20250314 Simplified EA.mq4 57 2
Please help , thanks