150 SMA Scan Help

cdweaver333

New member
Hey there...I'm attempting to capture the crest of 150 SMA's as stocks move from Stage 2 into Stage 3.

I would post some photos but imgur isn't loading today for some reason...

Let's use PTON as the first example...there's a huge stage 2 runup but in late April/early May of 2021, the 150 SMA starts to crest and go sideways. This lets me know there's a potential for a big selloff if the stock stays in stage 3 and moves to stage 4.

5/3/21 - 150 SMA is 123.95
5/4/21 - 150 SMA is 123.95
5/5/21 - 150 SMA is 123.83

In scan filters, I can compare today's 150 SMA to yesterday's. If I try to compare to compare 150 SMA from 2 bars ago to 150 SMA from 1 bars ago, I get an invalid statement...

Essentially, I hoping to view any stocks where -
150 SMA < 150 SMA from 1 Bar Ago AND
150 SMA from 1 Bar Ago is greater than or equal to 150 SMA from 2 Bars Ago...

Thanks for any help you can provide....
Devon
 
Solution
Ruby:
SimpleMovingAvg("length" = 150)."SMA" is less than SimpleMovingAvg("length" = 150)."SMA" from 1 bars ago
and
SimpleMovingAvg("length" = 150)."SMA" from 1 bars ago is greater than or equal to SimpleMovingAvg("length" = 150)."SMA" from 2 bars ago
Shared Scan Link: http://tos.mx/zXZkmbG Click here for --> Easiest way to load shared links
AaKoO5J.png

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