거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
지표

Linear Regression Value - MetaTrader 5용 지표

조회수:
1178
평가:
(5)
게시됨:
2024.06.25 21:02
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

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