Streak Moving Averages

Hi guys,

I am tryjng to make a strategy kn streak which should generate a buy signal when price crosses above 5EMA and price is already higher than 20EMA. But streak would only consider points where price crosses above 20 EMA, it does Not consider 5EMA at all.
Please suggest a solution.

Please refer to the this thread: