BB Breakout + 70% retracement + slope
Forums › ProRealTime English forum › ProScreener support › BB Breakout + 70% retracement + slope
- This topic has 8 replies, 3 voices, and was last updated 6 years ago by Gunther.
-
-
07/31/2018 at 9:14 PM #77221
Hi,
I would like to screen for the following stocks:
- BB breakout (on 100 days lookback with a SD of 3)
- > 1 mio avg volume
- price > 5
- > simple MA 200
- >= 70% retracement since 52 weeks low
I think I have the right code for it but the various parts don’t seem to work together well. Here they are:
1234567891011121314151617181920212223242526indicator1 = Average[100](close)+3*std[100](close)c1 = (close >= indicator1)indicator2 = Average[200](close)c2 = (close >= indicator2)indicator3 = Average[20](Volume)c3 = (indicator3 >= 100000)c4 = close > 5criteria = closeSCREENER[c1 AND c2 AND c3 and c4] (criteria AS "Kurs")The retracement part looks like this:TIMEFRAME(Weekly)// find 52 week lowbottom250 = Lowest[52](close)// price has retrace more than 100% since the bottomcondition = close/bottom250>=2.0SCREENER [condition] (close/bottom250 as "retrace%")It seems the program only screens for whatever comes last.
Any ideas how to integrate the two parts? I’d be so thankful.
Also, I’d like to rank all the screen returns according to either a simple momentum measure, a volatility adjusted linear regression or some kind of slope in order to concentrate on stocks with a fairly steady rise.
Anyone out there to help? It would be highly appreciated.
07/31/2018 at 9:43 PM #77223Welcome to the forums. I see that this is your first topic. Please try to stick to the rules as explained here:
https://www.prorealcode.com/topic/automatic-trading-support-posting-rules/
Please use the ‘Insert PRT Code’ button when posting code in your future posts to make it more readable, I have tidied up your post for you. 🙂
08/01/2018 at 10:51 AM #7727908/07/2018 at 7:25 AM #77681Your compiled screener should look like this:
123456789101112131415161718192021TIMEFRAME(Weekly)// find 52 week lowbottom250 = Lowest[52](close)// price has retrace more than 100% since the bottomcondition = close/bottom250>=2.0timeframe(default)indicator1 = Average[100](close)+3*std[100](close)c1 = (close >= indicator1)indicator2 = Average[200](close)c2 = (close >= indicator2)indicator3 = Average[20](Volume)c3 = (indicator3 >= 100000)c4 = close > 5criteria = closeSCREENER[c1 AND c2 AND c3 and c4 and condition] (criteria AS "Kurs")There are not much results, so I recommend to scan large stocks lists.
08/07/2018 at 6:28 PM #7773308/07/2018 at 7:01 PM #7773508/12/2018 at 9:29 AM #78032I use two ways to enter:
a) market entry next day with a 3-ATR-stop or a stop below the VAL (Value Area Low that is necessarily created by the breakout on the volume profile);
trade management: exit when
- performance since 52 week low falls below 100%
- no new high for 65 days
- position size falls below 3% (in general: 10 open positions, each with initially 10%, no rebalancing)
- reduce positions to 5% when index (usually S&P 500) < MA200
b) wait til the consolidation has formed around the breakout-candle and enter on next new high (only if the next new high happens within 20 days of initial breakout); stop below breakout (advantage of this method: less stop-outs; disadvantage: some instruments never form the consdolidation)
exit: like above
c) it’s possible to trade this system without intitial stops in the market, just follow the exit-rules under a). But I don’t feel comfortable with that.
very important: no new trades are taken when index is < MA200
This is setup is totally counter-intuitive, I know, it takes Darvas’ rule “Buy expensive, sell even more expensive” to an extreme. I call it “Neo-Radge”, because the 100,3-Bollinger Band-Breakout comes from Nick Radge, the 100%-performance-rule though is from Darvas though. It works very well with minimum screen time.
What I still need is a ranking mechanism: If a position is closed and I open a new one, I need a quick way to decide which of the signals to take, even if there are only so few of them. My idea is to use the smoothness of the ascent, meaning: if two stocks have risen by the same amount I’d pick the one with the less volatile rise. But I am not sure how to go about it, yet.
Do you have any suggestions?
08/16/2018 at 10:34 AM #78352Sorry no because it is not possible to compare dynamically a stock with another one. You need to know its name because string variable is not part of the programming language.
Thank you for all the explanation, I’m sure it will surely help many people around. I think it would be a good idea to add the screener with your explanation as a library post, what do you think?
08/27/2018 at 9:00 PM #79196 -
AuthorPosts
Find exclusive trading pro-tools on