Login Page - Create Account

Support Board


Date/Time: Fri, 07 Feb 2025 14:41:37 +0000



Post From: Summation and Color bar based on alert condition issue

[2022-03-24 15:05:44]
AndyB - Posts: 105
I am using 'color bar based on alert condition' to print specific values in a chart im using. using input data when condition is true and evaluating on bar close. then, i am using the summation study to sum these values. this works fine looking backwards and when i refresh the chart, but not when it runs live uninterrupted. the summation study is continuously adding values from the 'color bar based on alert condition' study, regardless of if the study ends up even printing anything. almost as if the summation is using the earliest values instead of the last values. I need it to sum the final printed values in real time, not just when i refresh the chart.

attached are two screenshots. because this summation is done on a tick chart, I overlaid it to a 1 minute chart so you can see more clearly what im referring to. the first image is before i refreshed the source chart to "reset" that summation, and the second is after i refreshed.

https://www.sierrachart.com/image.php?Image=1648133797537.png
https://www.sierrachart.com/image.php?Image=1648134060356.png

finally, here is the source chart where you can see the two summation studies adding to themselves with no prints, leaving erroneous values. I hope my explanation makes sense

https://www.sierrachart.com/image.php?Image=1648134156908.png