Scan for stocks that ran 100%+ intraday then gaped


Category:
0
0

Hello Pete, can you please help me through this scan creation

Below I have provided the conditions in bold

Scan for stocks that ran 100%+ intraday “day one” (distance for Low of day to High of day percent change is greater than 100%)  

 

With a minimum volume on day one being 10million volume

 

Then Gapped up at least 20% the next day aka day 2 (next day open is at least 20% greater than previous days close)

 

 

Time length of scan = 2 years

Marked as spam
Posted by (Questions: 3, Answers: 3)
Asked on November 28, 2020 7:53 am
163 views
0
Private answer

I have included two user inputs to allow other viewers the flexibility to change the percent thresholds without modifying the code directly.

The simplest way to build this is to use the daily time frame. All of the metrics and computations you referenced in your request are available at the daily time frame. The daily time frame also means we do not need to build recursive variables which would prevent this being used in Study Alerts and Conditional Orders.

input percentRangeThreshold = 100.0;
input percentGapThreshold = 20.0;
input volumeThreshold = 10000000;
def percentRangeLowToHigh = 100 * (high / low - 1);
def percentGap = 100 * (open / close[1] - 1);
plot scan = volume[1] > volumeThreshold and percentRangeLowToHigh[1] > percentRangeThreshold and percentGap > percentGapThreshold;

Note to the rest of our viewers

The definition used for a "gap up" in this post is not exactly standard. The request is to compare the previous day's close to the current day's open. A standard measure for the "gap up" is the distance between the previous day's high and the current day's open.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on November 28, 2020 9:45 am
0
thank you, most importantly does this scan apply historically on the daily chart? So it will pick up stocks did did this within the last year and not just on the current day?
( at November 28, 2020 10:10 am)
0
also, I dont see the day 1 volume criteria. This scan should pick up historical stocks like DPW on 11/24/20
( at November 28, 2020 10:19 am)
0
When applied to a daily time frame the code will only pick up stocks that meet your criteria on the most recent trading session. Today is Saturday, so the scan results you get today will be from Friday November 27th, 2020. If you had run this scan on Tuesday November 24th 2020 then yes, the ticker symbol DPW would have been in included in the scan results. I have updated my solution to include the volume limit for day 1.
( at November 28, 2020 1:27 pm)
0
Thank you so much, now how can i mod the code to not include the most recent trade session but show everything within a range of a year?
( at November 28, 2020 1:41 pm)
0
That's a bit more than I can provide for free in the Q&A Forum. You change the "plot scan" to "def signal". Then add a new plot statement such as "plot scan = signal[1]". The index works backwards in time. So if you use [1] it looks back one bar from the current. That's about all I can provide for now.
( at November 28, 2020 2:06 pm)