Skip to main content

3-10 Oscillator with Color Change for Amibroker (AFL)

kran over 11 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 3)
  • Tags:
    oscillator, amibroker

Modified 3/10 oscillator histogram with up bar green and down bar red in color

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("3/10 Osc");
m=MA(Close,3)-MA(Close,10);
Plot( m, "My 3/10 Osc", IIF(m>0, colorGreen, colorRed), styleHistogram );
Plot( m, "My 3/10 Osc", coloryellow, styleLine);
s=MA(m,16);
Plot(s,"Signal",IIF(s > Ref(s, -1), colorBlue, colorOrange), styleThick);
Plot(0,"",colorWhite,styleDashed);
_SECTION_END();

0 comments

Leave Comment

Please login here to leave a comment.