Login Page - Create Account

Support Board


Date/Time: Fri, 22 Nov 2024 16:11:40 +0000



Post From: Add an alerte on heikin ashi smoothed

[2024-10-14 16:17:44]
John - SC Support - Posts: 36217
Is there a way to only add an alert on the first candle that meet this criteria. ( I mean let Say market is UP trending so candle are green i only want the alert to appear on the first red candle with no Wick above, and same on the opposite)

There is not a good way to do this, but to test at least one bar you could use the following:
=IF(AND(ID1.SG4 > ID1.SG1, !(ID1.SG4[-1] > ID1.SG1[-1]), !(ID1.SG3 >= ID1.SG1)), ID1.SG3 >= ID1.SG1, 0)

Alternatively, you could use the following formula (both are equivalent:
= AND(ID1.SG4 > ID1.SG1, !(ID1.SG4[-1] > ID1.SG1[-1]), !(ID1.SG3 >= ID1.SG1), ID1.SG3 >= ID1.SG1)

And also how i Can intégrate this IF conditions on an existing alert beginning by AND ?
I want this alert to popup only if this conditions happen below or above a Moving average.

To start, we should probably have given the following formula to begin with, as it will work the same - it's just a different way to think about the problem:
=AND(ID1.SG4 > ID1.SG1, ID1.SG3 >= ID1.SG1)

Therefore, if you are adding this to an existing condition, you just add the additional items to the AND() function, such as the following:
=AND(Condition1, Condition2, ID1.SG4 > ID1.SG1, ID1.SG3 >= ID1.SG1)
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing