Moving Average Crossovers For ThinkOrSwim

Dear Team,
I would like to setup this study in TOS app, if any candle stick (D-5mins,10min,15 minutes / Day within 1 bar) cross above, cross below or touch 100 SMA, need to get alert. Can you pls. help me to setup this indicator?

Thanks in advanced!
 
@Stockmarker Price crossing above and below a moving average or two moving averages crossing each other?

Thanks Ben for the quick response.

Just to add : When I talk about last candle stick in the given time frame, should consider Wicks also. Thank you !

Example (To get more clarity) : If my last red candle stick open @ 50 $ and close @ 40 $ and High wick touched 60$ and low wick touched 30$.
if I setup this alert, should consider low and high wicks and not the open and close prices.
 
@Stockmarker Now you're kinda confusing me lol. What exactly are you trying to scan for? When price crossing above the 100 SMA? Or another moving average crossing above/below the 100 SMA?
 
@Stockmarker Now you're kinda confusing me lol. What exactly are you trying to scan for? When price crossing above the 100 SMA? Or another moving average crossing above/below the 100 SMA?
Sorry Ben for the confusion... My requirement is to alert when the last candle stick (Irrespective of low,high,open or close price of the last candle stick bar ) cross above or cross below or touch the SMA 100.
 
@Stockmarker See if this works for you. Add this as a condition in your scanner. No need for any custom script.

Here is an example: close crosses above the 100 SMA. You have the option to choose between close, open, high, low, etc.

U6cUOXx.png
 
I'm looking to create a scanner to help with a scalp strategy. I need the scanner to pick up stocks that the xxx SMA crossed above the xxx SMA, easy enough, but I'm looking to find a way that it will scan for that condition within the last xxx bars.... So, example would be the 20 SMA crossed above the 50 SMA within the last 3 bars on a 5 min chart. Is this possible?
 
@JaeTrades Pay attention to the bottom of your script, specifically the following line:

Code:
AddCloud(FastMA, SlowMA, Color.GREEN, Color.RED);

You can customize that to change the color.
 
How create on TOS an alert when there Golden Cross or Death Cross. And how do a scan for the same GC, DC?

Thanks

Wilman Villegas
 
@wilmanv Just change the lengths to 50 and 200.
Hey guys newbie here looking for some help with the following idea:
8 EMA crossover of 20 SMA and vice versa
Dumb question: but the 8 and 20 only represent "periods" so that script could be applied to any timeframe, correct?

Also, how do I go about applying that script to a list of tickers/index?

Thanks!
 
Hi MerryDay, I was able to set up my desired 8EMA/20SMA crossover study on a chart. And I believe I did it correctly trying to upload it to one of my watchlists in the "Scan" tab. Question: I saw one of BenTen's posts about creating a column to notify of a crossover in the watchlist. Is there a place where just that piece of script exists? I wasn't able to decipher to pick it out of one of his posts here: https://usethinkscript.com/threads/moving-average-crossover-watchlist-column-for-thinkorswim.119/

Any pointers here? Thanks!
 
@Andygray8 It sounds like the watchlist that you reference in your post should work for you.
What problem are you having w/ it?
 
@Andygray8 You need to set up a scanner first. Then, save that scanner as a watchlist and select the following option: Alert when scan results change...

yDgJUxA.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
373 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