Login Page - Create Account

Support Board


Date/Time: Sat, 03 May 2025 14:32:52 +0000



Post From: Custom Study Refreshing

[2025-01-31 01:18:16]
User719512 - Posts: 310
If your study is calculating intra-bar (when live data is flowing) and setting an SG (subgraph) to a non-zero value and that condition is no longer true on bar close, than the historical bars calculated during a Full Recalculation will not detect those signals.

If the signals are valid at bar close, then your code should be recalculating those signals on chart refresh when it re-enumerates from bar index 0 to the last bar (sc.ArraySize-1) on refresh/recalculate.