Login Page - Create Account

Support Board


Date/Time: Fri, 10 May 2024 15:47:31 +0000



Post From: Alert on the previous candle don't works

[2024-03-22 16:34:48]
John - SC Support - Posts: 31522
You are setting a range by the use of the colon (:) so it is trying to check the range of values, which isn't what you really want to do in this case. For example, you have the following:
OR(ID1.SG49@4:ID1.SG50@4)

Having the colon (:) in between the two items is a range reference.

What is it exactly that you want to accomplish?

For instance, from what you are trying to do and what you initially stated, it looks like you want to check to see if a stacked imbalance exists in the previous bar and not in the current bar. If you just want to know if this is the case, regardless of price, then use the following
=AND(ID1.SG50@4, ID1.SG50@3 = 0)

SG49 is always set to a value, but SG50 will be 0 if there is not at least 1 set of adjacent cells.

But the issue is that just testing the status of the "Adjacent Alerts" will only tell you if it exists, but does not tell you anything about the price levels at which it occurs. If you want to do something along these lines, then you would need to actually check the values against each other, so something like the following:
=ID1.SG50@4 <> ID1.SG50@3

This will then be true if the adjacent alerts end at the same price levels.

If you still need more help, then let us know exactly what you are trying to accomplish.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing