Skip to main content

OSMA for Amibroker (AFL)

icemanc almost 15 years ago Amibroker (AFL)

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

mt4 indicator converted to afl

Indicator / Formula

Copy & Paste Friendly
// osma implementation for Amibroker
// version 0.2 (c) 28th April 2011, //xytise@gmail.com 


// Params

GraphXSpace = 3;

FastEma=Param("Fast EMA", 12, 1 , 25, 1);
SlowEma=Param("Slow EMA", 26, 1 , 50, 1);
SignalEma=Param("Signal EMA", 9, 1 , 25, 1);

// signals 
s = Signal( FastEma, SlowEma, SignalEma ); 
m = MACD( FastEma, SlowEma ); 
OsMA=m-s;

// plots
CenterLine = 0;
OsMAColor=IIf( OsMA > CenterLine,colorBrightGreen, colorRed);
Plot (OsMA, "OsMA ", OsMAColor,styleHistogram|styleThick );

3 comments

3. icemanc
almost 15 years ago

Hi admin plz dis approve this ,

this is a simple macd histogram .

I found this in one blog ,didn’t observe the code

Leave Comment

Please login here to leave a comment.