Login Page - Create Account

Support Board


Date/Time: Fri, 14 Mar 2025 12:43:54 +0000



[Programming Help] - Custom Study Refreshing

View Count: 171

[2025-01-30 21:41:19]
ssangha84 - Posts: 126
Hello, I have a custom study that I use, but whenever I hit refresh on the chart, or change study collections and come back, all the old data erases. How can I change it so the data stays the whole session even if I refresh?
[2025-01-31 01:18:16]
User719512 - Posts: 301
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.
[2025-01-31 04:42:39]
ssangha84 - Posts: 126
The study is highlighting large volume trades when they happen at that price on the bar chart. This would not change at the bar close because it would just be a single trade that has already taken place.
[2025-02-05 04:18:56]
Sierra_Chart Engineering - Posts: 18778
You need to do within the custom study, the calculation/detection of these large-volume trades, on the historical chart bars during a full recalculation. Inherently this should just automatically work. How are you determining the large-volume trades?
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account