HI Coders, can anyone add an alarm bell or ding to Ben-Tens Trend Channel Indicator for each time there is a crossover on the ZERO line Red to Blue or vice versa at ZERO?
I'm just looking for this to have an alarm when the two signal lines cross exactly on the zero line, I play six stocks at one time and occasionally dose off. Thanks, Greg
# Bull and Bear Strength
# Assembled by @BenTen at useThinkScript.com
# Converted from https://www.tradingview.com/script/ZFfiy0mr/
declare lower;
def Mdb = simpleMovingAvg(close, 20);
def bull = high - expAverage(close, 13);
def bear = low - expAverage(close, 13);
def upLine = close - Mdb;
def downLine = -(bull + bear);
plot up = upLine;
plot down = downLine;
up.SetDefaultColor(GetColor(6));
down.SetDefaultColor(GetColor(5));
plot ZeroLine = 0;
ZeroLine.SetDefaultColor(GetColor(3));
Thank you, HUJI
View attachment 18903
I'm just looking for this to have an alarm when the two signal lines cross exactly on the zero line, I play six stocks at one time and occasionally dose off. Thanks, Greg
# Bull and Bear Strength
# Assembled by @BenTen at useThinkScript.com
# Converted from https://www.tradingview.com/script/ZFfiy0mr/
declare lower;
def Mdb = simpleMovingAvg(close, 20);
def bull = high - expAverage(close, 13);
def bear = low - expAverage(close, 13);
def upLine = close - Mdb;
def downLine = -(bull + bear);
plot up = upLine;
plot down = downLine;
up.SetDefaultColor(GetColor(6));
down.SetDefaultColor(GetColor(5));
plot ZeroLine = 0;
ZeroLine.SetDefaultColor(GetColor(3));
Thank you, HUJI
View attachment 18903
Attachments
Last edited by a moderator: