Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 06:04:40 +0000



Post From: How Do I Accurately Reference Study/Price Overlay From Higher Time Frame Charts For Alerts?

[2015-02-19 16:00:18]
cmet - Posts: 537
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