Login Page - Create Account

Support Board


Date/Time: Sun, 29 Jun 2025 02:45:22 +0000



Post From: Custom study disappearing after removing an indicator

[2021-08-16 21:09:05]
BenjFlame - Posts: 338
Hi,
this is a question for Sierrachart people as it might not be due to a custom problem. I spotted the exact reason of my problem:

float Elapsed = sc.BaseDataEndDateTime[sc.Index].GetTimeInSeconds() - sc.BaseDateTimeIn[sc.Index].GetTimeInSeconds();

When relative volume (which has NOTHING to do with this study) is on the chart, Elapsed correctly returns seconds from beginning of current bar.
When relative volume is on the chart, the behavior of this calculation changes.
It reports a huge negative number that accumulates, as if it counts bars on chart.

So why does SierraChart functions produce different results when relative volume is on chart or not?
Date Time Of Last Edit: 2021-08-16 21:11:53