Commisions and Slippages in MQL5?

 

Are commisions and slippages included in EA automatically?


Thanks.

 
Shele:

Are commisions and slippages included in EA automatically?


Thanks.

What EA?

 
Eleni Anna Branou #:

What EA?

There is no such a thing in OrderSend function as Slippage like in the MT4, so my question is why - is it because it's already implemented into EA or Symbol automatically by MQL5?

 
Shele: Are commisions and slippages included in EA automatically?.

You have already asked a similar question for which I provide answers: Does MQL5 has a built in Slippage Cost and Commision Cost in the backtest?

Please go read them.

Does MQL5 has a built in Slippage Cost and Commision Cost in the backtest?
Does MQL5 has a built in Slippage Cost and Commision Cost in the backtest?
  • 2022.03.17
  • www.mql5.com
The question is above. Thanks...
 
Shele #: There is no such a thing in OrderSend function as Slippage like in the MT4, so my question is why - is it because it's already implemented into EA or Symbol automatically by MQL5?

Yes, there is also "slippage" in MT5 version of OrderSend. Its called "deviation" in the Trade Request Structure used by OrderSend.

Documentation on MQL5: Constants, Enumerations and Structures / Data Structures / Trade Request Structure
Documentation on MQL5: Constants, Enumerations and Structures / Data Structures / Trade Request Structure
  • www.mql5.com
Trade Request Structure - Data Structures - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Reason: