xinolia

Future Least Squares Moving Average

//+------------------------------------------------------------------+
// | Future Least Squares Moving Average |
// | 未来予測LSMA |
// | Ver.1.0 |
// | Copyright Sakura |
//+------------------------------------------------------------------+
//LSMAは一時回帰直線の現在地の点の集合であるということは、未来の点を使えば未来を描けるはずというアホなことを無理やり考えました。
//結論はうまくいかなかったですので、パラメーターをいじって誤魔化しという結果に。
//それでも、先に書いてますので急激な価格変動に対処できる訳もなくといった感じになっています。
//displacementは一目に合わせたいので26固定の方向でとしたいところですが厳しいですね。
//
//設定例
//SMA(25)≒FLSMA(25,7,13)
//SMA(50)≒FLSMA(50,13,26)
//SMA(75)≒FLSMA(75,20,26)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?