MA ribbon simple help to the coding gurus out here

#1
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);
_SECTION_END();

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

Thanks In Advance:thumb::thumb:

ISA
 

Similar threads

Zerodha – Open Paperless Account

Open online account with Zerodha. Free delivery trading and Max Rs 20 for Intraday, F&O, Currency and Commodity Trading. Intraday High leverage with MIS, CO and BO.

Name:Phone:
Email:City:
State:
Are you a day trader?