Login Page - Create Account

Support Board


Date/Time: Tue, 26 Aug 2025 10:22:59 +0000



Post From: ACSIL help

[2025-07-17 14:22:38]
cmet - Posts: 719
I need a way to identify which of the following conditions is true:
- Ask Volume Bid Volume Difference High was more recently increased as compared to the Ask Volume Bid Volume Difference Low being more recently decreased
- Ask Volume Bid Volume Difference Low was more recently decreased as compared to the Ask Volume Bid Volume Difference High being more recently increased

After a quick look, have you tried using lastMaxIndex and lastMinIndex?

For finish values:

if (lastMaxIndex > lastMinIndex)
finishValue = finalDelta - maxDelta;
else if (lastMinIndex > lastMaxIndex)
finishValue = finalDelta - minDelta;
else
finishValue = 0.0f;

For %:

if (lastMaxIndex > lastMinIndex && fabsf(maxDelta) != 0.0f)
finishPercent = fabsf(finish) / fabsf(maxDelta) * 100.0f;
else if (lastMinIndex > lastMaxIndex && fabsf(minDelta) != 0.0f)
finishPercent = fabsf(finish) / fabsf(minDelta) * 100.0f;
else
finishPercent = 0.0f;