Scan with time based trigger


Category:
0
0

 

Hello Pete , it it possible to create a scan condition with a time based trigger.

For example, if a simple scanner searches for stocks with 10,000 volume+on the day .

By 9:45 am market time , it applies a scan condition that only shows stocks with 10,000+ volume on the day but up %5.

The change +5% filter only applies at and after 9:45am.

Best

Marked as spam
Posted by (Questions: 22, Answers: 63)
Asked on September 16, 2019 4:01 pm
76 views
0
Essentially the % condition will only kick in once the market opens
( at September 16, 2019 4:25 pm)
0
Private answer

This has already been asked and answered.

https://www.hahn-tech.com/ans/scan-within-a-specific-hour-time-range/

Simply adjust the start and end times to cover the period of time you want the scan to return results.

I will update the title of this question to: "Scan with time based trigger"

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on September 16, 2019 6:07 pm
0
So now I am kind of stuck… this is what i have so far when I run the scan during extended hours, nothing shows up. This scan needs to pick up volume extended hours and premarket, and only apply the 5% condition after 9:45am. I have using the default volume slider declare lower; input startTime = 0945; input endTime = 1630; input percentChg = yes; def startOfScan = SecondsFromTime(startTime) > 0; def endOfScan = SecondsTillTime(endTime) > 0; def percentChgover5 = percentChg > .05; plot scanPeriod = startOfScan or endOfScan and percentChgover5;
( at September 16, 2019 6:59 pm)
0
nevermind, i found a fix but just sorting by % gain and filtering to top 6
( at September 16, 2019 7:55 pm)