Support Board
Date/Time: Wed, 05 Feb 2025 18:02:05 +0000
Post From: cumulative sum need help
[2025-01-13 06:54:22] |
User411647 - Posts: 21 |
thanks for advice cmet but valuesbid and valuesask are specific volume values I tried reset cumulative_sum before iteration if (OutputArrayIndex == 0)
and it looks like this : red bars -> positive askvol and negative bidvol, green line cumulative sum { cumulative_sum = 0; } cumulative calculation looks fine but now last index value is 0 Important for me is last cumulative value but i dont know how to do it I think that persist var is initialized incorrectly what do you think ? |
cumulative sum.jpg / V - Attached On 2025-01-13 06:54:18 UTC - Size: 35.97 KB - 24 views |