Login Page - Create Account

Support Board


Date/Time: Fri, 22 Nov 2024 15:34:20 +0000



Post From: Add an alerte on heikin ashi smoothed

[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