Kevin, as I said earlier, RS depends on YOUR timeframe, and how you are going to trade it.
This is a big misconception many people have, a strong stock will go up by say 20% when the market goes up, but the beaten down stock sometimes does 40% or more. In percentage returns the weak stocks are my choice. It is about which stock is picked.
There are no guarantees in the stockmarket, suggest you do your own research. I do not use RS at all, lean totally towards astro.
Hello Sir i came across a Afl for relative strength but i'm getting errors in code i'm using Ami 5.7 please correct the code i'm naive in coding
SetBarsRequired(sbrAll,sbrAll);
MAP = ("MAPer",21,2,400,1);
Bull1SYN = ParamStr("1Bull","XLY");
Bull2SYN = ParamStr("2Bull","XLI");
Bull3SYN = ParamStr ("3BUll","XLF");
Bear1SYN = ParamStr("1Bear",XLP");
Bear2SYN = ParamStr("2Bear",XLU");
Bear3SYN = ParamStr("3Bear",XLV");
FCBUll = Foreign(Bull1SYN,"C",2);
FCBUl2 = Foreign(Bull2SYN,"C",2);
FCBUl3 = Foreign(Bull3SYN,"C",2);
FCBear1 = Foreign(Bear1SYN,"C",2);
FCBear2 = Foreign(Bear2SYN,"C",2);
FCBear3 = Foreign(Bear3SYN,"C",2);
BullR1 = (FCBull1/Ref(FCBUll1,-1))-1;
BullR2 = (FCBull1/Ref(FCBUll2,-1))-1;
BullR3 = (FCBull1/Ref(FCBUll3,-1))-1;
BearR1 = (FCBear1/Ref(FCBear1,-1))-1;
BearR2 = (FCBear1/Ref(FCBear2,-1))-1;
BearR3 = (FCBear1/Ref(FCBear3,-1))-1;
InRS = 100*(In(1+(BullR1 +BullR2 + BUllR3 - BearR1 - BearR2 - BearR3)/3));
CumRSROR = Cum(InRS);
MinV = LowestVisibleValue(InRS);
MaxV = HighestVisibleValue(InRS);
MinMaxV = Max(abs(MinV),abs(MaxV));
MARS = MA(CumRSROR,MAP);
Plot(CumRSROR,"CumRSTiming",colorBlue,styleLine | styleThick);
Plot(MARS,"MACumRSTiming",colorViloet,styleLine | styleThick);
Barcolor = IIf(InRS > 0,colorGreen, colorRed);
Plot( InRS,"LNRS", color = Barcolor,styleHistogram | styleThick | styleOwnScale, MinValue = -MinMaxV, Maxvalue = MinMaxV);
Plot(0,"LNRS",Color = colorBlack, styleLine | styleThick |styleOwnScale, minvalue = -MinMaxV, Maxvalue = MinmaxV0;