Login Page - Create Account

Support Board


Date/Time: Thu, 03 Jul 2025 22:23:29 +0000



Post From: Alert condition Rockwell Template

[2016-06-13 17:37:17]
Sawtooth - Posts: 4231
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))