Login Page - Create Account

Support Board


Date/Time: Sat, 20 Apr 2024 11:35:55 +0000



[User Discussion] - How Do I Accurately Reference Study/Price Overlay From Higher Time Frame Charts For Alerts?

View Count: 3155

[2015-02-18 23:44:43]
cmet - Posts: 534
I've been trying to use a Study/Price Overlay that takes a Band from a different time frame chart (in this case, a Range chart) and overlays it onto a 1 minute chart.

I want to be able create an alert (Color Bar Based on Alert Condition) that checks whether this band is higher or lower on the higher time frame but I can't figure out the syntax.

Using something like ID:#.SG1 > ID:#.SG1[-1] doesn't work because on the lower time frame chart (1 min), the band does not update as often and so the above syntax is being read as false since, according to the lower time frame chart, the band is in the same spot.

Hopefully that makes sense, here is an image I made to help explain.

http://s23.postimg.org/3sbjcj6e3/overlay.jpg

Is this possible using a Color Bar Based on Alert Condition syntax?
[2015-02-19 00:44:23]
Sawtooth - Posts: 3976
Your formula is OK, but in the Overlay study you probably need to set the Bar Time Matching Method to Containing Match.
[2015-02-19 00:51:47]
cmet - Posts: 534
It actually Contains Match.

I think the issue is that it will only register an alert on the very first 1 minute bar where the band change takes place.

I need to it to "keep track" of the actual state on the Range bar chart. Basically reference the chart directly instead of trying to determine whether it has changed or not using the 1 minute chart.

In other words, I need the 1 minute chart to "know" that the band is lower/higher for the entire time until the band position changes on the Range chart.

Again, I hope I'm making sense. This used to be easy in IRT using their Multi Periodicity indicator (MPD) which calculates the data directly from the different time frame without having to have a separate chart open.
Date Time Of Last Edit: 2015-02-19 00:52:02
[2015-02-19 01:07:57]
cmet - Posts: 534
To add to this...
When I use the following syntax:
=AND (ID:#.SG1 > ID:#.SG1[-1], H > ID:#.SG1)

With "#" being the top of the band, nothing plots at all in the Color Bar Based on Alert Condition - not even when the band position moves higher than the previous position as stated in the formula.

These are the Study/Price Overlay settings:

http://s12.postimg.org/mtq2q9y6l/settings.jpg
Date Time Of Last Edit: 2015-02-19 01:10:41
[2015-02-19 13:49:51]
Sawtooth - Posts: 3976
I need to it to "keep track" of the actual state on the Range bar chart

How can an alert do this? Alerts are one-time events.

If you only want an audible, you could put the alert on the higher time frame chart.

Obviously I don't understand what you are wanting to do.
[2015-02-19 14:26:17]
cmet - Posts: 534
Just a figure of speech.

To boil it down, when you use Study/Overlay Price and use an indicator from a different chart type or time frame that is slower than the chart you are plotting it on, the chart you are plotting it on can't accurately keep track of changes on the different chart time/higher time frame.

When you specify that a study is higher or lower than it was 1 bar ago, Study/Price Overlay is taking the calculation from the chart you are plotting it on, not the the actual chart where the study is applied.

This seems confirmed by the fact that I get nothing plotted at all when using this formula:

=AND (ID:#.SG1 > ID:#.SG1[-1], H > ID:#.SG1)

Where the ID is the Study/Price Overlay.

In the Sierra Chart Documentation, this is how it tells you to reference studies from other charts.
http://www.sierrachart.com/index.php?page=doc/doc_AlertCondAndScan.html#ReferencingOtherCharts

It just appears more limited than I realized.


Date Time Of Last Edit: 2015-02-19 14:26:43
[2015-02-19 15:12:36]
Sawtooth - Posts: 3976
Because the overlaid line is from a higher timeframe, it appears as a stairstep on the lower timeframe chart. When I replay your scenario, I see the overlaid step move up and down as the higher timeframe's value fluctuates.

Since your higher timeframe is not a multiple of the lower timeframe, the overlaid line slope is 'set' at the close of the lower timeframe bar where it happened, not at the close of the higher timeframe bar.

So I still don't understand what you want to alert.
[2015-02-19 16:00:18]
cmet - Posts: 534
Correct.

Example of the condition I'm trying to alert using band higher than previous bar:

A) Band from higher time frame is higher than it was one bar ago - on the higher time frame chart

And

B) High of the 1 minute chart is above the upper band on the higher time frame chart.

The second part is easy. I can create an alert (=H > ID:1.SG1) on the 1 minute chart that will show when this happens like this:

http://s3.postimg.org/bxf4794jn/alert.jpg

However, when I include syntax to tell the alert to make sure that the band is higher than the last bar on the higher time frame chart (=AND(ID:1.SG1 > ID:1.SG1[-1], H > ID:1.SG1)) - it only plots on the 1 minute bar that reflects the change and ONLY if the high breaches the upper band on that bar specifically. Here is an image showing this:

http://s13.postimg.org/hiv0ryo5j/noalert.jpg

I'm trying to figure out to get the alert to happen on all subsequent 1 minute bars until the band shifts again. In other words, I want all the alerts from the first image to show up but also for the alert to make sure the band is higher than it was previously.

If you take another look at the right side of the first image, you will see the alert go off even though the band has moved down. I'm trying to eliminate those.

Does that make sense?
Date Time Of Last Edit: 2015-02-19 16:02:12
[2015-02-19 18:56:18]
cmet - Posts: 534
So, SC Engineering has no input on this? Why was it made a User Discussion?
[2015-02-19 23:17:39]
Sawtooth - Posts: 3976
If you want an alert at the close of every 1 min bar until the band changes to the opposite direction, you'll need to use the Spreadsheet System/Alert study. What you want to do is too complex for Simple Alerts.
[2015-02-20 12:59:26]
cmet - Posts: 534
Thanks, yeah realizing that now. Study/Price Overlay can only grab data from other charts/timeframe in a static manner.

In terms of Spreadsheet Systems/Alerts, do you provide a service for that by any chance?
[2015-02-20 13:37:24]
Sawtooth - Posts: 3976
http://www.sawtoothtrade.com/services.html
Date Time Of Last Edit: 2017-02-11 16:20:49

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

Login

Login Page - Create Account