Skip to main content
Glama
lightkeeper90

ultimate-tradingview-agent

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
top_gainersA

Return top gainers for an exchange and timeframe using bollinger band analysis.

Args: exchange: Exchange name - crypto: KUCOIN, BINANCE, BYBIT; stocks: EGX, BIST, NASDAQ, NYSE, BURSA, HKEX timeframe: One of 5m, 15m, 1h, 4h, 1D, 1W, 1M limit: Number of rows to return (max 50)

top_losersB

Return top losers for an exchange and timeframe. Supports crypto (KUCOIN, BINANCE) and stocks (EGX, BIST, NASDAQ).

bollinger_scanA

Scan for assets with low Bollinger Band Width (squeeze detection). Works with crypto and stocks (EGX, BIST, etc.).

Args: exchange: Exchange - crypto: KUCOIN, BINANCE, BYBIT; stocks: EGX, BIST, NASDAQ, NYSE, BURSA, HKEX timeframe: One of 5m, 15m, 1h, 4h, 1D, 1W, 1M bbw_threshold: Maximum BBW value to filter (default 0.04) limit: Number of rows to return (max 100)

rating_filterB

Filter coins by Bollinger Band rating.

Args: exchange: Exchange name like KUCOIN, BINANCE, BYBIT, etc. timeframe: One of 5m, 15m, 1h, 4h, 1D, 1W, 1M rating: BB rating (-3 to +3): -3=Strong Sell, -2=Sell, -1=Weak Sell, 1=Weak Buy, 2=Buy, 3=Strong Buy limit: Number of rows to return (max 50)

coin_analysisA

Get detailed analysis for a specific asset (coin or stock) on specified exchange and timeframe.

Args: symbol: Symbol - crypto: "BTCUSDT", "ETHUSDT"; stocks: "COMI" (EGX), "THYAO" (BIST) exchange: Exchange - crypto: KUCOIN, BINANCE; stocks: EGX, BIST, NASDAQ, NYSE, BURSA, HKEX timeframe: Time interval (5m, 15m, 1h, 4h, 1D, 1W, 1M)

Returns: Detailed analysis with all indicators and metrics

consecutive_candles_scanA

Scan for coins with consecutive growing/shrinking candles pattern.

Args: exchange: Exchange name (BINANCE, KUCOIN, etc.) timeframe: Time interval (5m, 15m, 1h, 4h) pattern_type: "bullish" (growing candles) or "bearish" (shrinking candles) candle_count: Number of consecutive candles to check (2-5) min_growth: Minimum growth percentage for each candle limit: Maximum number of results to return

Returns: List of coins with consecutive candle patterns

advanced_candle_patternB

Advanced candle pattern analysis using multi-timeframe data.

Args: exchange: Exchange name (BINANCE, KUCOIN, etc.) base_timeframe: Base timeframe for analysis (5m, 15m, 1h, 4h) pattern_length: Number of consecutive periods to analyze (2-4) min_size_increase: Minimum percentage increase in candle size limit: Maximum number of results to return

Returns: Coins with progressive candle size increase patterns

volume_breakout_scannerB

Detect coins with volume breakout + price breakout.

Args: exchange: Exchange name like KUCOIN, BINANCE, BYBIT, etc. timeframe: One of 5m, 15m, 1h, 4h, 1D, 1W, 1M volume_multiplier: How many times the volume should be above normal level (default 2.0) price_change_min: Minimum price change percentage (default 3.0) limit: Number of rows to return (max 50)

volume_confirmation_analysisC

Detailed volume confirmation analysis for a specific coin.

Args: symbol: Coin symbol (e.g., BTCUSDT) exchange: Exchange name timeframe: Time frame for analysis

smart_volume_scannerB

Smart volume + technical analysis combination scanner.

Args: exchange: Exchange name min_volume_ratio: Minimum volume multiplier (default 2.0) min_price_change: Minimum price change percentage (default 2.0) rsi_range: "oversold" (<30), "overbought" (>70), "neutral" (30-70), "any" limit: Number of results (max 30)

multi_agent_analysisA

Run a multi-agent debate (Technical, Sentiment, Risk) for a specific symbol.

Args: symbol: Symbol - crypto: "BTCUSDT"; stocks: "COMI" (EGX), "THYAO" (BIST) exchange: Exchange - crypto: KUCOIN, BINANCE; stocks: EGX, BIST, NASDAQ, NYSE timeframe: Time interval (5m, 15m, 1h, 4h, 1D, 1W)

Returns: A structured debate between 3 AI agents culminating in a final trading decision.

egx_market_overviewA

Get a comprehensive overview of the Egyptian Exchange (EGX) market.

Shows top gainers, top losers, and most active stocks on EGX.

Args: timeframe: One of 5m, 15m, 1h, 4h, 1D, 1W, 1M (default 1D for stocks) limit: Number of stocks per category (max 20)

egx_sector_scanB

Scan EGX stocks by sector. Shows available sectors if none specified.

