[pshaiCmd] Hull Moving Average (SE)

0 45 Views No Comments 4 weeks ago
  • Custom command for Hull Moving Average, made in SE and supports all built-in MAs.

    Example:

    local c = ClosePrices()
    
    local ma1 = CC_HMA(c, 20, SmaType)
    local ma2 = CC_HMA(c, 20, DemaType)
    local ma3 = CC_HMA(c, 20) -- default is WMA
    local ma4 = CC_HMA(c, 20, KamaType)
    
    Plot(0, 'ma1', ma1, White)
    Plot(0, 'ma2', ma2, Yellow)
    Plot(0, 'ma3', ma3, Orange)
    Plot(0, 'ma4', ma4, Red)
    • This topic was modified 3 weeks, 4 days ago by pshai. Reason: Set default MA type to WMA
    • This topic was modified 3 weeks, 4 days ago by pshai. Reason: Added example snippet
    • This topic was modified 3 weeks, 4 days ago by pshai.
    HaasScript Code
    Sign in or Register to view
Login or Register to Comment

Unlock your crypto trading potential

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

Join for Free