I am looking for a formula :
I would like to go long when :
the 5 day EMA cross the 8 day EMA but only if the cross between the two EMA is above the 20 day EMA and close it when the 5 cross below th 8 EMA and above the 20 day EMA
Go short when
the 5 day EMA cross the 8 day EMA but only if the cross between the two EMA is below the 20 day EMA and cover it when the 5 cross above the 8 EMA and below the 20 day EMA
My problem is not for the cross but how to write above or below another EMA
thank you for your help
I would like to go long when :
the 5 day EMA cross the 8 day EMA but only if the cross between the two EMA is above the 20 day EMA and close it when the 5 cross below th 8 EMA and above the 20 day EMA
Go short when
the 5 day EMA cross the 8 day EMA but only if the cross between the two EMA is below the 20 day EMA and cover it when the 5 cross above the 8 EMA and below the 20 day EMA
My problem is not for the cross but how to write above or below another EMA
thank you for your help