Login Page - Create Account

Support Board


Date/Time: Tue, 23 Apr 2024 15:13:43 +0000



ACSIL: Before Save

View Count: 1154

[2015-04-06 21:04:40]
QnReally - Posts: 181
I have a few user drawn drawings in a chart managed by my own study. I would like to save those drawings into sc.StorageBlock. I am able to save them upon reload of the chart by checking for (sc.UpdateStartIndex == 0) condition.

However, I would like to save them automatically just prior to SC saving my charts with File -> Save.

I could test for sc.LastCallToFunction to be true but by then the platform is in the process of exiting and if I update the sc.StorageBlock then, it won't get saved subsequently by SC.

The workaround I have is to reload the chart just before saving and exiting the platform.

In your opinion, are there better ways to do this? If not, when I save the chartbook I would like my study to know via ACSIL that the chartbook will be saved when the current call to my study is finished.

Thanks.
[2015-04-07 04:19:31]
Sierra Chart Engineering - Posts: 104368
The way we would do this is always save them to the storage block any time they change or are created. That is a very fast operation.
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
[2015-04-08 20:27:34]
QnReally - Posts: 181
Support,

When a new drawing is added, I can save all my drawings to sc.StorageBlock by relying on the mouse events.

They are user drawn drawings and they can be modified or deleted by interacting with the drawings on the chart using the mouse. To keep the sc.StorageBlock in sync with the drawings on the chart, I would have to save them on each call to my study or periodically. Either of these options are not optimal unless there are other creative ideas.

For now, I can just save them on reload.

Also, marking it a User Discussion makes me think that Sierra Support won't read this thread any more. Is that correct?

Thanks.
[2015-04-09 17:06:57]
Sierra Chart Engineering - Posts: 104368
There is not an easy way we can help you with this.

The only thing that possibly could be done is the study function gets called just before saving the Chartbook with a flag indicating that the Chartbook it is contained within is being saved.
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
Date Time Of Last Edit: 2015-04-09 17:07:53
[2015-04-09 17:58:48]
QnReally - Posts: 181
That would be sufficient for my purposes. Please go ahead and add that flag.

Thanks.
[2015-04-10 18:08:34]
Sierra Chart Engineering - Posts: 104368
OK, we will see about this.
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
[2015-05-13 02:39:52]
QnReally - Posts: 181
Is this already completed? I am not sure how to tell. Thanks.
[2015-05-13 19:59:45]
Sierra Chart Engineering - Posts: 104368
No. This is not a very simple thing to add and it is low priority. It would not come soon.
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
Date Time Of Last Edit: 2015-05-13 20:00:03
[2015-08-17 21:40:46]
QnReally - Posts: 181
Just checking back to see if this is already done or if you need more time. Thanks.
[2015-08-18 08:44:45]
Sierra Chart Engineering - Posts: 104368
This is one of those things, that is low priority and basically never gets done because we practically never get to low priority items because of the heavy workload. Please do not expect it this year.


Do not put reliance on this, it is possible that it will not be added.
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
Date Time Of Last Edit: 2015-08-18 08:54:06

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

Login

Login Page - Create Account