Skip to main content

format_technical_summary

Function format_technical_summary 

Source
pub fn format_technical_summary(
    symbol: &str,
    indicators: &TechnicalIndicators,
    current_price: Option<f64>,
) -> String
Expand description

Format a concise technical analysis summary suitable for injection into a Claude prompt.

The symbol parameter is used in the header (e.g. “BTC-PERP”). An optional current_price can be passed to add Bollinger Band position context.

§Example output

Technical Analysis (BTC-PERP):
  Trend: SMA20=67,450 EMA12=67,320 MACD=+120 (bullish)
  Momentum: RSI=62 (neutral) Stoch=78 (overbought zone)
  Volatility: BB[66,800 - 67,500 - 68,200] ATR=350