Login Page - Create Account

Support Board


Date/Time: Thu, 13 Feb 2025 23:30:17 +0000



Post From: Excessive precision with stock prices in ASCIL code

[2020-12-24 16:43:41]
jwick - Posts: 142
hmm I found this post which seems to address this: Prices incorrect for Open, High, Low Close

However, I have a follow up question. If I am using Volume at price information (sc.VolumeAtPriceForBars->GetVAPElementAtPrice) which references prices as total ticks instead of points, how would you suggest I convert a price value to a total ticks value since sc.High[sc.Index] / sc.TickSize now no longer produces whole integer values (all of my code was built for futures where prices are always divisible by the ticksize and now I'm encountering this issue applying that code to stock prices).