TickSize work for you?

Created at 12 Aug 2017, 09:24
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!
SwapBridgeCapital's avatar

SwapBridgeCapital

Joined 01.10.2014

TickSize work for you?
12 Aug 2017, 09:24


Try their reference code

/api/reference/internals/symbol/ticksize

 

protected override void OnTick()
{
    Print("The current symbol has TickSize: {0}", Symbol.TickSize);
}

 

During backtest ( EURUSD tick data ) log results are 

10/08/2017 23:59:58.000 | The current symbol has TickSize: 1E-05

 

double pipSize = Symbol.PipSize;
            Print("DEBUG: Symbol Pip Size {0} ", pipSize);

During backtest ( EURUSD tick data ) log results are


10/08/2017 23:59:58.000DEBUG: Symbol Pip Size 0.0001
 


@SwapBridgeCapital
Replies

BeardPower
14 Aug 2017, 16:19

RE:

Hi,

what exactly is your issue?

1E-05 is just the scientific notation of 0.00001.

EURUSD is notated with five digits.
TickSize: 0.00001
PipSize is TickSize times 10: 0.0001


@BeardPower