Biggest intraday range scan

zeek

Active member
2019 Donor
I am interested to build a scan to find stocks with the biggest intraday price range over x amount of days lookback, for example last 30days.

Is this possible to code as a scan condition somehow?
 
Solution
this is a label I made and use. 14 day average true range and how much it's moved for the day. When under 60% the label is green, above 90 it's grey, else orange.
Code:
declare upper;

defineGlobalColor("ATR Low", color.green);
defineGlobalColor("ATR Mid", color.orange);
defineGlobalColor("ATR High", color.gray);

input ATRLength = 14;
input DRLow = 60;
input DRMid = 90;
def averagetype = AverageType.WILDERS;
def BasePeriod = AggregationPeriod.DAY;

def ATR = MovingAverage (averagetype, TrueRange(high(period = BasePeriod)[1], close(period = BasePeriod)[1], low(period = BasePeriod)[1]), ATRLength);

def Today_High = Highest(high(period = baseperiod)[0], 1);
def Today_Low = Lowest(low(period =baseperiod)[0], 1);

def DR = Today_High -...

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

I am looking for stocks that typically move more than 5% per day based on a 30day average and the daily average volume should be at least 1million shares traded.

So a combination of average day range & average daily volume based on last 30days.
 
this is a label I made and use. 14 day average true range and how much it's moved for the day. When under 60% the label is green, above 90 it's grey, else orange.
Code:
declare upper;

defineGlobalColor("ATR Low", color.green);
defineGlobalColor("ATR Mid", color.orange);
defineGlobalColor("ATR High", color.gray);

input ATRLength = 14;
input DRLow = 60;
input DRMid = 90;
def averagetype = AverageType.WILDERS;
def BasePeriod = AggregationPeriod.DAY;

def ATR = MovingAverage (averagetype, TrueRange(high(period = BasePeriod)[1], close(period = BasePeriod)[1], low(period = BasePeriod)[1]), ATRLength);

def Today_High = Highest(high(period = baseperiod)[0], 1);
def Today_Low = Lowest(low(period =baseperiod)[0], 1);

def DR = Today_High - Today_Low;
def DRP = Round((DR/ATR)*100,2);

AddLabel(yes, "ATR: $" + round(ATR,2) + " • T: $" + Round(DR , 2) + " (" + DRP +"%)",  if DRP < DRLow then GlobalColor("ATR Low") else if DRP > DRMid then GlobalColor("ATR High") else GlobalColor("ATR Mid"));
 
Solution

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
270 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