Lot of Errors while Trading High Impact News events with EA

 

Hello,


Today, I traded two news event  AUD - Monetary Policy Meeting Minutes and CAD - Core Consumer Price Index (CPI) both closed in loss because of very high slippage, high spread and StopLevel. Apart from this i get a lot of error in Terminal (Expert) Tab. 

List of Error capture during news event :

Error 130 : Invalid stops => While Opening Pending Order (Buy Stop/Sell Stop)
Error 136 : Off quotes => While Opening Pending Order (Buy Stop/Sell Stop)
Error 4109 : Trade is not allowed => While Opening New Direct Order (OP_BUY/OP_SELL)
Error 4073 : Cannot refresh history


Some errors like 4073 have no official document in MQL5.com, I searched and found some answer from forum but still did not understand why it occurring. Apart from this how i can resolve Slippage issue?
 
anuj71:

Hello,


Today, I traded two news event  AUD - Monetary Policy Meeting Minutes and CAD - Core Consumer Price Index (CPI) both closed in loss because of very high slippage, high spread and StopLevel. Apart from this i get a lot of error in Terminal (Expert) Tab. 

List of Error capture during news event :

Error 130 : Invalid stops => While Opening Pending Order (Buy Stop/Sell Stop)
Error 136 : Off quotes => While Opening Pending Order (Buy Stop/Sell Stop)
Error 4109 : Trade is not allowed => While Opening New Direct Order (OP_BUY/OP_SELL)
Error 4073 : Cannot refresh history


Some errors like 4073 have no official document in MQL5.com, I searched and found some answer from forum but still did not understand why it occurring. Apart from this how i can resolve Slippage issue?
There is no actual solution to slippage.

All you can do is avoid such times, or have the slippage be restricted, so that your trade request will be rejected.

4073 was an addition later on and has not been documented. In MQL4/include/ exists a file with all valid error codes, you can look it up there, but no explanation is given. Search the errors from MQL5 and find a similar error name, and read the description there.

"Requested history not found"
Reason: