hi everyone
i require your assistence with dtosc afl . I want to backtest that particular indicator but i do not know the afl language to create a system . what i am looking for is creating a simple system in which we buy when dtosc makes bullish crossover and sell when it makes bearish crossover . Can someone please help me with this and tell me the steps of how to backtest
thanks
dtosc formula
_SECTION_BEGIN("dtoscillator_13");
/* DT Oscillator
**
**
**
*/
PeriodRSI= Param("PeriodRSI", 8, 1, 250, 1);
PeriodStoch=Param("PeriodStoch", 5, 1, 250, 1);
MAType=Param("MAType", 1, 1, 2, 1);
PeriodSK=Param("PeriodSK", 3, 1, 250, 1);
PeriodSD=Param("PeriodSD", 3, 1, 250, 1);
Upper=Param("Upper", 75, 50, 100, 1);
Lower=Param("Lower", 25, 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);
}
Plot(SK,"DTOscSK",ParamColor( "ColorSK", colorBlue ),styleLine);
Plot(SD,"DTOscSD",ParamColor( "ColorSD", colorBlack ),styleDashed);
Plot(0,"ZeroLine",ParamColor( "ColorZero", colorBlack ),styleLine);
Plot(Upper,"Upper",ParamColor( "ColorUpper", colorRed ),styleLine);
Plot(Lower,"Lower",ParamColor( "ColorLower", colorGreen ),styleLine);
_SECTION_END();
i require your assistence with dtosc afl . I want to backtest that particular indicator but i do not know the afl language to create a system . what i am looking for is creating a simple system in which we buy when dtosc makes bullish crossover and sell when it makes bearish crossover . Can someone please help me with this and tell me the steps of how to backtest
thanks
dtosc formula
_SECTION_BEGIN("dtoscillator_13");
/* DT Oscillator
**
**
**
*/
PeriodRSI= Param("PeriodRSI", 8, 1, 250, 1);
PeriodStoch=Param("PeriodStoch", 5, 1, 250, 1);
MAType=Param("MAType", 1, 1, 2, 1);
PeriodSK=Param("PeriodSK", 3, 1, 250, 1);
PeriodSD=Param("PeriodSD", 3, 1, 250, 1);
Upper=Param("Upper", 75, 50, 100, 1);
Lower=Param("Lower", 25, 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);
}
Plot(SK,"DTOscSK",ParamColor( "ColorSK", colorBlue ),styleLine);
Plot(SD,"DTOscSD",ParamColor( "ColorSD", colorBlack ),styleDashed);
Plot(0,"ZeroLine",ParamColor( "ColorZero", colorBlack ),styleLine);
Plot(Upper,"Upper",ParamColor( "ColorUpper", colorRed ),styleLine);
Plot(Lower,"Lower",ParamColor( "ColorLower", colorGreen ),styleLine);
_SECTION_END();