alert for 20 day sma moving above 200 day sma - futures io
futures io futures trading



alert for 20 day sma moving above 200 day sma


Discussion in ThinkOrSwim

Updated by Python Programmer
      Top Posters
    1. looks_one swamijenkins with 1 posts (0 thanks)
    2. looks_two Python Programmer with 1 posts (0 thanks)
    3. looks_3 ColoradoCliff with 1 posts (1 thanks)
    4. looks_4 coolcat7fl with 1 posts (0 thanks)
    1. trending_up 352 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 3 replies
    2. attach_file 2 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

alert for 20 day sma moving above 200 day sma

(login for full post details)
  #1 (permalink)
sarasota, fl
 
 
Posts: 1 since Nov 2020
Thanks: 0 given, 0 received

can someone help me create a script for an alert when the 20day sma moves above the 200 day sma? this would be i guess a scan for all stocks, or could i do it both ways, for a watchlist and for a scan?

cheers

Reply With Quote

Can you help answer these questions
from other members on futures io?
Webinar: Trading and Hedging Gold Futures and Options w/Carley Garner
Options
fibonacci retracements settings not saved in investing
Traders Hideout
New Indicator for Tracking High-Frequency Traders (HFT)
Sierra Chart
Can Tradingviews Drawing tool create limit order
Platforms and Indicators
Delta PVP ( POC )
MultiCharts
 
 
(login for full post details)
  #2 (permalink)
Parker CO/USA
 
 
Posts: 1 since Jun 2017
Thanks: 0 given, 1 received


coolcat7fl View Post
can someone help me create a script for an alert when the 20day sma moves above the 200 day sma? this would be i guess a scan for all stocks, or could i do it both ways, for a watchlist and for a scan?

cheers

This is a "simple" use of the crossover study on scans. Note that this will only show you the stocks when the cross has just happened.

I'm not yet allowed to post links, so what you need to do is go to the Scan tool & select STUDY --> Crossover --> MovingAvgCrossover. Then change the short to 20 and the Long to 200. Select Simple for each MA and be sure you're using Daily. That's it!

Attached Thumbnails
Click image for larger version

Name:	image_796.png
Views:	16
Size:	59.1 KB
ID:	306710  
Attached Images
 
Reply With Quote
The following user says Thank You to ColoradoCliff for this post:
 
(login for full post details)
  #3 (permalink)
Lapeer, MI/USA
 
Experience: Advanced
Platform: ThinkorSwim
Trading: Emini ES, SPY Options
 
Posts: 1 since Sep 2016
Thanks: 1 given, 0 received


This should work. If today's 20day is greater than today's 200day and yesterday's 20day is less than yesterday's 200day:

def fast = 20;
def slow = 200;

def FastSMA = MovingAverage(AverageType.Simple, close, fast);
def SlowSMA = MovingAverage(AverageType.Simple, close, slow);

plot BullMA = (FastSMA > SlowSMA) and (FastSMA[1] < SlowSMA[1]);

Reply With Quote
 
(login for full post details)
  #4 (permalink)
Santa Barbara CA/USA
 
 
Posts: 1 since Aug 2020
Thanks: 0 given, 0 received


coolcat7fl View Post
can someone help me create a script for an alert when the 20day sma moves above the 200 day sma? this would be i guess a scan for all stocks, or could i do it both ways, for a watchlist and for a scan?

cheers

Would a Python solution work for you? Recently I wrote a Python script that scans thousands of stocks in order to filter out stocks that meet a certain condition.

Reply With Quote


futures io Trading Community Platforms and Indicators ThinkOrSwim > alert for 20 day sma moving above 200 day sma


November 24, 2020


Upcoming Webinars and Events
 

Trading and Hedging Gold Futures & Options w/Carley Garner

Elite only
 

Bookmap

Dec TBD
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts