Requesting for coding

Buy:

HIGH > EMA(CLOSE, 12)

Sell:

LOW < EMA(CLOSE, 12)

Please add the following too to the above code

need 3 closes above High EMA 12 to BUY, and same for SELL
 

Buy:

HIGH > EMA(CLOSE,12) AND REF(HIGH,1)>EMA(CLOSE,12) AND REF(HIGH,2)>EMA(CLOSE,12)

Sell:

LOW < EMA(CLOSE,12) AND REF(LOW,1)<EMA(CLOSE,12) AND REF(LOW,2)<EMA(CLOSE,12)

For the above strategy Pi shows backtest results differently when we use “with chart” and without chart options while back testing. Can u please confirm this?