Login Page - Create Account

Support Board


Date/Time: Thu, 13 Feb 2025 22:50:28 +0000



Post From: Excessive precision with stock prices in ASCIL code

[2020-12-24 16:26:13]
jwick - Posts: 142
When I try to access stock ohlc data, I am getting excessive amounts of precision. When I print out sc.High, for example on AAPL stocks, I get values such as: 113.179893, 114.364998, 114.949295. I am using the SC data feed. I'm hoping this is something I can solve at the chart settings level without having to perform rounding in my code (since that would involve touching a lot of already existing code).

In my chart settings, price display format is 0.01 and tick size is 0.010000