Need Help on configure stochastic

#1
Hi
i need stochastic oscillator with parameter (5,3,3)
there are three indicators in Amibroker
Stochastic %d
Stochastic %k
Stochastic Momentum
i am confused with these. Main i want same settings of Mt4 Stochastic Indicator
with parameter (5,3,3). with two lines crossover etc.

Plz help me to configure in Amibroker..
 

amitrandive

Well-Known Member
#2
Stochastic code,change requirements from parameters.

Code:
SP = Param( "Periods", 10, 1, 200, 1 );
Ksmooth = Param( "%K avg", 5, 1, 200, 1 );
Dsmooth = Param( "%D avg", 5, 1, 200, 1 );
StochDval = StochD( SP , Ksmooth, DSmooth );
StochKval = StochK( SP , Ksmooth);
 
Overbought = 80;
Oversold = 20;
 
 
Plot( StochD( SP , Ksmooth, DSmooth), _DEFAULT_NAME(), ParamColor( "ColorD", colorLavender ), ParamStyle("Style") );
Plot( StochK( SP , Ksmooth), _DEFAULT_NAME(), ParamColor( "ColorK", colorRed ), ParamStyle("Style") );
 
Plot(Overbought,"Overbought Level",colorRed);
Plot(Oversold,"Oversold Level",colorGreen);
 

Similar threads