NexusFi: Find Your Edge


Home Menu

 





Help on 10 day daily range break intraday filter


Discussion in ThinkOrSwim

Updated
    1. trending_up 2,112 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 0 posts
    2. attach_file 0 attachments




 
Search this Thread

Help on 10 day daily range break intraday filter

  #1 (permalink)
vinnyb64
New York, NY
 
Posts: 1 since Mar 2017
Thanks Given: 1
Thanks Received: 1

I am looking for some help on an intraday filter that will tell me if a stock has broken its 10 day range on the daily chart. I am an intraday trader so it should be updating throughout the day with new tickers as they break this range. I'm not sure if TOS can do it real-time vs. after the fact and at the close. So far I have the following filters: Last > 5, Average Volume 50 SMA > 1M, current volume on the daily has increased 75% from its 20 period average, and the following code in thinkscript:

 
Code
def highrange = highest(high,10)[1];

def lowrange = lowest(low,10)[1];

input length = 14;
input averageType = AverageType.WILDERS;

def ATR = MovingAverage(averageType, TrueRange(high, close, low), length);

plot example = (high>highrange or low<lowrange) and (ATR > 0.5);
I defined the high and low point for the past 10 days and am using the daily timeframe when scanning. I also want stocks to have an ATR of at least 0.5.

Is what I have done correct and will TOS update this as the day goes? I want a blank list when the day starts and then new tickers that meet my criteria to populate it as the day goes on.

Thanks and any help is most appreciated.

Reply With Quote
Thanked by:




Last Updated on April 23, 2017


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts