Login Page - Create Account

Support Board


Date/Time: Thu, 16 May 2024 00:52:30 +0000



Post From: ZigZag Volume / Length in Ticks missing fabs

[2020-05-01 12:05:49]
Yoda - Posts: 106
It appears that we will not be able to agree on this point. Hopefully we can agree to disagree :)

I believe the only change that they did was to add a fabs to line 1199 in Studies7.cpp . Therefore, if you want to have the same calculations as before, I would suggest you try deleting the fabs in line 1199 in Studies7.cpp and compile the zigzag study. In other words try changing:

int64_t VolumeDividedByLengthInTicks = int64_t(AccumulatedVolume[ZigZagIndex] / fabs(ZigzagLineLength / sc.TickSize));

to...

int64_t VolumeDividedByLengthInTicks = int64_t(AccumulatedVolume[ZigZagIndex] / (ZigzagLineLength / sc.TickSize));