Help in Backtesting

sr114

Well-Known Member
#1
Hello

i find difficulties in backtesting. when i do it all the values returned is zero and no meaningful analysis could be done out of zero.

cud u pls help me in doing backtest.

the buy sell logic which i want to test may be whatever, but for example i am posting an afl which is now heavily debated and its of niludeepak ( take it as an example and it is not the logic i may be using)

buy sell logic lifted from niludeepak's afl for example

TrendUp = C > Ref(HHV(H,8),-1);
TrendDn = C < Ref(LLV(L,8),-1);

TrendUp = ExRem(TrendUp,TrendDn);
TrendDn = ExRem(TrendDn,TrendUp);

Plot(Ref(HHV(H,8),-1),"\n 8H Hi", colorBlue);
Plot(Ref(LLV(L,8),-1),"8H Lo", colorRed);

up=Ref(((Ref(HHV(H,8),-3))+(Ref(LLV(L,8),-3)))/2,-1)<((Ref(HHV(H,8),-3))+(Ref(LLV(L,8),-3)))/2;
dn=Ref(((Ref(HHV(H,8),-3))+(Ref(LLV(L,8),-3)))/2,-1)>((Ref(HHV(H,8),-3))+(Ref(LLV(L,8),-3)))/2;
pls help me in backtesting - what i have to put in the backtester and other parameters i have to apply.

regards
sr
 
Last edited:

Similar threads