Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 02:35:50 +0000



Accessing study value programmatically before the bar closes

View Count: 690

[2016-12-23 17:31:20]
User65279 - Posts: 6
Using "Write Bar and Study Data To File" Study, I can write chart data to file on bar close.

But is it possible access chart data for the current bar programatically (e.g. write to file so that other application can use it) before it closes? E.g. I have moving average study and I would like to know programatically what the current value is, even though the bar is not yet closed.

Thank you.
[2016-12-23 18:36:02]
Sierra Chart Engineering - Posts: 104368
Yes the ACSIL function can certainly access the current bar data. This is very basic. Refer to:
http://www.sierrachart.com/index.php?page=doc/ACS_ArraysAndLooping.html

As far as writing that to the file, that is your responsibility to determine how to do that. It is complex to update the last line in the file as the last bar changes.
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: 2016-12-23 18:36:52
[2017-01-01 21:22:55]
User65279 - Posts: 6
Thank you.
Date Time Of Last Edit: 2017-01-01 21:59:38
[2017-01-01 21:52:51]
Sierra Chart Engineering - Posts: 104368
Please do not say thank you.
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

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

Login

Login Page - Create Account