Login Page - Create Account

Support Board


Date/Time: Fri, 07 Feb 2025 17:24:50 +0000



[User Discussion] - Setting a global variable to 1

View Count: 1367

[2014-11-20 13:59:32]
nepher - Posts: 56
Hello,

I use study alarms a lot on chartwindows. I would like to set 3 differents global token (available for all the charts of the chartbook) to state = 1 when a I get some particular results in a studies. How could I do this and call the state of this token for using it in another sutdy alarm or to set it to 0 value latter.

Can you help please.

Thanks a lot.
[2014-11-20 20:28:34]
Sierra Chart Engineering - Posts: 104368
Are you referring to using the Advanced Custom Study Interface and Language?
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
[2014-11-20 22:08:50]
nepher - Posts: 56
No, I compute only multiple simple Alerts in my graphics.

I need to keep the memory of particular events and make them available for all the studies of the graphics my chartbook.

My need : When I first open my chartbook all my token 1-2-3-4-5...10 are set to 0 value ;

Is it possible to address each token as a particular study (token1/token2/token3...) that can be programmed like an alert in whatever chart we want and be triggered to 1 that is lasting on new candles or reset to 0 depending of particular events we compute.

tokenXX could then be the variable of a simple alert in another graphic of the chartbook (ie Color Bar Based on alert condition):

AND(ID169.SG1,ID129.SG1=0,ID220.SG1=0,token01,token02=0)


This will be of great help as I don't know for the moment how to memorize event with simple alert.

Thanks a lot for your comprehension.
Date Time Of Last Edit: 2014-11-20 22:13:26
[2014-11-21 04:34:49]
Sierra Chart Engineering - Posts: 104368
The only help we can provide us to recommend using Spreadsheets or ACSIL for what you want to accomplish:
https://www.sierrachart.com/index.php?page=doc/doc_SpreadsheetStudy.html
https://www.sierrachart.com/index.php?page=doc/doc_CreatingDLLs.html


We cannot take the time to understand the specific requirements.
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
[2014-11-21 06:31:31]
nepher - Posts: 56
Hello,

In this case, this is a Dll with very simple specification I would like to implement. Is there anyone available here to help if you undersatnd the need ?

Perhaps someone has already done that kind of dll.

Thanks in advance
[2019-01-17 17:41:24]
@sstfrederik - Posts: 406
This is a very old thread but based on a similar client question I made a new study available in the SST FreeBundle that can be used for this.

This free study allows you to set and unset a study SG based on simple alert conditions used in the "color bar based on alert condition" study (CBBOAC).

Get the freebundle on my site simplesystemtrading.com

Frederik
imagefreebundle.png / V - Attached On 2019-01-17 17:40:37 UTC - Size: 11.68 KB - 318 views
[2019-02-20 20:33:29]
nepher - Posts: 56
Thank you for your answer Frederik, I will have a look to your website.

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

Login

Login Page - Create Account