[pshaiCmd] Adaptive Period Length

0 54 Views No Comments 4 weeks ago
  • This command calculates the adaptive period length based on noise in the prices.

    It is recommended to use this command with: https://www.haasscripts.com/t/pshaicmd-indicator-memory/

    Usage:

    
    local o = OpenPrices()
    local h = HighPrices()
    
    local period = CC_AdaptivePeriod(o, c, 3, 20, 5, 20) 
    local ema = EMA(c, period)
    
    • This topic was modified 4 weeks ago by pshai.
    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