mirror of
https://github.com/wassname/pandas-ta.git
synced 2026-10-03 12:41:41 +08:00
apo calculation note
This commit is contained in:
1 parent
ac903b4479
commit
aa07f72093
1 file changed
+1
@@ -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