my new stategty

#1
sir,
can anybody can write afl code for my following stategy

rules:

two candles must close. second candle must be in inside of the first candle .and not break the 50% total height of the first candle.

for buy entry.

second candle low should not break the 50% of the total height of the first candle.so when it break the first candle high we can buy.

for sell entry
second candle high should not breakt the 50% of the total height of the first canle.so when it break the first canlde low we can sell.

any experts can write afl for this
thanks in advance