feat: add length->period kwargs alias across all 168 indicator functions for pandas-ta compat

This commit is contained in:
Miha Kralj
2026-03-02 10:00:29 -08:00
parent ae7207c3d8
commit 18694e337e
16 changed files with 211 additions and 168 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ def solar(close: object, offset: int = 0, **kwargs) -> object:
def ssfdsp(close: object, period: int = 14, offset: int = 0, **kwargs) -> object:
"""Supersmoother DSP."""
period = int(period)
period = int(kwargs.get("length", period))
offset = int(offset)
src, idx = _arr(close)
n = len(src)