-
SuperSmoother ported from a TradingView script.
Usage:
local hlc = HLCPrices() local mean_line = OptimizedForInterval(0, || CC_SuperSmoother(hlc, 200, 50)) Plot(0, 'Mean', mean_line)
Usage (loop):
local markets = {'BTC', 'ETH', 'XRP'} for i = 1, Count(markets) do local mkt = CreateMarket({baseCurrency = markets[i]}) local hlc = HLCPrices(0, true, mkt) local mean_line = OptimizedForInterval(0, || CC_SuperSmoother(hlc, 200, 50, mkt)) Plot(i, 'Mean - ' .. mkt, mean_line) end