Good Morning
I have a list of patterns I search for daily for the stocks and Indices I trade but thinking if I could program a screener on PRT to do this I could search for many more very quickly Im trying to have a go at learning how to do this myself at the moment
How hard is this pattern to do for example for a screener on PRT ?
http://thepatternsite.com/WeeklyRevsDownside.html
Look forward to your replys
Have a great day
Hi Kaj
Too much for me to do from scratch, but below might get you thinking along similar lines?
Bar Count Reversals (Pivot Points High/Low)
Cheers
GraHal
The first pattern you mention is an “inside day” applied to a weekly chart, the code for this pattern should be:
insideday = low[1]>low and high[1]<high
screener [insideday]
About the other pattern, the conditions are described as:
Open-Close Reversal, Uptrend, Identification Guidelines
| Characteristic |
Discussion |
| 1 bar |
The pattern is composed of one bar but it references the close of the first bar. |
| Uptrend |
Look for the pattern in a short-term up trend. |
| Open |
The open must be within 25% of the intraday high. |
| Close |
The close must be within 25% of the intraday low, but also be above the prior day’s close. |
Here is the screener code for PRT:
//The open must be within 25% of the intraday high.
c1 = (High-Open)/range<0.25
//The close must be within 25% of the intraday low, but also be above the prior day's close.
c2 = (Close-Low)/range<0.25 and Close>Close[1]
SCREENER [c1 and c2]
Thank You to Nicolas and Apologies to Kaj … I was reading too much into it!
I glanced at the pattern on patternsite.com and thought you wanted the ‘insideday candle’ where it appeared after an up trend.
Thinking about it now, that would be easy anyway as you could include sort criteria as % gain over x days / x weeks.
Or how about …
insideday = low[1]>low and high[1]<high
C1 = ADX[14] > 30
C2 = ADX[14]
Screener [insideday and C1] (C2 as “ADX[14)”)
>>>>>>>>>>>>>>>>>>>
(Insert PRT Code button is missing??)
Change the value of C1 = ADX[14] > 30 to > 40, > 50 etc to filter for a stronger trend.