# scanner to compare low and highs of the day

Category:
0
0

How can I setup the following scan

A=[Last Price] – [Low of day]
B=[high price of day] > A*2

EG
Last price [25] -[20]= 5

B= [high price of day] > 5*2=\$35

So If stock last price is \$25.00
and the low of the day is \$20.00
The Scanner  will show me all stocks that have a high of the day of \$35.00 or more

Thank you

Marked as spam
Posted by (Questions: 5, Answers: 1)
Asked on June 17, 2020 11:23 pm
84 views
 ▲ 0 ▼ ✔ Private answer I had to read through that several times and I'm not certain you provided all the details. So here is what I came up with that seems to hit your mark: high of day is greater than (current price minus low of day) times 2 plus current price Meaning that the difference between today's high must be twice the distance from current price as the current price is from the low. If that is correct, then the scan looks like this: `plot scan = high > (close - low) * 2 + close;` You run this in a Study Filter that is set to daily time frame. All of the data points needed are right there on the current daily candle. No need to drill down into the intraday time frame to compute this value and run the scan. Results will update throughout the day as the current daily candle continues to change throughout the day until the markets close. The only reason you might need to do this on an intraday time frame is if you needed to include the high and low from extended hours session. Marked as spam Posted by Pete Hahn (Questions: 37, Answers: 4102) Answered on June 18, 2020 10:12 am