MTF SMA Label

Freddie_CM

New member
VIP
Hello,

I am working on a strategy that requires knowing if current price is above or below the 50SMA on the 5M and 15M timeframes. If possible, would anyone be able to create a code that shows a label for the 5M and 15M on the upper chart indicating if price is above or below the 50SMA? This would help GREATLY! TIA!
 
Solution
Use some of the snippets from this thread https://usethinkscript.com/threads/mtf-moving-average-labels.13876/

You should be able to piece together exactly what you're looking for.
Yeah, I've been searching the site up and down and trying/editing a lot of scripts I've come across and still can't get it right. I'm not the best coder at all. All of the ones I've tried seem to be just a hair off and don't exactly work like I need them too. Kind of at a loss here is why I've posted the thread asking for assistance. The codes I've tried will intermittently work (i.e: it will show that some stocks are above the 50SMA when in reality, it's below and for other stocks it will perfectly.) Any help would be appreciated...
Use some of the snippets from this thread https://usethinkscript.com/threads/mtf-moving-average-labels.13876/

You should be able to piece together exactly what you're looking for.
Yeah, I've been searching the site up and down and trying/editing a lot of scripts I've come across and still can't get it right. I'm not the best coder at all. All of the ones I've tried seem to be just a hair off and don't exactly work like I need them too. Kind of at a loss here is why I've posted the thread asking for assistance. The codes I've tried will intermittently work (i.e: it will show that some stocks are above the 50SMA when in reality, it's below and for other stocks it will perfectly.) Any help would be appreciated.

EDIT
Found what I need. Below is the link to what I was looking for. Just had to change a few things. Thank you.

https://usethinkscript.com/threads/...hat-time-frame-chart-is-on.13615/#post-113820
 
Last edited:
Solution
Yeah, I've been searching the site up and down and trying/editing a lot of scripts I've come across and still can't get it right. I'm not the best coder at all. All of the ones I've tried seem to be just a hair off and don't exactly work like I need them too. Kind of at a loss here is why I've posted the thread asking for assistance. The codes I've tried will intermittently work (i.e: it will show that some stocks are above the 50SMA when in reality, it's below and for other stocks it will perfectly.) Any help would be appreciated.

EDIT
Found what I need. Below is the link to what I was looking for. Just had to change a few things. Thank you.

https://usethinkscript.com/threads/...hat-time-frame-chart-is-on.13615/#post-113820
that is great that you are trying to put together some custom code. if you get stuck post the code you have and tell us,
..what it should do
..what part isnt working

everyone starts out knowing nothing about a topic. i am a slow learner and it took me a long time, with lots of failed code tries before it started making sense for me. keep asking questions, you will get it.
 

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

Thread starter Similar threads Forum Replies Date
W MTF/SMA Questions 10
P MTF Stacked Averages? Questions 0
S MTF Shaded EMA Questions 4
T Repaints MTF EMA Scalper For ThinkOrSwim Questions 1
D MTF-painted Average Slope Line Questions 0

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
492 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