♥ 0 |
Pete, I’ve been searching through your scan tab and can’t seem to find what i’m looking for…I’m trying to scan for stock up or down 4% from the previous day close….I’ll be doing this scan in pre market…
Thanks
Marked as spam
|
Private answer
There are a very large number of requests for this in the forum. This is most often referred to as a premarket gap scanner. The one that does 95% of the grunt work for your request is here: https://www.hahn-tech.com/ans/after-hours-gap-scanner/ I will include the code from that post:
...and then add one line to complete your premarket gap scanner. First we need to change that plot statement to def:
Then add the scan plot to find stocks currently trading 4% or more above or below previous day close.
Complete. Now I will put that all together into a single piece of code and include a user input to adjust the percent value so that other visitors to this post can apply it to their own needs.
You must set the Study Filter for this scan to an intraday aggregation period and check the box to include extended hours. There will be some stocks that do not trade in after hours session and this scan will not pick up. This is because the time used to determine the previous day close is the first bar of the extended session. Marked as spam
|
Please log in to post questions.