Current low above specified percent of previous bar range


Category:
0
0

Hi Pete, I’m looking for a scan that can find stocks low price at or above a specific range relative to the previous days range. I’ve attached a picture just for visual of what I’ve written below.

So first candle on left = 100% from low to high no matter the price.

Second candle on right is the candle that’s important.. so say for example, I’d want it to find all stocks where the low is up 40 or more percent relative to the previous candle’s range.

Attachments:
Marked as spam
Posted by (Questions: 12, Answers: 20)
Asked on June 28, 2020 7:25 pm
90 views
0
Private answer

Do you actually mean that you want to find stocks where the current low is within the upper 60% of the previous bar's range?

Edit: After getting clarification on the specifications I have updated the title of the question and included the solution below.

input percentThreshold = 60.0;
plot scan = low > high[1] - ((high[1] - low[1]) * percentThreshold * 0.01);

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on June 29, 2020 8:43 am
0
Yeah this exactly
( at June 29, 2020 9:10 am)
0
I have updated my answer to include the solution as specified.
( at July 1, 2020 11:53 am)
0
Wow Pete, this scan was perfect.. thank you so much.
( at July 8, 2020 8:54 am)