INNER CODE UNIT · Python

get_support_resistance

Spoofkapoof/TradingViewMCPServer · tradingview_mcp/server.py:923

def get_support_resistance(symbol: str, timeframe: str = "1h") -> dict:
    """
    Detect support and resistance levels automatically.

    Args:
        symbol: Symbol (e.g., 'EURUSD', 'AAPL', 'BTC')
        timeframe: Time interval ('5m', '15m', '1h', '4h', '1d')

    Returns:
        Top 3 support and resistance levels
    """
    hist_data = get_historical_data(symbol, timeframe)

    if not hist_data.get("success"):
        return hist_data

    sr = detect_support_resistance(hist_data["data"])

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…