feat(price-transform): add price transform and statistic function wrappers

New file price_transform.go implements five new public wrappers:
- AvgPrice  (TA_AVGPRICE)  – mean of OHLC per bar
- MedPrice  (TA_MEDPRICE)  – (High + Low) / 2
- TypPrice  (TA_TYPPRICE)  – (High + Low + Close) / 3
- WCLPrice  (TA_WCLPRICE)  – (High + Low + 2×Close) / 4
- AvgDev    (TA_AVGDEV)    – rolling average absolute deviation from SMA

- add corresponding low-level function pointer signatures in functions.go
- register all five symbols in Load() in loader.go
- update README.md with Price Transforms and Statistic Functions sections
This commit is contained in:
2026-07-27 16:52:33 +09:00
parent f1c96eaf1d
commit 7cf9ab6e24
4 changed files with 211 additions and 0 deletions
+6
View File
@@ -33,6 +33,12 @@ This project currently exposes a focused subset of TA-Lib functions:
**Overlap Studies**
- `AccBands`, `BBands`, `DEMA`, `EMA`, `HT_TRENDLINE`, `KAMA`, `MA`, `MAMA`, `MAVP`, `MidPoint`, `MidPrice`, `SAR`, `SARExt`, `SMA`, `T3`, `TEMA`, `TRIMA`, `WMA`
**Price Transforms**
- `AvgPrice`, `MedPrice`, `TypPrice`, `WCLPrice`
**Statistic Functions**
- `AvgDev`
## Requirements
- Go `1.26`