For example: The market has peaked and is starting to fall. All three SMA's change to falling and I get an alert. The next bar the market continues to fall but I do not get an alert. The market continues to fall for a while but bottoms out and starts upward.
All three SMA's change to rising and I get an alert and just like the falling alert I do not get another alert until all are falling again.
Thanks in advance!!!
if (
Rising(SMA(14))
&&Rising(SMA(28))
&&Rising(SMA(42))
)
Alert("AlertLineCrossing", Cbi.Priority.High, alertMessage, soundFile, 0, Color.White, Color.Black);
if (
Falling(SMA(14))
&&Falling(SMA(28))
&&Falling(SMA(42))
)
Alert("AlertLineCrossing", Cbi.Priority.High, alertMessage, soundFile, 0, Color.White, Color.Black);

Comment