time filter scan


Category:
0
0

Hi Pete,

I found the below from another post (How to add a time filter to scan) and I just wanted to confirm that if I only wanted to receive an alert if the condition is reached during the first hour the market is open, would I delete the “and newDay[1]”? Thank you.

plot scan = newDay and newDay[1];

Marked as spam
Posted by (Questions: 7, Answers: 9)
Asked on February 15, 2018 10:33 pm
181 views
0
Private answer

That depends on what time frame you have the study filter set to. If it is set to hourly (and extended hours is unchecked), then modifying the statement to read….

plot scan = newDay;

….would return true for the first hourly bar of each trading day.

Since you did not provide those other details I figured I would spell it out.

Also, whenever you are referencing some material from another post it’s always best practice to provide a link so folks don’t have to spend an hour searching for it. https://www.hahn-tech.com/ans/how-to-add-a-time-filter-to-scan/

Without the context provided in that link, this entire conversation has absolutely no value to the rest of our viewing audience.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on February 16, 2018 8:46 am
0

Hi Pete,
Thanks. Yes, that’s exactly what I was looking for.
Thank you.

( at February 16, 2018 11:46 am)