Someone Help Me Solve This Code Error

 

Hi, i have an expert advisor that works, but sometimes i just recieve this error, can someone help me out on how to fix it?

Files:
 
You can provide the source code so that people here can help...
 
Amine Abed #:
You can provide the source code so that people here can help...
Thank you for the interest, heres the source file
Files:
MT4orders.mqh  77 kb
 
Timberwolves:

Hi, i have an expert advisor that works, but sometimes i just recieve this error, can someone help me out on how to fix it?

Hi Timberwolves


I found this error same you. this case you try change this code

#include <Trade\Trade.mqh>
CTrade               eatrade;

 eatrade.SellStop(Volume,SellPrice,_Symbol,SL,TP,ORDER_TIME_SPECIFIED,expdate,"S" + _Symbol + EnumToString(PERIOD_CURRENT) + "S");

Good luck

Timberwolves
Timberwolves
  • 2021.09.18
  • www.mql5.com
Trader's profile
Reason: