Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Y-Research-SBU/QuantAgent/llms.txt
Use this file to discover all available pages before exploring further.
TechnicalTools is a class in graph_util.py that exposes all indicator computations and chart generation functions as LangChain @tool-decorated static methods. The agents call these tools directly by name during their execution loop.
kline_data format
All methods accept a kline_data argument. This must be a dictionary where each key maps to a list of numeric (or datetime string) values with the same length:
Methods that only use closing prices (
compute_rsi, compute_macd, compute_roc) require at minimum a Close key. Methods that compute range-based indicators (compute_stoch, compute_willr, generate_trend_image) also require High and Low.Indicator tools
compute_rsi
OHLCV dictionary. Only the
Close key is used.Lookback period for the RSI calculation.
Last 28 RSI values, rounded to 2 decimal places.
NaN values are filled with 0.compute_macd
OHLCV dictionary. Only the
Close key is used.Fast EMA period.
Slow EMA period.
Signal line EMA period.
Full MACD line series, rounded to 2 decimal places.
Last 28 signal line values, rounded to 2 decimal places.
Last 28 histogram values (MACD minus signal), rounded to 2 decimal places.
compute_stoch
fastk_period=14, slowk_period=3, slowd_period=3.
OHLCV dictionary. Uses
High, Low, and Close keys.Last 28 slow %K values, rounded to 2 decimal places.
Last 28 slow %D values, rounded to 2 decimal places.
compute_roc
OHLCV dictionary. Only the
Close key is used.Number of periods over which to calculate ROC.
Last 28 ROC values, rounded to 2 decimal places.
compute_willr
OHLCV dictionary. Uses
High, Low, and Close keys.Lookback period for the Williams %R calculation.
Last 28 Williams %R values, rounded to 2 decimal places. Values range from −100 to 0.
Chart generation tools
generate_kline_image
kline_data. Saves the chart locally as kline_chart.png and returns it as a base64-encoded PNG string.
OHLCV dictionary with keys
Datetime, Open, High, Low, and Close.Base64-encoded PNG string of the candlestick chart. Pass this directly as a
data:image/png;base64,... URL to a vision LLM.Fixed description string:
"Candlestick chart saved locally and returned as base64 string.".generate_trend_image
trend_graph.png and returns it as a base64-encoded PNG.
OHLCV dictionary with keys
Datetime, Open, High, Low, and Close.Base64-encoded PNG string of the trendline-annotated candlestick chart.
Fixed description string:
"Trend-enhanced candlestick chart with support/resistance lines.".