NexusFi: Find Your Edge


Home Menu

 





SC Spreadsheet Study Alert BASIC questions


Discussion in Sierra Chart

Updated
    1. trending_up 2,381 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 4 posts
    2. attach_file 3 attachments




 
Search this Thread
  #1 (permalink)
 OrangeTabby 
Redwood City, CA
 
Experience: Intermediate
Platform: Sierra Chart
Trading: Emini, Stocks, Options, Currency
Posts: 5 since Jul 2020
Thanks Given: 23
Thanks Received: 1

Hello All -

I successfully added sound alerts for a couple of studies in SC using the 'Alert' tab in the study settings dialog. I am now trying to create improved versions of the alert logic using a Spreadsheet System/Alert study.

I have some very basic questions about using spreadsheets to build a study that will fire audible alerts.

Some context:

1) I added a 'Spreadsheet System/Alert' study to my chart.
2) I have the sheet set up with only 8 rows because I don't need to look back very many bars.
3) I have successfully exported the referenced studies into the spreadsheet and I can see the values update in real time in row 3, and older values get pushed down to the rows below.
4) I am using a text editor to edit the alert formulas, then pasting into the sheet cells.
5) I am using columns O,P,Q,R for my formulas.

Questions:

1) When I paste a formula into row 3 of any column, it gets auto-filled (and row references incremented) to all rows below. Why is this? I just want my check to occur on the close of the current bar (row 3).

Q: Why does SC fill all rows below row 3 with my formula/alert logic?

2) In order to avoid having the row references altered by the auto-fill described above, I am using the 'absolute reference' notation to specify study col/row I want to reference. For example: =AND(ID13.SG4@$3>0, SUM(ID9.SG1@$3:ID9.SG1@$7)>0)

Q: Is this the correct/best/only way to get static row references?


3) After poking around in other posts here, I've altered my initial formula to reference row 4 (instead of row 3) to have the alert fire after bar close.

Here is the updated formula: =AND(ID13.SG3@$4>0, SUM(ID9.SG1@$4:ID9.SG1@$8)>0)

I can watch the formula eval to 1 when conditions are met, but the alert sound fails to play.

Attached are 3 images: the study/alert settings, and the details of the formula eval showing that it evals to 1 (= TRUE).

Q: why won't the alert sound play?


4) Does there exist anything like a "theory of operation" overview document or block diagram type of thing for SC spreadsheet studies? The documentation on the SC site is expansive and I'm sure comprehensive, but I find that it assumes a lot and is rather disjointed and scattered all over the place.

Q: Does anyone know of an "architectural overview" or "theory of operation" doc for how spreadsheet studies and systems fit into the overall SC platform architecture?

Thank you all for any guidance you can provide.


Attached Thumbnails
Click image for larger version

Name:	ss_study-alert_settings_part1.png
Views:	303
Size:	31.7 KB
ID:	310443   Click image for larger version

Name:	ss_study-alert_settings_part2.png
Views:	264
Size:	29.7 KB
ID:	310444   Click image for larger version

Name:	EVAL_TO_1_BUT_NO_ALERT_V2.png
Views:	269
Size:	22.0 KB
ID:	310445  
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Kharg Island at 6%, Regime Fall at 1.5% -- The Black Swa …
Prediction Markets & Event Contracts
Trump Truth Social Fires Hormuz From 10% to 59% -- Arsen …
Prediction Markets & Event Contracts
One Wallet Made $200K in Hours: AP Probes Polymarket Cea …
Prediction Markets & Event Contracts
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
CFTC Opens First COT Report Review in 20 Years -- Asks W …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 thanks
  #2 (permalink)
 Sawtooth 
Prescott AZ USA
 
Experience: Advanced
Platform: SierraChart
Broker: EdgeClear, FCM:Phillip, Data:Denali, Routing:Teton
Trading: YM RTY ES NQ
Posts: 480 since Nov 2009
Thanks Given: 222
Thanks Received: 608

1. Each row is a chart bar, where the current bar is in row 3, and earlier bars in rows below.
All formulas in Formula Columns must be entered in row 3, and rows below are auto-populated to show close-of-bar values of those previous bars.

2. There is no need to force an absolute value to all rows because the realtime alert only occurs within, or at the close, of the current bar, which is row 3.

3. With 'Signal Only On Bar Close' set to No, you need to reference row 4 to get an alert at close of bar.
With 'Signal Only On Bar Close' set to Yes, you need to reference row 3 to get an alert at close of bar.
Either way works the same for close of bar alerts, but the latter is less confusing for most, and it allows intrabar alerts.

