TickSize work for you?

12 Aug 2017, 09:24TickSize work for you?#1
RedRhinoFXposts: 34since: 01 Oct 2014

Try their reference code

https://ctdn.com/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
 


www.RedrhinoFX.com
14 Aug 2017, 16:19RE:#2
BeardPowerposts: 35since: 07 Feb 2016

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