Login Page - Create Account

Support Board


Date/Time: Thu, 16 Jan 2025 05:58:40 +0000



StorageBlock returns zeros if used in sc.LastCallToFunction

View Count: 886

[2017-10-09 15:01:51]
cross - Posts: 70
Hi,

I used to "save" a custom indicator's info box (text tool) coordinates to the StorageBlock when sc.LastCallToFunction was true (save the position when the chartbook closed).
However, now this works only if I set the coordinates in the StorageBlock in the loop part. Otherwise -if set only in the sc.LastCallToFunction- next time only zeros loaded.

Is this by-design or a bug?

Thanks
[2017-10-09 18:23:22]
Sierra Chart Engineering - Posts: 104368
One thing to be aware of is that when you save the Chartbook, it is saved before sc.LastCallToFunction becomes true.
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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2017-10-09 18:38:16]
cross - Posts: 70
It took some time to figure out since it worked in the past (maybe up to early 1500) and not noted in the doc ;)
("This variable [sc.LastCallToFunction] is useful if you want to do something before the study is removed from the chart or when the chart is being closed.")

Thanks anyway.
Date Time Of Last Edit: 2017-10-09 18:38:58

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

Login

Login Page - Create Account