Hi guys. Ive tried with out any results so i am reaching out here. Is it possable to have an alert such as a bell and a vertical line added to the TOS SMA momentum ?
Code:
declare lower;
input price = close;
input momentumLength = 28;
input smaLength = 28;
assert(momentumLength > 0, "'momentum length' must be positive: " + momentumLength);
plot Momentum = price - price[momentumLength];
plot Avg = Average(data = Momentum, length = smaLength);
plot ZeroLine = 0;
Momentum.SetDefaultColor(GetColor(1));
Avg.SetDefaultColor(GetColor(5));
ZeroLine.SetDefaultColor(GetColor(0));