Args: sector: Sector name - banks, basic_resources, healthcare_and_pharma, industrial_goods_and_services, real_estate, travel_and_leisure, utilities, it_media_and_communication, food_beverages_and_tobacco, energy_and_support_services, trade_and_distributors, shipping_and_transportation, education_services, non_bank_financial_services, contracting_and_construction, textiles_and_durables, building_materials, paper_and_packaging. Leave empty to list all sectors. timeframe: One of 5m, 15m, 1h, 4h, 1D, 1W, 1M limit: Max results per sector (max 50)

egx_sector_scannerA

Sector rotation scanner for EGX — identifies hot/cold sectors and top picks.

Scans all 18 EGX sectors, ranks them by momentum, and surfaces the best stocks in the top sectors with full trade setups.

Args: timeframe: One of 5m, 15m, 1h, 4h, 1D, 1W, 1M (default 1D) top_n_sectors: Number of top sectors to show stock picks for (1-18, default 5) top_n_stocks: Number of top stocks per highlighted sector (1-10, default 3) min_stock_score: Minimum stock score for picks (0-100, default 60)

Returns: Weighted market view, sector heatmap (all 18), top picks per sector, and rotation signals showing money flow direction.

egx_index_analysisA

Analyze an EGX index showing constituent performance with full indicators.

Returns index-level statistics and per-stock breakdown.

Args: index: Index name - EGX30 (blue chips), EGX70 (mid/small cap), EGX100 (broad), SHARIAH33 (Shariah-compliant), EGX35LV (low volatility), TAMAYUZ (small/micro-cap) timeframe: One of 5m, 15m, 1h, 4h, 1D, 1W, 1M (default 1D) limit: Number of stocks to show in detail (max 100)

multi_timeframe_analysisA

Multi-timeframe alignment analysis (Weekly -> Daily -> 4H -> 1H -> 15m).

Analyzes a symbol across all key timeframes to find confluence and optimal entry timing. Best trades happen when Weekly, Daily, and lower timeframes all align in the same direction.

Args: symbol: Symbol - crypto: "BTCUSDT"; stocks: "COMI" (EGX), "THYAO" (BIST) exchange: Exchange - crypto: KUCOIN, BINANCE; stocks: EGX, BIST, NASDAQ, NYSE

Returns: Multi-timeframe breakdown with alignment score and trading recommendation.

egx_stock_screenerA

Production stock ranking engine for EGX — finds strong stocks with actionable setups.

Uses a 100-point hybrid model combining: A. Trend & Momentum (50 pts) — EMA structure, RSI, MACD, relative performance B. Confirmation (20 pts) — Volume, ADX trend strength C. Risk-Adjusted Quality (15 pts) — ATR volatility, drawdown stability D. Fundamental Overlay (15 pts) — TradingView recommendation proxy

Stocks scoring 70+ automatically get trade setups (entry, stop, targets, S/R).

Args: timeframe: One of 5m, 15m, 1h, 4h, 1D, 1W, 1M (default 1D) min_score: Minimum stock score to include (0-100, default 55) index_filter: Filter by index — EGX30, EGX70, EGX100, SHARIAH33, EGX35LV, TAMAYUZ. Leave empty for all EGX stocks. limit: Number of results (max 50)

Returns: Ranked stocks with score breakdown. Stocks >=70 include full trade plans.

egx_trade_planA

Generate a full trade plan for a specific EGX stock.

Produces: stock score, score breakdown, entry points (breakout + pullback), stop-loss, targets, risk/reward, nearest 3 supports, nearest 3 resistances, trade quality score, and actionable notes.

Args: symbol: EGX stock symbol (e.g., "COMI", "TMGH", "FWRY") timeframe: One of 5m, 15m, 1h, 4h, 1D, 1W, 1M (default 1D)

Returns: Complete trade plan with score, setup, risk controls, and S/R levels.

egx_fibonacci_retracementA

Fibonacci retracement analysis for EGX stocks — identifies key support/resistance levels at standard Fibonacci ratios (23.6%, 38.2%, 50%, 61.8%, 78.6%).

Calculates retracement and extension levels from the period swing high/low, detects trend direction, and shows where the current price sits relative to key Fibonacci zones (golden pocket, 50% retracement, etc.).

Args: symbol: EGX stock symbol (e.g., "COMI", "TMGH", "FWRY") lookback: Period for swing high/low detection — "1M", "3M", "6M", "52W", "ALL" (default 52W) timeframe: Analysis timeframe for current indicators — 5m, 15m, 1h, 4h, 1D, 1W, 1M (default 1D)

Returns: Fibonacci retracement & extension levels, price position analysis, key zones, and context.

market_sentimentA

Real-time Reddit sentiment analysis for stocks and crypto.

Args: symbol: Asset symbol ("AAPL", "BTC", "ETH", "TSLA") category: Subreddit group to search ("crypto", "stocks", "all") limit: Number of posts to analyze

financial_newsA

Real-time financial news from RSS feeds (Reuters, CoinDesk, etc.)

