Login Page - Create Account

Support Board


Date/Time: Tue, 14 May 2024 13:14:20 +0000



Post From: Alert condition Rockwell Template

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