Registry / other / talib
library0.6.4vcpkgunverified

TA-Lib - Technical Analysis Library

vcpkg install talib
INSTALL
IMPORT
SIG · TALIB
T
talib
othercppv0.6.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ta-lib/ta_libc.h
#include <ta-lib/ta_libc.h>

Calculates a simple moving average (SMA) over price data

#include <ta-lib/ta_libc.h> #include <iostream> #include <vector> int main() { TA_RetCode ret; TA_Initialize(); std::vector<double> close = {10.0, 11.0, 12.0, 13.0, 14.0}; std::vector<double> out(5); int outBeg, outNb; ret = TA_SMA(0, 4, close.data(), 3, &outBeg, &outNb, out.data()); if (ret == TA_SUCCESS) { std::cout << "SMA calculated" << std::endl; } TA_Shutdown(); return 0; }
Debug
Known issues
gotchaTA-Lib uses 0-based indexing for arrays but expects start index and end index parameters.
fix
Ensure you pass correct start and end indices (e.g., 0 to n-1 for n elements).
affects: *
Upgrade
Version history
0.6.4latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources

No resource links recorded.

talib — pip install talib · libregistry