Login Page - Create Account

Support Board


Date/Time: Sun, 19 May 2024 12:52:59 +0000



Post From: Prices incorrect for Open, High, Low Close

[2020-10-30 08:57:37]
like2trade - Posts: 117
Hi Ackin,

I tried your recommendation and now the output is:

O: 23.3700008392, H: 23.3800010681, L: 23.3700008392, C: 23.3800010681

The problem for me is not really the output, but the fact that there is non zero digits after the 3rd decimal place. I am comparing sc.Low[sc.Index] and sc.ChartTradingOrderPrice and it is not giving me the expected result. I am having to truncate sc.Low[sc.Index] to 3 decimal places in order for my logic to work. For example sc.ChartTradingOrderPrice = 23.365000 but sc.Low[sc.Index] = 23.365001. This should not be happening.

Thank you.