Percentage scan - futures io
futures io futures trading



Percentage scan


Discussion in ThinkOrSwim

Updated by Lysakat
      Top Posters
    1. looks_one Lysakat with 2 posts (0 thanks)
    2. looks_two Alcamo with 2 posts (1 thanks)
    3. looks_3 Nube with 1 posts (1 thanks)
    4. looks_4 kareem40 with 1 posts (0 thanks)
    1. trending_up 527 views
    2. thumb_up 2 thanks given
    3. group 30 followers
    1. forum 5 replies
    2. attach_file 0 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
 

Percentage scan

(login for full post details)
  #1 (permalink)
san pedro ca. USA
 
 
Posts: 6 since May 2019
Thanks: 2 given, 4 received

Can someone help me write a script in TOS for scanning stocks whose yesterday's range was greater than the range of last 5 days?
Thank you

Reply With Quote

Can you help answer these questions
from other members on futures io?
Looking freelancer for MT4 Indicator
Platforms and Indicators
OPEN_CLOSE_DOTS
ThinkOrSwim
Horizontal Line Indicator
Platforms and Indicators
IB Bracker Order
Platforms and Indicators
DLL with webrequest function for MC
MultiCharts
 
 
(login for full post details)
  #2 (permalink)
Minneapolis Minnesota
 
 
Posts: 23 since Jul 2019
Thanks: 0 given, 11 received


Alcamo View Post
Can someone help me write a script in TOS for scanning stocks whose yesterday's range was greater than the range of last 5 days?
Thank you

Save this as a study, reference that study in the scanner

 
Code
declare lower;
input length = 5;
plot Scan = TrueRange(high, close, low) > Highest(TrueRange(high, close, low)[1], length - 1);

Reply With Quote
The following user says Thank You to Nube for this post:
 
(login for full post details)
  #3 (permalink)
Las Vegas NV USA
 
Experience: Beginner
Platform: TWS, TOS, Multicharts
Broker: IB
Trading: Stocks, ETFS,Options
 
Lysakat's Avatar
 
Posts: 26 since Jul 2014
Thanks: 11 given, 9 received


When I read the offered script:

declare lower;
input length = 5;
plot Scan = TrueRange(high, close, low) > Highest(TrueRange(high, close, low)[1], length - 1);

in English it reads,
create a plot (your choice of TOS types in a lower chart) displaying either '0' or '1' (false or true) if today's TrueRange is greater than any 'TR" of the 4 days before today. OR is today's 'TR" bigger than any of the 4 days before today.

Also remember today's range varies depending upon today's movement, highs may get higher and lows lower.

TOS defines "TR" is the greatest of the following:
the difference between the current high and the current low
the difference between the current high and the previous close
the difference between the previous close and the current low

To me, that is not what you said but it may be what you want.

If it is not what you want, then the script needs correction. 'TrueRange' is not range (difference between today’s high and low) but an often-used calculated value.

What I read from "stocks whose yesterday's range was greater than the range of last 5 days" is this:

Show me today if yesterday's range (the difference between high and low) is greater than the any of the 5 days before yesterday. That may also imply yesterday's range is greater than today's.

Additionally, TOS lets you display the results in ways that may be easier to read. For instance, because the offered script returns a boolean value, TOS could display an arrow, wedge, or point above or below your candlesticks, assuming you use candlesticks on the same chart.

Before any changes please be explicit in what you need so you get what you want.

You may already have it but please be sure as there may be money riding on it.

Hope this helps

Reply With Quote
 
(login for full post details)
  #4 (permalink)
Dallas, TX
 
Experience: Intermediate
Platform: NT, TS
Broker: IB, Oanda
Trading: ES, MES, MNQ, MYM
 
kareem40's Avatar
 
Posts: 653 since May 2010
Thanks: 1,864 given, 870 received

Hi @Alcamo

I curious, how are you trading off this scan?

Thanks
K

Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #5 (permalink)
san pedro ca. USA
 
 
Posts: 6 since May 2019
Thanks: 2 given, 4 received

Regarding the percentage scan, it is not really a scan, but just an indicator shown below qqq ( what i follow and trade).
It tells me the percentage increase from yesterday's close. In my case I start trading at 6:30 Am. The % increase tells me how aggressive i should be entering QQQ. Should I invest my normal amount (lets say $20000) or maybe 50% of it. Normally, if the difference is an increase of 1.5% or more from yesterdays close i am not going to trade the all $20000. unless some really really favorable news is in. even the, i reduce my stop.

The other scan that i asked for help on the highest five day range is not working yet. I am not a thinkorswim script writer. I have very little knowledge o the script language, so i dont know if i am not able to utilize or maybe there is a glich in the script.
I hope this helps. Thank you for contacting me
Tony

Reply With Quote
The following user says Thank You to Alcamo for this post:
 
(login for full post details)
  #6 (permalink)
Las Vegas NV USA
 
Experience: Beginner
Platform: TWS, TOS, Multicharts
Broker: IB
Trading: Stocks, ETFS,Options
 
Lysakat's Avatar
 
Posts: 26 since Jul 2014
Thanks: 11 given, 9 received

I tried the offered script in TOS, it works. The question I posted is 'what do you need". The programming is relatively simple for me but what your requirements must be accurate for the script to show what you want.

Please review the descriptions I've already posted about the various differences. Then if you want/need I can correct the script to meet your requirements.

Reply With Quote


futures io Trading Community Platforms and Indicators ThinkOrSwim > Percentage scan


August 21, 2019


Upcoming Webinars and Events
     



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