This is my little Semaphore Supertrend cobbled indicator. It is a combination of two different ATR multiplier lengths of the original Mobius Super Supertrend. https://usethinkscript.com/threads/supertrend-indicator-by-mobius-for-thinkorswim.7/ and has some similarities to other fabulous Supertrend indicators and the inspiration is from this post https://usethinkscript.com/threads/ssl-indicator-for-thinkorswim.299/
Bar Color uses the faster ATR Multiplier.
Alerts for the alert addicted.
Clouds can help you keep out of a sideways market
https://tos.mx/!hSr7IVmY
Bar Color uses the faster ATR Multiplier.
Alerts for the alert addicted.
Clouds can help you keep out of a sideways market
https://tos.mx/!hSr7IVmY
Code:
input AtrMult = .7;
input nATR = 4;
input AvgType = AverageType.HULL;
input PaintBars = yes;
def ATR = MovingAverage(AvgType, TrueRange(high, close, low), nATR);
def UP = HL2 + (AtrMult * ATR);
def DN = HL2 + (-AtrMult * ATR);
def ST = if close < ST[1] then UP else DN;
plot SuperTrend = ST;
SuperTrend.AssignValueColor(if close < ST then CreateColor(200, 0, 100) else CreateColor(0, 200, 100));
input AtrMult1 = 1;
input nATR1 = 4;
def ATR1 = MovingAverage(AvgType, TrueRange(high, close, low), nATR1);
def UP1 = HL2 + (AtrMult1 * ATR1);
def DN1 = HL2 + (-AtrMult1 * ATR1);
def ST1 = if close < ST1[1] then UP1 else DN1;
plot SuperTrend1 = ST1;
SuperTrend1.AssignValueColor(if close < ST1 then CreateColor(100, 0, 200) else CreateColor(0, 255, 255));
SuperTrend.Hide();
SuperTrend.hidebubble();
SuperTrend1.Hide();
SuperTrend.hidebubble();
addcloud(SuperTrend,SuperTrend1,color.light_green,color.light_red);
AssignPriceColor(if PaintBars and close < ST
then CreateColor(127, 68, 255)
else if PaintBars and close > ST
then CreateColor(125, 125, 0)
else Color.CURRENT);
def bullish = close crosses above ST1;
def bearish = close crosses below ST1;
# Alerts
Alert(bullish, "Up", Alert.Bar, Sound.ding);
Alert(bearish, "Down", Alert.Bar, Sound.bell);