From aa07f720932ecbdb71d30e8722a1a02ddc33c425 Mon Sep 17 00:00:00 2001 From: Kevin Johnson Date: Tue, 21 May 2019 09:18:52 -0700 Subject: [PATCH] apo calculation note --- pandas_ta/momentum/apo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandas_ta/momentum/apo.py b/pandas_ta/momentum/apo.py index 412d614..ed05ec3 100644 --- a/pandas_ta/momentum/apo.py +++ b/pandas_ta/momentum/apo.py @@ -16,6 +16,7 @@ def apo(close, fast=None, slow=None, offset=None, **kwargs): # Calculate Result fastma = ema(close, length=fast, **kwargs) slowma = ema(close, length=slow, **kwargs) + # EMAs are equivalent with talib, only their difference is minutely off apo = fastma - slowma # Offset