scan for stocks whose price is X% within MA - ThinkOrSwim Programming | futures io social day trading
futures io futures trading

scan for stocks whose price is X% within MA
Updated: Views / Replies:3,452 / 1
Created: by fadeyourbets Attachments:0

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Thread Tools Search this Thread

scan for stocks whose price is X% within MA

  #1 (permalink)
Trading Apprentice
new york
Futures Experience: Beginner
Platform: tos
Favorite Futures: es
Posts: 1 since Nov 2013
Thanks: 0 given, 0 received

scan for stocks whose price is X% within MA


I would like to create a scan that lists all stocks whose price is 5% within their 50DAY SMA.

is there a way to create that sort of screen in TOS?

any help appreciated.

Reply With Quote
  #2 (permalink)
Elite Member
Futures Experience: Beginner
Platform: tos
Favorite Futures: stocks
Posts: 52 since May 2011
Thanks: 35 given, 69 received

Open Scan Tab and click on Add Study Filter button.
On the left hand side there is a dropbox with a Criteria caption, open it and choose Custom field (the one on the bottom of dropdown list)
Scanner Custom Filter window will appear. Open ThinkscriptEditor tab.
Delete ADXCrossover() line.

Paste the following code into thinkscript editor:

def ma = SimpleMovingAvg(close,50);
def s = ma*0.05;
plot scan = absvalue(close - ma) is less than or equal to s;

Choose the aggregation period you want to scan on.
Click OK

Now click Save Scan Query so you can load this scan later

Reply With Quote
The following user says Thank You to growex for this post:


futures io > > > > > scan for stocks whose price is X% within MA

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

Wyckoff Hunting for Great Risk/Reward Ratio w/Gary Fullett

Elite only

Digging into the Details of iSystems w/Stage 5 & iSystems

Jun 5

Similar Threads
Thread Thread Starter Forum Replies Last Post
Average Volume Scan / Scan Results TonyB ThinkOrSwim 5 March 23rd, 2013 02:20 PM
how to scan for highly shorted stocks strike333 Stocks and ETFs Trading 2 February 3rd, 2013 11:37 PM
Price MA cross help Please tickvix NinjaTrader 2 February 28th, 2012 11:41 AM
Multi MA Price Channel zacharydw00 NinjaTrader 15 January 31st, 2011 09:19 PM
MA/price indicator jmjstrider The Elite Circle 10 January 16th, 2011 03:46 PM

All times are GMT -4. The time now is 06:17 AM.

Copyright © 2018 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
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
Page generated 2018-05-20 in 0.06 seconds with 19 queries on phoenix via your IP