Hello fellow traders,
Here is a simple but very effective screener code of my own.
It detects the stocks that can be purchased.
These stocks must show some conditions, of course.
But it is not sufficient.
They must BREAK a TRENDLINE (a resistance).
And no code will detect this for you. That’s why we can’t backtest this kind of strategy. But it easy to make a screener, and an indicator.
On the graphic, I did set the volumes, and the 10 average volumes.
I also show you some trendlines breaks on the same stock.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
c1 = average[50] > average[200] c2 = close > average[50] c3 = close > open c4 = Volume > 2*(Average[10](Volume)) c5 = Volume > Volume[1] and Volume > Volume[2] and Volume > Volume[3] c6 = Volume > 20000 c7 = ForceIndex > 10000 c8 = RSI[70] > 51 // it means RSI[14] on weekly timeframe, because 1 week = 5 days IF c1 and c2 and c3 and c4 and c5 and c6 and c7 and c8 THEN ACHAT = 1 ELSE ACHAT = 0 ENDIF screener[ACHAT] // To get the indicator, replace this last line by : //return ACHAT |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
Thanks Doc. If you want to test if your big candle have made a good move and have pierced a trendline, maybe you could just make a lookback with a simple loop in the previous candles and test if these ones were in a narrow range? Look for their highest and lowest values or average their prices to find the distance within the close of your big candle.
Hello, Nicolas.
Yes, I did also think that it is possible :
add a criteria of candle size (with ADX, etc.)
add a breakout of the 10 last high
etc.
But I think the best indicator is how do you see the candle.
If someone wants some more criteria, it is always possible.
Best Regards,
Salut doc, pas moyen d’avoir un signal, j’ai beau screener tout le marché en Daily et Hebdo, je n’ai jamais le critère “1”
Bonjour,
Aucun retour de résultats
Pour avoir des résultats j’ai commenté cette ligne :
// c4 = Volume > 2*(Average[10](Volume))
Sorry,
l’indicateur fonctionne.
Je n’avais pas vu les dernières lignes de commentaires
Merci
Hi, i’m not able to see the indicator. Could you please help me? Thanks
This is not an indicator but a screener, to be used with the ProScreener module.
Le programme ne se charge pas dans PRT