TradingView
capissimo
Oct 5, 2020 3:54 AM

WMA Dynamic 

Euro Fx/U.S. DollarFXCM

描述

Demonstration of a new feature that allows to change lookback period dynamically, used with WMAs. Rather than WMA any one can be used here (SMA, Alma,...) as long as its second argument supports dynamic change. If not, you have to use your own implementation of MA.
评论
Docop1
Interesting function indeed. But what do you mean about the 'to use your own implementation of MA.' do you have another example perhaps ? thanks
capissimo
@Docop1, ple look up the docs (ex. here tradingview.com/pine-script-reference/v4/ and search for moving average, and you'll see at least a dozen of implementations in Pine.
更多