How do you measure the real impact of economic news on an EA? - page 3

One detail on the slippage-setting point: if an EA passes that input to MqlTradeRequest.deviation, its effect depends on the execution mode. That field is used with Instant/Request execution and ignored with Market/Exchange execution. Lowering it therefore doesn't cap slippage on a Market Execution symbol. I'd record the execution mode alongside requested and filled prices when comparing news trades.

MetaQuotes documents the distinction here: https://www.mql5.com/en/book/automation/experts/experts_market_buy_sell

MQL5 Book: Buying and selling operations / Trading automation
MQL5 Book: Buying and selling operations / Trading automation
  • www.mql5.com
In this section, we finally begin to study the application of MQL5 functions for specific trading tasks. The purpose of these functions is to fill...
Den Martin #:

One detail on the slippage-setting point: if an EA passes that input to MqlTradeRequest.deviation, its effect depends on the execution mode. That field is used with Instant/Request execution and ignored with Market/Exchange execution. Lowering it therefore doesn't cap slippage on a Market Execution symbol. I'd record the execution mode alongside requested and filled prices when comparing news trades.

MetaQuotes documents the distinction here: https://www.mql5.com/en/book/automation/experts/experts_market_buy_sell


Hi Den,

thanks, I didnt know that. So a "max slippage" input can look like protection in the settings and do nothing at all on a market execution symbol.

If I buy an EA with such an input, I'd now ask the seller which execution mode it was tested on. And the requested vs filled price on a few live releases shows quickly if the setting does anything or not.

Best regards,
Chris