Hi

I'm trying to plot price data on a custom chart, but the data loses its decimal places.

If I plot the close price directly, it works fine, but not with other data.

Values like:

  • 1.17028 become 1,
  • 0.687375 become 0,
  • 109.842 become 109.

It looks like float data is being cast to integer, but I've no idea why.

Immediately before the call to self.Plot() in OnData(), Degug shows the data is fine.

It doesn't matter what order AddSeries() is called in Initialize(), or what order self.Plot() is called in OnData(), the close price is plotted fine, but not other data.

I've run out of ideas. Any help would be appreciated.

Thanks.