Test1 : 96.48
Test2 : 56.0000000000002
Indicator 'Testa': Error on calling 'OnBarUpdate' method on bar 505: Input string was not in a correct format.
Print("Test0 : " + Crude.MasterInstrument.RoundToTickSize(SMA(20)[0]).ToString());
Print("Test1 : " + Crude.MasterInstrument.RoundToTickSize(CLSeries[0] ).ToString());
Print("Test2 : " + (Math.Abs(Crude.MasterInstrument.RoundToTickSize(CLSeries[0]) - Crude.MasterInstrument.RoundToTickSize(SMA(20)[0])) / Crude.MasterInstrument.TickSize).ToString());
What's the error about? Thanks!
Comment