Args: symbol: Optional symbol filter ("AAPL", "BTC"). None = all news. category: Feed category ("crypto", "stocks", "all") limit: Max number of news items

combined_analysisB

POWER TOOL: TradingView technical analysis + Reddit sentiment + Financial news. Confluence analysis of all signals for a complete market picture.

Args: symbol: Asset symbol ("AAPL", "BTCUSDT", "THYAO") exchange: Exchange (NASDAQ, NYSE, BINANCE, KUCOIN, BIST, EGX) timeframe: Analysis timeframe (5m, 15m, 1h, 4h, 1D, 1W)

backtest_strategyA

Backtest a trading strategy on historical data with institutional-grade metrics.

Args: symbol: Yahoo Finance symbol — stocks (AAPL, TSLA, NVDA), crypto (BTC-USD, ETH-USD), ETFs (SPY, QQQ), indices (^GSPC, ^IXIC), Turkish (THYAO.IS) strategy: Trading strategy to test: 'rsi' — Buy oversold (RSI<30), Sell overbought (RSI>70) 'bollinger' — Buy at lower Bollinger Band, Sell at middle band 'macd' — Buy on MACD golden cross, Sell on death cross 'ema_cross' — Buy EMA20>EMA50 crossover, Sell on reversal 'supertrend' — Buy on bullish Supertrend flip 'donchian' — Buy Donchian Channel breakout (Turtle Trader style) period: Historical data period: '1mo', '3mo', '6mo', '1y', '2y' initial_capital: Starting capital in USD (default: $10,000) commission_pct: Per-trade commission % (default: 0.1%) slippage_pct: Per-trade slippage % (default: 0.05%) interval: Timeframe: '1d' (daily, default) or '1h' (hourly) include_trade_log: Include full per-trade log with entry/exit/P&L detail (default: False) include_equity_curve: Include equity curve data points for charting (default: False)

Returns: Institutional-grade backtest report: win rate, total return, Sharpe ratio, Calmar ratio, max drawdown, profit factor, expectancy, best/worst trade, vs buy-and-hold benchmark. Optionally includes full trade log and equity curve.

compare_strategiesA

Run all 6 strategies (RSI, Bollinger, MACD, EMA Cross, Supertrend, Donchian) on the same symbol and return a ranked performance leaderboard.

Args: symbol: Yahoo Finance symbol (AAPL, BTC-USD, SPY…) period: Historical data period: '1mo', '3mo', '6mo', '1y', '2y' initial_capital: Starting capital in USD (default: $10,000) interval: Timeframe: '1d' (daily, default) or '1h' (hourly)

Returns: Ranked leaderboard of all 6 strategies vs buy-and-hold benchmark.

walk_forward_backtest_strategyA

Walk-forward backtest to detect overfitting — validates strategy on unseen data.

Splits historical data into n_splits folds. Each fold:

  • Train (70% by default): strategy runs in-sample

  • Test (30% by default): strategy runs on unseen forward data

Robustness score (out-of-sample / in-sample performance ratio):

= 0.8 → ROBUST — no overfitting, safe to consider for live trading = 0.5 → MODERATE — some degradation out-of-sample, use with caution = 0.2 → WEAK — significant degradation, likely curve-fitted < 0.2 → OVERFITTED — fails on unseen data, do not trade live

Args: symbol: Yahoo Finance symbol (AAPL, BTC-USD, SPY…) strategy: rsi | bollinger | macd | ema_cross | supertrend | donchian period: Historical data period: '1mo', '3mo', '6mo', '1y', '2y' (recommend '2y' for meaningful walk-forward splits) initial_capital: Starting capital per fold in USD (default: $10,000) commission_pct: Per-trade commission % (default: 0.1%) slippage_pct: Per-trade slippage % (default: 0.05%) n_splits: Number of walk-forward folds (default: 3, max: 10) train_ratio: Fraction of each fold used for training (default: 0.7) interval: Timeframe: '1d' (daily, default) or '1h' (hourly)

Returns: Per-fold train/test metrics, aggregate robustness score, verdict, and combined out-of-sample performance.

yahoo_priceA

Real-time price quote from Yahoo Finance for any stock, crypto, ETF or index.

Args: symbol: Yahoo Finance symbol. Examples: Stocks: AAPL, TSLA, MSFT, NVDA, GOOGL Crypto: BTC-USD, ETH-USD, SOL-USD ETFs: SPY, QQQ, GLD Indices: ^GSPC (S&P500), ^DJI (Dow Jones), ^IXIC (NASDAQ) FX: EURUSD=X, GBPUSD=X Turkish: THYAO.IS, SASA.IS

market_snapshotA

Global market overview: major indices (S&P500, NASDAQ, Dow, VIX), top crypto (BTC, ETH, SOL, BNB), FX rates, and key ETFs. Powered by Yahoo Finance.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
exchanges_listList available exchanges from coinlist directory.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lightkeeper90/ultimate-tradingview-agent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server