INNER CODE UNIT · Python
get_ichimoku_cloud
Spoofkapoof/TradingViewMCPServer · tradingview_mcp/server.py:632
def get_ichimoku_cloud(symbol: str, timeframe: str = "1h") -> dict:
"""
Calculate Ichimoku Cloud components.
Args:
symbol: Symbol (e.g., 'EURUSD', 'AAPL', 'BTC')
timeframe: Time interval ('5m', '15m', '1h', '4h', '1d')
Returns:
Tenkan-sen, Kijun-sen, Senkou Span A/B, cloud position
"""
hist_data = get_historical_data(symbol, timeframe)
if not hist_data.get("success"):
return hist_data
ichimoku = calculate_ichimoku(hist_data["data"])