Skip to main content

Unbounded Stochastic for Amibroker (AFL)

HelpingEachOther about 8 years ago Amibroker (AFL)

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

The Unbounded Stochastic values are allowed to go outside the 0 to 100 boundaries imposed by the standard stochastic indicator.

The unbounded option makes it easy to spot strong breakouts with values below 0 or above 100.

reference:
https://www.linnsoft.com/techind/stochastics

Screenshots

Indicator / Formula

Copy & Paste Friendly
periods=Param("Periods",15,1,200,1);
Kusmooth=Param("%Kuavg",3,1,200,1);
Dusmooth=Param("%Duavg",3,1,200,1);
HH=HHV(Ref(H,-1),Periods);
LL=LLV(Ref(L,-1),Periods);
Raw=Nz(100*(C-LL)/(HH-LL),null);
SlowKu=MA(Raw,Kusmooth);
SlowDu=MA(SlowKu,Dusmooth);
Plot(SlowKu,_DEFAULT_NAME(),ParamColor("KuColor",colorCycle),ParamStyle("KuStyle"));
Plot(SlowDu,_DEFAULT_NAME(),ParamColor("DuColor",colorCycle),ParamStyle("DuStyle"));
PlotGrid(80,colorRed);
PlotGrid(50,colorLightGrey);
PlotGrid(20,colorLightGrey);

0 comments

Leave Comment

Please login here to leave a comment.