Login Page - Create Account

Support Board


Date/Time: Thu, 16 Jan 2025 04:46:50 +0000



[User Discussion] - color bar on alert condition

View Count: 1082

[2017-10-13 17:43:10]
User160597 - Posts: 1
Hi,
I want an alert when...
a) price bar #1 [may touch MA or cross MA from below or trade within 2 Ticks of MA ]and then price bar #1 closes below MA and must close red
b) price bar prior to #1 should close below MA and must close green
c) price bar after #1 should be below MA, and must close red

thx
Kel
imageaScreenshot_11.png / V - Attached On 2017-10-13 17:39:32 UTC - Size: 572 B - 242 views
imageaaScreenshot_11.png / V - Attached On 2017-10-13 17:42:38 UTC - Size: 626 B - 236 views
[2017-10-13 19:10:04]
Sawtooth - Posts: 4153
Try this:
=AND(
C[-2]<ID1.SG1[-2],C[-2]>O[-2],
H[-1]>ID1.SG1[-1]-TICKSIZE*2,C[-1]<ID1.SG1[-1],C[-1]<O[-1],
H<ID1.SG1,C<O
)
where the MA is ID1; edit as needed.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account