mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-07 21:47:43 +00:00
Rename EACP to ACP across entire codebase
- Renamed directory lib/cycles/eacp → lib/cycles/acp - Renamed class Eacp → Acp, EacpIndicator → AcpIndicator - Renamed all files: Eacp.cs → Acp.cs, Eacp.Quantower.cs → Acp.Quantower.cs, eacp.md → acp.md, eacp.pine → acp.pine, and all test files - Updated display names: EACP → ACP in Quantower Name/ShortName properties - Updated all documentation surfaces: _sidebar.md, lib/_index.md, lib/cycles/_index.md, docs/indicators.md, docs/validation.md, docs/pinescript.md, lib/cycles/cg/cg.md cross-reference - Updated Python bridge: qtl_eacp → qtl_acp entry point, _bridge.py, cycles.py wrapper, SPEC.md, test_shapes.py, run_all_exported - All 83 tests pass (38 AcpTests + 22 AcpValidationTests + 23 AcpIndicatorTests) - Build: 0 warnings, 0 errors across all projects
This commit is contained in:
@@ -564,7 +564,7 @@ HAS_CG = _bind("qtl_cg", [_dp, _ci, _dp, _ci])
|
||||
HAS_DSP = _bind("qtl_dsp", [_dp, _ci, _dp, _ci])
|
||||
HAS_CCOR = _bind("qtl_ccor", [_dp, _ci, _dp, _ci, _cd])
|
||||
HAS_EBSW = _bind("qtl_ebsw", [_dp, _ci, _dp, _ci, _ci])
|
||||
HAS_EACP = _bind("qtl_eacp", [_dp, _ci, _dp, _ci, _ci, _ci, _ci])
|
||||
HAS_ACP = _bind("qtl_acp", [_dp, _ci, _dp, _ci, _ci, _ci, _ci])
|
||||
|
||||
# ── Numerics (Exports.cs — manual) ──
|
||||
HAS_CHANGE = _bind("qtl_change", [_dp, _ci, _dp, _ci])
|
||||
|
||||
@@ -20,7 +20,7 @@ __all__ = [
|
||||
"dsp",
|
||||
"ccor",
|
||||
"ebsw",
|
||||
"eacp",
|
||||
"acp",
|
||||
]
|
||||
|
||||
|
||||
@@ -142,11 +142,11 @@ def ebsw(close: object, hp_length: int = 40, ssf_length: int = 10,
|
||||
return _wrap(dst, idx, f"EBSW_{hp_length}", "cycles", offset)
|
||||
|
||||
|
||||
def eacp(close: object, min_period: int = 8, max_period: int = 48,
|
||||
avg_length: int = 3, enhance: int = 1,
|
||||
offset: int = 0, **kwargs) -> object:
|
||||
def acp(close: object, min_period: int = 8, max_period: int = 48,
|
||||
avg_length: int = 3, enhance: int = 1,
|
||||
offset: int = 0, **kwargs) -> object:
|
||||
"""Ehlers Autocorrelation Periodogram."""
|
||||
offset = int(offset)
|
||||
src, idx = _arr(close); n = len(src); dst = _out(n)
|
||||
_check(_lib.qtl_eacp(_ptr(src), n, _ptr(dst), int(min_period), int(max_period), int(avg_length), int(enhance)))
|
||||
return _wrap(dst, idx, f"EACP_{min_period}_{max_period}", "cycles", offset)
|
||||
_check(_lib.qtl_acp(_ptr(src), n, _ptr(dst), int(min_period), int(max_period), int(avg_length), int(enhance)))
|
||||
return _wrap(dst, idx, f"ACP_{min_period}_{max_period}", "cycles", offset)
|
||||
|
||||
Reference in New Issue
Block a user