Indicator for Think or Swim based on Rob Smith's The STRAT

@Rsully2222

Something like this?...

Maybe check The Strat Facebook page.

Maybe y’all have seen from my other post but I am in LOVE with this trading method. Only found out about The Strat and Rob Smith on Aug. 5th from his fine post. I have been killing it since(so time will tell). I am not affiliated with anyone from The Strat community. It’s just the first thing that has actually worked for me.

Learn it.
 
Last edited:

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

Yeah that's exactly what I'm looking for I just haven't been able to find anything like that it would greatly appreciated
 
Yeah that's exactly what I'm looking for I just haven't been able to find anything like that it would greatly appreciated
So after searching today, I found 2 codes for it. Both work as i've tested them both.


Code:
#Displays candle type and up or down for the chosen period per the Strat
plot CandleType;
if high[0] > high[1] and low[0] < low[1] then {
#engulfing
CandleType = 3;
} else if high[0] < high[1] and low[0] > low[1] then {
#inside
CandleType = 1;
} else {
CandleType = 2;
}
# Display Candle Type
plot CandleDirection;
if close[0] > open[0] then {
#Price is rising
CandleDirection = 1;
} else if close[0] < open[0] then {
#Price is declining
CandleDirection = 2;
} else {
CandleDirection = 3;
}

#Display candle type and direction
addLabel(yes, if CandleType == 3 then "3" else if CandleType == 1 then "1" else "2", if CandleDirection == 2 then color.white else if CandleDirection == 1 then color.black else color.black);

assignBackgroundColor(if CandleDirection == 1 then color.green else if CandleDirection == 2 then color.red else color.yellow);

Or


Code:
def prevHigh = high[1];
def currHigh = high[0];
def prevLow = low[1];
def currLow = low[0];
def currOpen = open[0];
def currClose = close[0];
def prevClose = close[1];

AddLabel(1,
    if  currHigh < prevHigh and  currLow > prevLow then " In " 
    else if currHigh > prevHigh  and currLow < prevLow then " Out " 
    else if currHigh > prevHigh  and currLow > prevLow then " 2Up " 
    else if currHigh < prevHigh  and currLow < prevLow then " 2Dn " 
    else " "
,
    Color.Black
);
AssignBackgroundCOlor(if currClose > currOpen then Color.Green else if currClose < currOpen then Color.Red else Color.White);

Just an FYI: I am not a coder nor did I code either of these. I was just looking for this and found it useful and thought I might share to people who were looking for the same thing. It's for the watchlist columns.
 
if you figure out how to code a broadening formation channel, that would be a game changer... i check back to this thread every other day or so to see how you are coming along. great progress, keep up the great work and thank you!
 
Not sure why watch list codes are not working for me....I am getting an error "AddLabel is not allowed in this context". Help please.
 
if you figure out how to code a broadening formation channel, that would be a game changer... i check back to this thread every other day or so to see how you are coming along. great progress, keep up the great work and thank you!
There's a study on here called wedge finder or something. Its not exactly the same thing but if you draw out the wedge, you'll see price broadens along those lines very frequently. In the image below, just ignore all the other stuff and focus on the hashed lines that extend outward from the wedges. That's the study I'm talking about. It's a version of the study you'll find in this site (or one very similar to it) that has been modified to draw out the diagonals. I can't share it because it's not mine and the guy who wrote it for me said not to, but I've run both the one on here and this one on the same charts and they indicate wedges in exactly the same places. The only difference is that this one extends the lines for you. If you get the wedge study that is available on this site, you just have to draw them out yourself, but it's essentially the same thing.

sderpfm.png
 
Last edited:
Not sure why watch list codes are not working for me....I am getting an error "AddLabel is not allowed in this context". Help please.
Did you try the one I posted? I'm not having any trouble with mine.
M54ai6k.png

2Yy5NwY.png

5gsIXaj.png


I posted the code in the top post. It's the last bit of code on that post.
 

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
542 Online
Create Post

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