Support Board
Date/Time: Sat, 01 Feb 2025 13:00:02 +0000
Alerts within a few bars
View Count: 703
[2019-07-17 17:38:07] |
User509820 - Posts: 69 |
Hi. How do I setup my alert formula to be true within 2-3 bars(candles)? Thanks!
|
[2019-07-18 12:37:30] |
User509820 - Posts: 69 |
I have a alert setup a close over a moving average with a rsi crossover 30. I would like for the signal to be valid if the rsi has crossed over within the last 3 bars.
|
[2019-07-18 15:10:15] |
John - SC Support - Posts: 37656 |
Refer to the following for how to reference previous bars in an alert: Study/Chart Alerts And Scanning: Referencing Data Other Than on the Last Bar/Column In the Chart You will then have to use the AND and OR functions to string everything together. Refer to the following for the AND and OR functions: Study/Chart Alerts And Scanning: OR and AND Functions For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2019-07-18 15:32:35] |
User509820 - Posts: 69 |
Thanks when referencing a previous bar will it also reference all the bars up until the current as well?
|
[2019-07-18 17:39:55] |
John - SC Support - Posts: 37656 |
No. It is just an absolute reference, so if you want to do something with the past three bars, you would need to have 3 entries,. For example, if you want to find out if the Close is above 2800 for any of the prior three bars, you would enter the following formula: =OR(C[-3] > 2800, C[-2] > 2800, C[-1] > 2800) Just so you are aware, there is the ability to specify a range, but it only works with formulas that can take a range as an input, such as the AVERAGE function (it would not work for the above scenario). Refer to the following for more information on using a Range within an Alert formula: Study/Chart Alerts And Scanning: Referencing A Range of Data For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: