Login Page - Create Account

Support Board


Date/Time: Tue, 22 Apr 2025 02:24:34 +0000



% limit code from ID label

View Count: 446

[2022-10-14 20:12:43]
User203192 - Posts: 33
Anyone know how to limit a simple alert to a % or pip range from a study? say the previous day high...C>ID16.SG2 and I have a few other criteria that can come into play but I dont want it to happen > then a certain % or in pips from the ID label value. I need to be able to give it some room from previous high but not too much...anyone know how to code this in the simple alerts.

Thanks!
[2022-10-14 22:17:31]
John - SC Support - Posts: 39395
To get a percentage, just add it directly to the alert. For example, if you want the Close to be greater than the previous day high plus 10%, you would have the following:
= C > ID16.SG2 + 0.1 * ID16.SG2

Same thing for pips, just add the amount you want:
= C > ID16.SG2 + .02
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-10-15 18:51:33]
User203192 - Posts: 33
Perfect!! Thanks John
[2023-02-24 20:09:18]
User203192 - Posts: 33
How is the alert condition coded to be in between the ID label and an amount? So I need the alert condition to trigger = and > then call it 5 pips or 1%. When I code it as = C > ID16.SG2 + .02 the alert triggers at = C > ID16.SG2 + .02 and I need it to trigger within = C > ID16.SG2 and + .02 but not greater then. So I need to give a little room but not to far past? if that makes sense. I tried => but its not working ??

Thanks!
[2023-02-24 22:13:31]
John - SC Support - Posts: 39395
You need to use the AND function and contain the alert within a given window. So it would look like the following:
=AND(C > ID16.SG2 + .02, C < ID16.SG2 + .04)

In the above, if the Tick Size is .01, then the only time you would get an alert would be if the Close was at the value of ID16.SG2 + .03, since we are not including .02 or .04.

If you wanted to alert when it included the .02 and .04, then you would need the = as well, so the following:
==AND(C >= ID16.SG2 + .02, C <= ID16.SG2 + .04)
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:

Login

Login Page - Create Account