[pshaiCmd] Super Smoother

0 101 Views No Comments 2 weeks ago
HTS CLOUDSTABLE
  • 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
    
    • This topic was modified 2 weeks, 2 days ago by pshai. Reason: added usage
    • This topic was modified 1 week, 4 days ago by pshai. Reason: fixed the warmup logic
    • This topic was modified 1 week, 4 days ago by pshai. Reason: added id parameter
    • This topic was modified 1 week, 4 days ago by pshai.
    • This topic was modified 1 week, 4 days ago by pshai. Reason: fixed loop example
    HaasScript Code
    Sign in or Register to download for free
Login or Register to Comment

Unlock your crypto trading potential

Create a free account and enjoy everything we have to offer.

Join for Free