there is no mention of timeframes in the afl .
if u select 240min or 4h in the chart then it will show u the desired timeframe..
_SECTION_BEGIN("dt 15 min");
//////
///Following lines of code is added by me to
///display 15 min oscillator
//////
tf = Param( "TF", 6, 1, 375, 1 );
TimeFrameSet(in1Minute*tf);
PeriodRSI= Param("PeriodRSI", 13, 1, 250, 1);
PeriodStoch=Param("PeriodStoch", 8, 1, 250, 1);
MAType=Param("MAType", 1, 1, 2, 1);
PeriodSK=Param("PeriodSK", 5, 1, 250, 1);
PeriodSD=Param("PeriodSD", 3, 1, 250, 1);
Upper=Param("Upper", 70, 50, 100, 1);
Lower=Param("Lower", 30, 0, 50, 1);
StoRSI= 100*(( RSI( PeriodRSI) - LLV( RSI( PeriodRSI ) , PeriodStoch ) ) / ( (
HHV( RSI( PeriodRSI) , PeriodStoch ) ) - LLV(RSI( PeriodRSI ), PeriodStoch ) )
);
if(MAType==1)
{
SK=MA(StoRSI,PeriodSK);
SD=MA(SK,PeriodSD);
}
if(MAType==2)
{
SK=EMA(StoRSI,PeriodSK);
SD=EMA(SK,PeriodSD);
}
TimeFrameRestore();
k=TimeFrameExpand(SK,in1Minute*tf,expandFirst);
d=TimeFrameExpand(SD,in1Minute*tf,expandFirst);
Plot(k,"DTOscSK1",ParamColor( "ColorSK1", colorRed ),styleLine|styleNoLabel);
Plot(d,"DTOscSD1",ParamColor( "ColorSD1", colorOrange ),styleLine|styleNoLabel);
Plot(0,"ZeroLine",ParamColor( "ColorZero", colorBlack ),styleLine|styleNoLabel);
Plot(Upper,"Upper",ParamColor( "ColorUpper", colorRed ),styleLine);
Plot(Lower,"Lower",ParamColor( "ColorLower", colorGreen ),styleLine);
_SECTION_END();
please correct htis one if any wrong