Skip to main content

Premier Stochastic Oscillator for Amibroker (AFL)

kaiji over 16 years ago Amibroker (AFL)

  • Rating:
    4 / 5 (Votes 4)
  • Tags:
    oscillator, trading system, amibroker

In “Premier Stochastic Oscillator” in this issue, Lee Leibfarth presents a fast-reacting indicator derived from the classic stochastic indicator.

Screenshots

Indicator / Formula

Copy & Paste Friendly
stochlen = Param("Stoch Length", 8, 3, 30 );
smoothlen = Param("Smooth Period", 25, 5, 100 );
sk = StochK(stochlen, 1 );
len = sqrt( smoothlen );
nsk = 0.1 * (sk - 50 );
ss = EMA( EMA( nsk, len ), len);
expSS = exp( ss );
pso = ( expSS - 1 )/( expSS + 1 );
Plot( pso, "pso", colorBlack, styleThick );
Plot( pso, "", IIf( pso < 0, colorRed, colorBlue ), styleHistogram );
Plot( 0.2, "", colorBlue );
Plot( 0.9, "", colorBlue );
Plot( -0.2, "", colorRed );
Plot( -0.9, "", colorRed );

0 comments

Leave Comment

Please login here to leave a comment.