Skipping consecutive loss signals.

 

Is there a way to do this:

I have an arrow indicator that is triggered by a simple cross of two different EMA, fast and slow. So every time they cross a signal will show, an arrow up for buy or down for sell.

A successful buy trade for me would be if the close of fifth candle after the signal candle is higher than the close of the signal candle, and a successful sell trade is if the close of the fifth candle after the signal candle is lower than the close of the signal candle. If this did not happen, it would be considered a loss trade.

How do i make it that the signal only appears after 2 consecutive loss trade?


Thanks

Reason: