Twice the spread in pips

Created at 18 May 2015, 04:22
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
deklin's avatar

deklin

Joined 31.12.2014

Twice the spread in pips
18 May 2015, 04:22


The seventh argument for ExecuteMarketOrder() is slippage in market range pips.  

I want the slippage to be twice the spread.  

Using this does NOT work:
(Symbol.Spread * 2)

The problem is that Symbol.Spread is not measured in pips. How can I get twice the spread in pips?

 

 


@deklin
Replies

Spotware
16 Jun 2015, 17:40

Dear Trader,

There is a general formula to covert price difference to pips.  

pips = priceDif / Symbol.PipSize

So if you want to calculate spread in pips just replace priceDif with Symbol.Spread

 


@Spotware