I already mentioned the possible problem...see my post before yours
It is a buy when 10 cross 20 on the upside , when 50 is already above 100.
It is a sell when 10 cross 20 on the downside, when 50 is already below 100.
So in the 2 scenario you have mentioned it wont lead to any buy/sell trigger.
Thanks.