Please Code the below strategy for Pi


Last 15 closes > 14 EMA


1 Bar: A bull bar with close near its high. (Close above 80% of the trading range)

2 Bar : A shooting star with close near its low. (Close below 20% of the trading range)

3 Bar: Low < 2 Bar’s Low but Low > 1 Bar’s Low & Close > 2 Bar’s Close.

In short something like a evening star pattern, expect for the changes in the 3 candle.

Please help.

you can check below strategy

A little confused…I think the link points to the code only for shooting star, where as the the above strategy is a little different. Please advise and correct me if I am wrong.