Login Page - Create Account

Support Board


Date/Time: Sat, 10 May 2025 20:10:01 +0000



Post From: Alert condition Rockwell Template

[2016-06-13 17:37:17]
Sawtooth - Posts: 4214
The price bars turn from black to red when the MACD is below its MA, and below zero.
The price bars turn from black to green when the MACD is above its MA, and above zero.
So to only get the first occurrence of either, try this in the MACD study's Alerts tab:
=OR(AND(SG1>SG2,SG1[-1]<0,SG1>0),AND(SG1>SG2,SG1[-1]<SG2[-1],SG1>0),
AND(SG1<SG2,SG1[-1]>0,SG1<0),AND(SG1<SG2,SG1[-1]>SG2[-1],SG1<0))