-
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)