Need afl code for the below inside bar conditions...

Inside bar Downtrend explorer

Conditions for Alert

1.Price less than ema<14

2.Occurance of Inside bar

3.Following candles price action(if any mutiple bars formed) should
stay within the Inside bar pattern. ie. thier close should be within the mother candles high.

4.Price break below the Inside bar pattern and goes down.

5.Alert when another inside bar pattern is formed. (ie.the second inside bar mother low formed should be below the first one)

Vice Versa for uptrend.

Basically I am looking for similar occurance of inside bars in a trend. It would be great if someone could help. Thanks!

Similar threads