OPEN-SOURCE SCRIPT
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)
// | 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 creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.