4. Alerts will only play from columns K-N. Ignore the default names for these columns. All four function the same.
If you need more than 4 distinct alerts, a workaround is to reference the spreadsheet sugbraph on the Alerts tab of any other study.
For example, to get an alert from column O, put =ID1.SG5 on the alerts tab of any other study (where the spreadsheet study is ID1).


Reply With Quote
Thanked by:
  #3 (permalink)
 OrangeTabby 
Redwood City, CA
 
Experience: Intermediate
Platform: Sierra Chart
Trading: Emini, Stocks, Options, Currency
Posts: 5 since Jul 2020
Thanks Given: 23
Thanks Received: 1



tomgilb View Post
1. Each row is a chart bar, where the current bar is in row 3, and earlier bars in rows below.
All formulas in Formula Columns must be entered in row 3, and rows below are auto-populated to show close-of-bar values of those previous bars.

2. There is no need to force an absolute value to all rows because the realtime alert only occurs within, or at the close, of the current bar, which is row 3.

3. With 'Signal Only On Bar Close' set to No, you need to reference row 4 to get an alert at close of bar.
With 'Signal Only On Bar Close' set to Yes, you need to reference row 3 to get an alert at close of bar.
Either way works the same for close of bar alerts, but the latter is less confusing for most, and it allows intrabar alerts.

4. Alerts will only play from columns K-N. Ignore the default names for these columns. All four function the same.
If you need more than 4 distinct alerts, a workaround is to reference the spreadsheet sugbraph on the Alerts tab of any other study.
For example, to get an alert from column O, put =ID1.SG5 on the alerts tab of any other study (where the spreadsheet study is ID1).

----
Wow - this has saved me a lot of wasted cycles! Thank you for clarifying all this. I moved my (total of) 4 conditions to cols K - N and the alerts are firing as expected.

To clarify Item 4... so cols O - Z act as subgraphs of the actual spreadsheet study? But they can hold a formula and yield a result (boolean, integer, float)? (I realized that I was missing the conceptual connection of a spreadsheet study being just another "study" like any of the built-ins in SC.)

If that is the case, how should I interpret the alert sound settings for the spreadsheet study columns O - Z in the study settings for the spreadsheet study itself?

Thank you very much!


Started this thread Reply With Quote
  #4 (permalink)
 Sawtooth 
Prescott AZ USA
 
Experience: Advanced
Platform: SierraChart
Broker: EdgeClear, FCM:Phillip, Data:Denali, Routing:Teton
Trading: YM RTY ES NQ
Posts: 480 since Nov 2009
Thanks Given: 222
Thanks Received: 608

Each Formula Column is a subgraph of the spreadsheet study. There are a min of 16 and a max of 60 Formula Columns, set with the 'Number of Formula Columns' setting. So subgraphs 1-60 correspond to columns K-BR.

When I test this again, the alert assignments for columns O-Z do sound an alert. Not sure why they didn't before, for both you and me.
Makes sense since there are options to use them. (I've never needed to use those columns for alerts.)
So the workaround I mentioned before isn't necessary, unless you want to delineate the alerts for columns V-Z and AA-BR.

Columns K-N will plot markers at the high or low of the bar when TRUE. (In this regard, all 4 don't function the same.) Any non-zero is a TRUE.
Columns O-Z...BR will need to return a value (price) to place a marker at the correct location, because it will plot the marker at the price value of 1. This is the case unless you use Color Bar or Background, which only require a TRUE. But any non-zero will sound an audible alert.
https://www.sierrachart.com/index.php?page=doc/SpreadsheetSystemsAlertsAndAutomatedTrading.php


Reply With Quote
Thanked by:
  #5 (permalink)
 OrangeTabby 
Redwood City, CA
 
Experience: Intermediate
Platform: Sierra Chart
Trading: Emini, Stocks, Options, Currency
Posts: 5 since Jul 2020
Thanks Given: 23
Thanks Received: 1

OK. Armed with the pointers you gave me, I started from scratch (new chartbook, only 2 indicators) and put the alerts in K,L,M,N. I was able to get things working the way I wanted, but man, between top-level study settings and subgraphs, there is a lot that needs to be just so for the stars to align!

Thank you again for your help. I now have a much better overall understanding of how these spreadsheet studies fit into the overall platform landscape of chartbooks>charts>studies>spreadsheets.


Started this thread Reply With Quote




Last Updated on March 10, 2021


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts