Semaphore Supertrend For ThinkOrSwim

BillW

Member
VIP
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

Screen Shot 11-28-25 at 10.14 AM.jpg



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);
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
540 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top