Miesal Trend Following Indicator for ThinkorSwim

BenTen

Administrative
Staff member
Staff
VIP
Lifetime
Very simple script.

IfztR18.png


Code:
# Miesal Indicator
# Assembled by BenTen at useThinkScript.com
# Converted from https://www.tradingview.com/script/Tdp90Pee/

declare lower;

input length = 10;
input src = close;

def Mi = sum(if(src > src[1], +1, if(src < src[1], -1, 0)), length);

plot line = Mi;
line.AssignValueColor(if line >= 0 then color.green else color.red);
 
I like the indicator for its simplicity I ran it today but it seems a little late vs my full stochastic and macd
 
Nice - good fit at lower time frames:

MSFT - 1 Minute

R7Rfu2K.png


SPY - 1 Minute

0M88U5L.png


Don't underestimate it - it looks simple, but could be useful. Play around with it and mix it up with other indicators. Report back any good pairings ;)
 

Attachments

  • R7Rfu2K.png
    R7Rfu2K.png
    166.6 KB · Views: 100
  • 0M88U5L.png
    0M88U5L.png
    177.5 KB · Views: 105
I like the indicator for its simplicity I ran it today but it seems a little late vs my full stochastic and macd
a length of 9 in shorter time frame seems to work (really) well. what stochastic, macd are you using and what time frame do you trade?
 
a length of 9 in shorter time frame seems to work (really) well. what stochastic, macd are you using and what time frame do you trade?
The standard TOS full and MACD. I stand corrected its very accurate I have it on the 8 now on a 3 and 5min charts now. Ill watch it Mon on the 5min as a stand alone indicator. Off the low or high its great and right on. I'm excited to take her for a spin lol. Thanks guys it catches the highs and low well on the 15min too, I was using a 8/49 ema on the 5 min but recently switched over to 10/20/30 ema,s. my chart is the cci/atr with the atr. and with the Misael looks like a perfect match along with for my laptop.

Several days later, I'm sold on this one and keep it as standard to my charts now:)
 
Last edited:
Thanks for the input and Charts, @diazlaz.

Please tell me how you get the signal arrows and matching candle colors.

Thanks
 
@diazlaz @J007RMC I tried 8 and 9 as the length and definitely can say that it's much better than the default setting. Thank you all for looking into it and experimenting.
 
@diazlaz I know this is a very old thread but I would really like your help in getting the upper study you have in your post. It is visually easy to see when the indicator goes above or below zero when the candles repaint red or green. I would really appreciate if you could do that for me, thanks!
 
@diazlaz I know this is a very old thread but I would really like your help in getting the upper study you have in your post. It is visually easy to see when the indicator goes above or below zero when the candles repaint red or green. I would really appreciate if you could do that for me, thanks!
Add the following statement to the study in the top post:
Code:
AssignBackgroundColor(if line >= 0 then color.green else color.red);
 

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
363 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