Dears members,
Please find here below a screener to identify the Morning and Evening stars. As you know, these candlestick structures are very relevant to identify the top and bottom of a trend. It’s also a strong buy and sell signal.
This code has been update to stick as much as possible to the theory of candlestick.
Do not hesitate to contact me or consult my website Boursomaniac for other strategies.
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
//Author: Boursomaniac //Date: 19-02-2017 // Data Set-up BaseCandle = 0 Open0 = Open[BaseCandle] Close0 = Close[BaseCandle] Open1 = Open[BaseCandle + 1] Close1 = Close[BaseCandle + 1] Open2 = Open[BaseCandle + 2] Close2 = Close[BaseCandle + 2] Open3 = Open[BaseCandle + 3] Close3 = Close[BaseCandle + 3] // Control height DojiBody = ABS(Close1-Open1) HeightLong = 7*DojiBody // ++++++++++EVENING STAR++++++++++++ // Calcul height candelstick 2 and 2 CandleElong0 = ABS(Close0-Open0) CandleElong2 = ABS(Close0-Open0) // Validate Candlestick color + position CandleE0 = Open0 > Close0 And Open0 < Close1 AND (CandleElong0>=HeightLong) CandleE1 = Open1>Open0 AND Close1>Close0 AND Close1>Close2 AND Open1>Open2 CandleE2 = Open2 < Close2 And Close2 > Close3 And Open3 < Close3 AND (CandleElong2>=HeightLong) EvStar = CandleE0 AND CandleE1 AND CandleE2 // ++++++++++MORNING STAR++++++++++++ // Calcul height candelstick 2 and 2 CandleMlong0 = ABS(Close0-Open0) CandleMlong2 = ABS(Close0-Open0) // Validate Candlestick color + position CandleM0 = Open0 < Close0 And Open0 > Close1 AND (CandleMlong0>=HeightLong) CandleM1 = Open1<Open0 AND Close1<Close0 AND Open1<Open2 AND Close1<Close2 CandleM2 = Open2 > Close2 And Close2 < Close3 And Open3 > Close3 AND (CandleMlong2>=HeightLong) //Morning Star MornStar = CandleM0 AND CandleM1 AND CandleM2 //Go Short Signal = -1 If EvStar then Go = -1 endif //Go Long Signal = 1 If MornStar then Go = 1 endif Condition = (EvStar Or MornStar) SCREENER[Condition] (Go AS "Go") |
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
In addition, if you want to get more information on how to use the candlestick and evening and morning stars, please read dedicated articles on my website (sorry guys, only in French)
Merci, tres interessant
Hi, would it be possible to combine this screener with roberogozzi’s divergence screener? I’m sorry I have no idea how to code. https://www.prorealcode.com/topic/divergences-screener/
This is possible code is available here https://www.prorealcode.com/topic/divergences-screener/