mirror of
https://github.com/wassname/pandas-ta.git
synced 2026-08-04 13:03:59 +08:00
apo calculation note
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user