MA ribbon simple help to the coding gurus out here

Hey Guys,

Need some help with this code;-

/*Plot Ribbon */
Ribbon1=IIf( EMA( Close , 20 )>MA( Close , 50 ) ,colorGreen, IIf(MA( Close , 50 )>EMA( Close , 20 ), colorRed,colorYellow));
Plot(6, "Ribbon", Ribbon1, styleOwnScale| styleArea| styleNoLabel,-0.1,100);

The change needed is ribbon should change colour when there is a cross over not > / < values.

Thanks In Advance:thumb::thumb:


Similar threads