PureBytes Links
Trading Reference Links
|
Tomasz has written the code below
Lsp = Min(L, Min(Ref(L,-1) +1* LinRegSlope(L, 14),
Min(Ref(L,-2) +2* LinRegSlope(L, 14),
Min(Ref(L,-3) +3* LinRegSlope(L, 14),
....
in Vbscript ti optimize the period
Stefan has helped me to translate in js,
I have written the plugin dll in Cpp .
But there is some little differences at 1/1000
could you confirm to me the code of LinRegslope is
Lrs=((tp*(Sum(Cum(1)*C,tp)))-(Sum(Cum(1),tp)*(Sum(C,tp)))) /
((tp*Sum((Cum(1)^2),tp))-(Sum(Cum(1),tp)^2));
Stephane
|