Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 23:13:59 +0000



Arrow Alert

View Count: 2039

[2013-10-18 11:25:17]
crossiman - Posts: 29
How could this be done ?
I want to get an arrow up as soon as the High of a bar is higher than the High of the last 20 bars (an arrow down vice versa). But another arrow up should not appear if the last signal was also an arrow up. So I only want one signal in one direction.

Is there an easy solution for this ?
[2013-10-18 15:28:44]
Sierra Chart - Max - Posts: 5596
The simplest solution would be this:

1. Add a Color Bar Based On Alert Condition study following the steps here:
http://www.sierrachart.com/index.php?l=doc/doc_ChartStudies.html#AddingStudiestoaChart

2. Within the Study Settings on Settings and Inputs set Output When Condition True to Use Input Data and Input Data to Low.

3. Go to the Subgraphs tab within Study Settings, and set the Draw Style to Arrow Up.

4. Go to the Alerts tab within Study Settings, and enter the following alert:
=AND(H[-1] <= H[-2], H > H[-1])

5. Press OK. Press OK.


Color Bar Based On Alert Condition Study documentation:
http://www.sierrachart.com/index.php?l=doc/doc_TechnicalStudiesReference.html#s245
Sierra Chart Support
[2013-10-18 19:29:35]
crossiman - Posts: 29
Thanks ! But how is the formula if I want the arrow up only if the actual bar exceeds the high of the last 20 bars. Furthermore there should be no new arrow up if there was no arrow down (a bar falls beyond it's 20 bar low) meanwhile. For clarification: I only want an arrow up once it exceeds the last 20 bar high and the next arrow can only be an arrow down if it falls below the low of the last 20 bars.

Do you please have an update on this !

It would be highly appreciated !

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

Login

Login Page - Create Account