Skip to main content

bi or tri state ribbon for Amibroker (AFL)

colin549 over 11 years ago Amibroker (AFL)

  • Rating:
    5 / 5 (Votes 1)
  • Tags:
    ribbon, amibroker

Plots a ribbon which is useful for bi or tri state indicators. In this example we have a green state when EMA3 is > than EMA23, and a red state for the opposite.

Indicator / Formula

Copy & Paste Friendly
/*Plot Ribbon */
Ribbon1=IIf( EMA( Close , 3 )>EMA( Close , 23 ) ,colorGreen, IIf(EMA( Close , 23 )>EMA( Close , 3 ), colorRed,colorYellow));
Plot(6, "Ribbon", Ribbon1, styleOwnScale| styleArea| styleNoLabel,-0.5,100);

0 comments

Leave Comment

Please login here to leave a comment.