Login Page - Create Account

Support Board


Date/Time: Wed, 15 May 2024 11:48:09 +0000



Post From: ZigZag Volume / Length in Ticks missing fabs

[2020-05-02 23:27:46]
User745789 - Posts: 173
Thanks :)

Seeing as we are looking at this code, got any hints on how to declare VolumeDividedByLengthInTicks as Float or Double? I need a Real Number with 2 decimal places, rather than Integer? For instances with high tick length per move, but very low delta volume.

I think I need to change int64_t to something else, but can't find it online. I had never even seen int64_t until today.

I read here that Float should be avoided for financial coding, rounding errors?
https://www.learncpp.com/cpp-tutorial/floating-point-numbers/

Is it as simple as

double VolumeDividedByLengthInTicks =

I note this doesn't mention "64". And 64 is a SC topic these days.
Date Time Of Last Edit: 2020-05-02 23:29:04