Skip to main content

Impulse 'Firefly' Oscillator for Amibroker (AFL)

amolala almost 12 years ago Amibroker (AFL)

  • Rating:
    4 / 5 (Votes 9)
  • Tags:
    oscillator, amibroker, trend

This formula is not my brainchild.

The original author is Yasu ( and I thank him for the same )

These are oscillating bands and 80 – 20 rule applies here.

Take all buy calls below 20 and all sell calls above 80.

Always take calls after a false signal.

My favourite parameters are 20 and 3.

Feedback appreciated.

Screenshots

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("yasu 4");
m = Param("Periods", 10, 5, 20, 1 );
n = Param("Average", 4, 3, 10, 1 );

Var2=(High+Low+Close*2)/4;
Var3=EMA(Var2,m);
Var4=StDev(Var2,m);
Var5=(Var2-Var3)*100/IIf(Var4==0,1,Var4);
Var6=EMA(Var5,n);
Var7=EMA(Var6,n);
WW=(EMA(Var7,m)+100)/2-4;
MM=HHV(WW,n); 

Plot(ww, "WW", 8, 1+4);
Plot(mm, "MM", 4, 1+4);

Buy=IIf(ww>Ref(ww,-1) AND Ref(ww,-1)<Ref(ww,-2) AND ww<50,20,0);
Plot(Buy, "BUY", 8,2+4);
Sell=IIf(ww<Ref(ww,-1) AND Ref(ww,-1)>Ref(ww,-2) AND ww>50,20,0);
Plot(Sell, "SELL", 4,2+4);
_SECTION_END();
_SECTION_END();

2 comments

almost 12 years ago

seemingly very intersting and thanks for sharing also thanking admin for apporval

Leave Comment

Please login here to leave a comment.