MultiFrame: Stoch

Raju

Well-Known Member
#2
Hi ,
Can some one please share AFL stoch(8,4,3) for 30 mins period on 5 mins chart.

Thanks
I have one such afl - Muti Time Frame Stk ,
but am new to modifying parameters.You will have to modify it as per u'r req.

_SECTION_BEGIN("Parameters");

Plot(Param("Wyprzedanie",25,0,100),"",ParamColor("Level-color",colorGrey50), ParamStyle ( "Level-style" ,styleDashed |styleNoTitle | styleNoRescale ) );
Plot(Param("Wykupienie",75,0,100) ,"",ParamColor("Level-color",colorGrey50), ParamStyle ( "Level-style" ,styleDashed |styleNoTitle | styleNoRescale ) );

TimeframeL = ParamList("Time Frame Short",List = "15 min,30 min,Hourly,4 Hour,Daily,Weekly",2);
Tf1=
IIf(TimeframeL == "15 min",in15Minute,
IIf(TimeframeL == "30 min",1800,
IIf(TimeframeL == "Hourly",inHourly,
IIf(TimeframeL == "4 Hour",inHourly*4,
IIf(TimeframeL == "Daily",inDaily,
IIf(TimeframeL == "Weekly",inWeekly,
IIf(TimeframeL == "Weekly",inMonthly,Null)))))));

_SECTION_END();

_SECTION_BEGIN("Stochastic %D");

periods = Param( "Periods", 8, 1, 200, 1 );
Ksmooth = Param( "%K avg", 3, 1, 200, 1 );
Dsmooth = Param( "%D avg", 3, 1, 200, 1 );
Plot( StochD( periods , Ksmooth, DSmooth ), _DEFAULT_NAME(), ParamColor( "Color", colorBlue ), ParamStyle("Style") );

_SECTION_END();

_SECTION_BEGIN("Stochastic %K");

periods = Param( "Periods", 8, 1, 200, 1 );
Ksmooth = Param( "%K avg", 3, 1, 200, 1 );
Plot( StochK( periods , Ksmooth), _DEFAULT_NAME(), ParamColor( "Color", colorRed ), ParamStyle("Style") );

_SECTION_END();

_SECTION_BEGIN("Stoch.%D-H");

periods = Param( "Periods", 8, 1, 200, 1 );
Ksmooth = Param( "%K avg", 3, 1, 200, 1 );
Dsmooth = Param( "%D avg", 3, 1, 200, 1 );

TimeFrameSet(Tf1);
StochDh= StochD( periods , Ksmooth, DSmooth );
TimeFrameRestore();


Plot( TimeFrameExpand( StochDh, Tf1), _DEFAULT_NAME(), ParamColor( "Color", colorGreen ), ParamStyle("Style") );

_SECTION_END();


_SECTION_BEGIN("Stoch.%K-H");

periods = Param( "Periods", 8, 1, 200, 1 );
Ksmooth = Param( "%K avg", 3, 1, 200, 1 );

TimeFrameSet(Tf1);
StochDk = StochK( periods , Ksmooth);
TimeFrameRestore();

Plot( TimeFrameExpand( StochDk, Tf1) , _DEFAULT_NAME(), ParamColor( "Color", colorGreen ), ParamStyle("Style") );


_SECTION_END();
 

yusi

Well-Known Member
#3
Hi ,
Can some one please share AFL stoch(8,4,3) for 30 mins period on 5 mins chart.

Thanks
Am curious as to why you would do it this way? Why not use a stock(34,5,4) for example on a 5 minute chart?

While it would need some trial and error, and there may be no concordance between a 8 period on 30min to a 34 period on a 5 min, both should eventually yield similar curves.

- Yusi
 

Similar threads