Download MetaTrader 5

CTrade SetDeviationInPoints

To add comments, please log in or register
Download MetaTrader 5 for iPad and trade anywhere!
Dua Yong Rew
5422
Dua Yong Rew 2013.07.15 15:38 

what does this do?

if I set this up, when I use PositionOpen it should follow?

and why do I still need to input a deviation when I use PositionClose? 

Dua Yong Rew
5422
Dua Yong Rew 2013.07.16 16:44  
anyone know more info on ctrade?
Alain Verleyen
Moderator
30721
Alain Verleyen 2013.07.16 17:40  
doshur:
anyone know more info on ctrade?
https://www.mql5.com/en/search#!keyword=ctrade
Dua Yong Rew
5422
Dua Yong Rew 2013.07.17 03:37  

I read through the documents but still no clue.

i also discovered the positionclose can omit the slippage. So how it the ctrade works? 

Alain Verleyen
Moderator
30721
Alain Verleyen 2013.07.17 09:54  
doshur:

I read through the documents but still no clue.

i also discovered the positionclose can omit the slippage. So how it the ctrade works? 

You can read the code of CTrade in MQL5\Include\Trade\Trade.mqh.

You can have slippage when closing a position. Closing a position is only a trade request at a given price, there is technically no difference with opening a position.

To add comments, please log in or register