Login Page - Create Account

Support Board


Date/Time: Tue, 21 May 2024 11:53:02 +0000



Post From: Super Trend Stop alert

[2022-10-30 12:46:10]
Sawtooth - Posts: 4002
I don't know the formula though to do this
Use two instances of the Color Bar Based On Alert Condition study, with formulas like these on the Alerts tab:
Flip to uptrend:
=AND(ID1.SG1[-1]>=C[-2],ID1.SG1<L)
Flip to downtrend:
=AND(ID1.SG1[-1]<=C[-2],ID1.SG1>H)
where ID1 is the SuperTrend Stop study

These formulas will only produce a T/F, so in Color Bar studies, you're limited to markers that do not require a placement price, like:
Color Bar
Color Background
Point on Low
Point on High

If you want arrows or triangles, etc.:
Use two instances of the Spreadsheet Formula study to return placement prices, with formulas like these in the Formula field:
Flip to uptrend:
=IF(AND(ID1.SG1[-1]>=C[-2],ID1.SG1<L),L,0)
Flip to downtrend:
=IF(AND(ID1.SG1[-1]<=C[-2],ID1.SG1>H),H,0)
where ID1 is the SuperTrend Stop study
Also:
- Set the Chart Region to 1.
- Set 'Draw Zero Values' to No.