Support Board
Date/Time: Fri, 22 Nov 2024 15:48:36 +0000
Add an alerte on heikin ashi smoothed
View Count: 117
[2024-10-10 12:37:01] |
User823328 - Posts: 27 |
Hello, I try to create an alert with color bar based on alerte condition study but i don't manage to find the good formula. So i try to get an alert when heikin ashi candle have no wick bellow for a buy signal and no Wick above for a sell signal. Can you help me with that please ? |
[2024-10-10 15:03:40] |
John - SC Support - Posts: 36217 |
In order to test for no wick, you would need to test the High or Low to see if it is higher or lower than the Open or Close. In order to do this, you need to know if you have an up or down bar. Are you wanting a specific situation where there is no wick above only for an up bar, or vice versa? Or does the status of the bar not matter, it only matters that there is no wick? For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-10-10 15:22:25] |
User823328 - Posts: 27 |
I want to get an alert only when there is no Wick below for an upbar and no Wick above for an downbar
|
[2024-10-10 15:52:37] |
John - SC Support - Posts: 36217 |
We assume that you want two different alerts, therefore the condition for no wick below for an Up Bar would be the following: =IF(ID1.SG4 > ID1.SG1, ID1.SG3 >= ID1.SG1, 0) Where ID1 is the ID of the Heikin-Ashi study. SG1 is the Open subgraph, SG3 is the Low subgraph, and SG4 is the Close/Last subgraph. We leave it to you to work out the other condition. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-10-14 06:40:47] |
User823328 - Posts: 27 |
Thanks it's work well. 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)
|
[2024-10-14 06:43:13] |
User823328 - Posts: 27 |
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. Date Time Of Last Edit: 2024-10-14 06:54:32
|
[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 |
[2024-10-15 00:41:53] |
Sawtooth - Posts: 4118 |
I would approach it by creating a persistent +1/-1, then alert when the values swap, like this: 1. Create the persistent values using the Spreadsheet Formula study, in its Formula field: =IF(AND(ID1.SG4 > ID1.SG1, ID1.SG3 >= ID1.SG1),1,IF(AND(ID1.SG4 < ID1.SG1, ID1.SG2 <= ID1.SG1),-1,ID2.SG1[-1])) where ID2 is this Spreadsheet Formula study. 2. Then use two Color Bar Based On Alert Condition studies for the alerts, on their Alerts tabs: First up bar with no tail: =AND(ID2.SG1[-1]=-1,ID2.SG1=1) First down bar with no wick: =AND(ID2.SG1[-1]=1,ID2.SG1=-1) Date Time Of Last Edit: 2024-10-15 00:47:56
|
To post a message in this thread, you need to log in with your Sierra Chart account: