Login Page - Create Account

Support Board


Date/Time: Fri, 31 Jan 2025 03:03:48 +0000



Post From: Faster Relative Volume study

[2017-02-14 13:09:41]
DabbaDo - Posts: 148
I see the V1519 changes in Studies8.cpp scsf_RelativeVolume().
I have some questions:
1. Ln 7236: sc.ClearAllPersistentData() seems to have an obvious function, and seems helpful. But do you agree it is undocumented?
2. Ln 7315: sc.GetContainingIndexForSCDateTime() in my 1000-day 1m test case is called more than 270,000 times, I think, once for each bar, each with a different key. But the documentation at http://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Functions.html#scGetPersistentInt says the limit is 5000 keys, after which they are not persisted. Are the first 5000 persisted, or the most recent 5000?

Your new version doesn't seem to significantly address the O(N^2) speed issue, as it still calls c.GetContainingIndexForSCDateTime() for all 270K+ bars, and each call averages 135K+ inspections of sc.BaseDateTimeIn array elements.

[I'm not trying to cause trouble; I just want to understand. Sierra Chart is terrific software, VERY far ahead of the competition in my opinion.]

Cheers,
Dale