Support Board
Date/Time: Wed, 07 May 2025 02:27:57 +0000
Post From: Forcing Chart Recalculation
[2024-12-10 09:31:06] |
User688525 - Posts: 284 |
Hi Sierra Engineering, I have created a custom custom study which is running exclusively on a new chart (Chart #5 for example) on a specific time frame (5 minutes for example). As other charts use different time frames (15 minutes, 60 minutes, etc.), I am using the Study/Price Overlay study to display the custom study from Chart #5 on other charts. The custom study generates lines which display correctly on the destination charts. These lines also change color based on several conditions as intended. The problem has been that the line colors don't change on the destination charts unless a manual recalculation is done, meaning, the lines and colors display correctly on the source chart (Chart #5) without a manual recalculation, but not on the destination charts. After using sc.EarliestUpdateSubgraphDataArrayIndex and/or sc.IsFullRecalculation both within and outside of loop without success, today I integrated parts of the built-in “scsf_PeriodicChartRecalculation” study to force a period recalculation independent of the loop. Whether this is the most efficient way of forcing a recalculation, I'm not sure, but I can now confirm that the study is now displaying correctly on the destination charts. |