Re: MT5 Moving Averages (MAs)

143
Not all indicators are suitable to have an option to be applied to another indicator data via mt5 designed / allowed options. Linear regression line (original that uses "simple" prices posted here : Linear regression line is one that is suitable

We have regression channel as objects, but it needs to be constantly adjusted if we want it to follow new bars forming. Hence : here is the version that can be applied to another indicator(s)


These users thanked the author mrtools for the post (total 3):
RodrigoRT7, kvak, Ricstar_8

Re: MT5 Moving Averages (MAs)

145
mrtools wrote: Wed Jun 26, 2024 11:45 pm From Mladen Rakic:

In the "good old days" coders were trying to optimize all the code that could be optimized. One such example was the optimization of Liner regression calculation. Coder that was coding by the name "mathemat" (if I remember correctly, if I am wrong please correct me) came up with a simplified formula for linear regression value : 3*lwma - 2*sma

And, since both lwma and sma can be optimized to a so called "loop less mode", it was adopted as the optimal way to calculate it and it produces correct values. But that calculation lacks what the "normal" linear regression value calculation has as intermediate values :

* linear regression intercept
* and the slope of the linear regression line

So, here is one different way of calculating linear regression (optimal : uses the so called "loop less mode") but that has both the intercept and slope


Capture__1.png
very nice !!
Scalping the Century TimeFrame since 1999


Re: MT5 Moving Averages (MAs)

147
TRADOR wrote: Tue Sep 17, 2024 5:43 am WHERES THE FINISHED PRODUCT?
Product? Did you pay anyone for anything by chance Mr. Trador? Asking in capital letters too?

I'd delete and rewrite your message from scratch.
"I conjure from shadows and shape fortunes from the unseen. The treasure lies hidden in plain sight, beneath the sunlight." - Cagliostro