Ticaret robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Twitter üzerinde bulun!
Fan sayfamıza katılın
Komut dosyasını ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Komut dosyasını beğendiniz mi? MetaTrader 5 terminalinde deneyin
Göstergeler

Linear Regression Value - MetaTrader 5 için gösterge

Görüntülemeler:
1384
Derecelendirme:
(5)
Yayınlandı:
2024.06.25 21:02
Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

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 



Tick RSI Adaptive Tick RSI Adaptive

RSI adaptive indicator based on tick calculations

MovingAverages.mqh Part II by Wiliam210 MovingAverages.mqh Part II by Wiliam210

How to use Metaquotes native smoothing functions in MovingAverages.mqh SimpleMAOnBuffer(), ExponentialMAOnBuffer(), SmoothedMAOnBuffer(), and 2 LinearWeightedMAOnBuffer()

Linear Regression Slope Linear Regression Slope

Linear Regression Slope

Linear Regression Line Linear Regression Line

Linear Regression Line