rwwhite96 2 posts msg #157384 - Ignore rwwhite96 |
8/14/2021 5:05:33 AM
Hi Everyone,
I had a go at making my first filter. However, I do not think the Price within 5 day high filters have worked - would anyone be able to provide some advice?
It is based off the following conditions:
-ADR (Average Daily Range) above 5
-Price X% greater than Y days ago (1 month, 3 month, 6 month scanners)
-Price within 16% of 5 day high
-Price within 16% of 5 day low
-$Volume (close * volume) greater than 3,000,000
-Listed Stocks Only (No OTC, etc.)
Variables for price percentage scanners:
-1 Month: 20% Greater than 22 Days ago
-3 Month: 40% Greater than 67 Days ago
-6 Month: 100% Greater than 126 Days ago
And here is my filter:
/*Swing trade filter breakout stocks*/
/*Create variables for 5 day high and 5 day low*/
set{h4H,high 5 day high}
set{h4L,high 5 day low}
/*Create limits for variables*/
set{vuplimit,h4H * 1.16}
set{vdnlimit,h4L * 0.84}
/*Create variable for identifying if a stock is within the limit variables for that day*/
set{highup1, count(high below vuplimit,1)}
and highup1 > 0
set{highup2, count(high above vdnlimit,1)}
and highup2 > 0
set{Both, highup1 + highup2}
/*Filters for day range and close price in the past x days*/
and Average Day Range(1) Above 4.00
and Close is 20% more than Close 22 days ago
and Close is 40% more than Close 67 days ago
and Close is 100% more than Close 126 days ago
/*Market selected*/
/*and Market is NYSE*/
/*Additional metrics drawn*/
and draw RSI
and draw moving average (10) on price plot
and draw moving average (20) on price plot
and draw moving average (50) on price plot
and do not draw highup1 and do not draw highup2
/*Additional columns added*/
and add column h4H
and add column h4L
|