Skip to main content

Volatility Ladder for Amibroker (AFL)

amolala over 12 years ago Amibroker (AFL)

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

Dear Friends,

This afl i have received from an acquaintance.

It is pretty helpful to me.

Hope it helps you too.

Happy trading !!

Screenshots

Indicator / Formula

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

pa = (2*C+H+L)/4;
cost = pa*Volume;

scost5 = Sum(cost,n);
svolume5 = Sum(Volume,n);
pa5 = scost5/svolume5;

RSV = (pa5-LLV(pa5,m))/(HHV(pa5,m)-LLV(pa5,m))*100;
pak = WMA(rsv,n);
paD = WMA(paK,n);

UP=pak; 
DOWN=pad; 
Oo=IIf(up<down,up,down);
Hh=Oo;
Ll=IIf(up<down,down,up);
Cc=Ll;
barcolor2=IIf(up>down,5,colorRed);
PlotOHLC( Oo,hh,ll,Cc, "Winner ", barcolor2, styleCandle );
_SECTION_END();
_SECTION_END();

2 comments

Leave Comment

Please login here to leave a comment.