Логотип Claude Tradingview MCP Trading

Claude Tradingview MCP Trading

Организация
jackson-video-resources

Connect Claude Code to TradingView and execute trades automatically via BitGet

Издательjackson-video-resources
Репозиторийclaude-tradingview-mcp-trading
ЯзыкJavaScript
Форки
299
Звёзды
603
Доступные инструменты
0
Тип транспортаstdio
Ссылки
  • Подключайте инструменты к рабочим процессам с ИИ

    Claude Tradingview MCP Trading предоставляет возможности MCP, доступные совместимым ИИ-клиентам и агентам.

  • Доступные инструменты: 0

    Ниже представлены доступные для вызова действия с названиями и описаниями, если сервер их предоставляет.

  • Готовая конфигурация для копирования

    Используйте примеры конфигурации, чтобы настроить этот сервер в MCP-клиенте на ваш выбор.

  • Показатели интереса к открытому проекту

    В указанном репозитории: звёзды — 603, форки — 299.

Claude + TradingView MCP — Automated Trading

New to this? Watch the previous video first — it sets up the TradingView MCP connection this builds on.

How To Connect Claude to TradingView (Insanely Cool)

Claude Code + TradingView Now Actually Executes Real Trades


What This Does

Five things you get from this setup:

  1. Claude connected to your exchange — reads your TradingView chart and executes trades on BitGet automatically
  2. A safety check — every condition in your strategy must pass before a single trade goes through
  3. 24/7 cloud execution — deploy to a Hostinger VPS and it runs on a schedule, even when your laptop is closed
  4. Automatic tax accounting — every trade logged to trades.csv with date, price, fees, and net amount, ready for your accountant
  5. Free — no email, no course, no upsell. Everything is in this repo.

The One-Shot Prompt

This is the thing you paste. Open Claude Code in this directory, paste the entire contents of prompts/02-one-shot-trade.md, and Claude will do the rest.

Here's what it does when you run it:

StepWhat Claude does
1Reads your rules.json strategy
2Pulls live price + indicator data from TradingView
3Calculates MACD from raw candle data
4Evaluates market bias (bullish / bearish / neutral)
4bChecks trade limits — daily cap and max trade size
5Runs the safety check — every entry condition checked
6Executes the trade via BitGet if all conditions pass
7Logs the trade to trades.csv — date, price, fees, net amount (tax-ready)
8Saves full decision log to safety-check-log.json

If anything fails the safety check, it stops and tells you exactly which condition failed and the actual values. No trade goes through unless everything lines up.


Getting Started

Step 1 — Paste the one-shot prompt into Claude Code

Copy the entire contents of prompts/02-one-shot-trade.md and paste it into your Claude Code terminal.

That's it. Claude acts as your onboarding agent — it clones the repo, walks you through connecting BitGet, sets your trading preferences, connects TradingView, optionally builds a strategy from a YouTube channel, deploys it to a Hostinger VPS, and runs the bot for the first time. Every step is interactive. It pauses when it needs something from you and handles everything else automatically.


What's Happening Under the Hood

For anyone who wants to understand the steps manually, or troubleshoot a specific part:

Prerequisites

  • TradingView MCP must already be set up — built in the first video
  • Claude Code installed and running
  • A BitGet account — sign up here for a $1,000 bonus on your first deposit
  • Node.js 18+ — check with node --version

Clone the repo

Mac / Linux:

bash
git clone https://github.com/jackson-video-resources/claude-tradingview-mcp-trading
cd claude-tradingview-mcp-trading

Windows:

powershell
git clone https://github.com/jackson-video-resources/claude-tradingview-mcp-trading
cd claude-tradingview-mcp-trading

Add your BitGet API credentials

Mac / Linux:

bash
cp .env.example .env

Windows:

powershell
Copy-Item .env.example .env

Open .env and fill in:

BITGET_API_KEY=your_api_key_here
BITGET_SECRET_KEY=your_secret_key_here
BITGET_PASSPHRASE=your_passphrase_here
PORTFOLIO_VALUE_USD=1000
MAX_TRADE_SIZE_USD=100
MAX_TRADES_PER_DAY=3

Getting your API key:

Step-by-step guides for all supported exchanges:

Two rules that apply to every exchange — withdrawals OFF, IP whitelist ON.


Launch TradingView and connect the MCP

Mac:

bash
tv_launch
tv_health_check

Windows: See docs/setup-windows.md

Linux: See docs/setup-linux.md

Verify with tv_health_check — should return cdp_connected: true.


Run the bot manually

bash
node bot.js

Deploy to a Hostinger VPS (Run in the Cloud 24/7)

The local setup runs when your laptop is open. A Hostinger VPS lets the bot check for setups around the clock — even while you sleep.

Note: Cloud mode pulls candle data directly from Binance's free market API instead of TradingView. No TradingView Desktop needed in the cloud. The strategy logic and safety check are identical.

1. Get a VPS

Grab a Hostinger VPS — the cheapest KVM plan is plenty, from ~$5/mo: https://hostinger.com/lewisjackson10

Once it's provisioned, Hostinger gives you an IP and root password. SSH in:

bash
ssh root@YOUR_VPS_IP

2. Deploy

On the VPS:

bash
apt update && apt install -y nodejs npm git
git clone <your-repo-url> bot && cd bot
npm install

3. Set your environment variables

Create a .env file on the VPS with everything from .env.example:

VariableExample
BITGET_API_KEYyour key
BITGET_SECRET_KEYyour secret
BITGET_PASSPHRASEyour passphrase
PORTFOLIO_VALUE_USD1000
MAX_TRADE_SIZE_USD100
MAX_TRADES_PER_DAY3
PAPER_TRADINGtrue (set to false when ready)
SYMBOLBTCUSDT
TIMEFRAME4H

4. Set a cron schedule

The bot runs one check and exits, so schedule it with the VPS's built-in cron. Run crontab -e and add one line matching your chart timeframe (all run from the repo dir and log to bot.log):

TimeframeCrontab lineWhat it means
4H chart0 */4 * * * cd /root/bot && /usr/bin/node bot.js >> bot.log 2>&1Every 4 hours
1D chart0 9 * * * cd /root/bot && /usr/bin/node bot.js >> bot.log 2>&1Once a day at 9am UTC
1H chart0 * * * * cd /root/bot && /usr/bin/node bot.js >> bot.log 2>&1Every hour

5. Start in paper trading mode

PAPER_TRADING=true logs every decision but never places real orders. Watch a few days of paper trades, confirm the logic matches what you expect, then flip it to false.


Build Your Own Strategy (Optional)

The example rules.json uses the van de Poppe + Tone Vays BTC strategy. To build one from any trader's public videos:

  1. Go to Apify and search the actor store for YouTube Transcript Scraper — takes about 30 seconds per channel
  2. Paste the output into prompts/01-extract-strategy.md
  3. Run that prompt in Claude Code — it generates a rules.json tailored to that trader's methodology

Files

FileWhat it does
rules.jsonYour strategy — indicators, entry rules, risk rules
.envYour BitGet credentials (gitignored — never commits)
prompts/01-extract-strategy.mdBuild rules.json from trader transcripts
prompts/02-one-shot-trade.mdThe one-shot prompt — paste this to trade
safety-check-log.jsonAuto-generated log of every trade decision
trades.csvTax-ready trade record — auto-written on every execution
docs/setup-windows.mdWindows-specific MCP setup
docs/setup-linux.mdLinux-specific MCP setup

Tax Accounting

Every trade the bot places is automatically written to trades.csv with the columns your accountant needs:

ColumnDescription
DateISO date of the trade
TimeUTC time
ExchangeBitGet
Symbole.g. BTCUSDT
SideBuy / Sell
QuantityUnits traded
PricePrice per unit at execution
Total USDGross trade value
Fee (est.)Estimated exchange fee
Net AmountTotal USD minus fee
Order IDExchange reference
ModePaper / Live

At tax time: open the file, hand it to your accountant, or import it directly into your accounting software. Nothing to reconstruct.

For a quick summary of your trading activity, run:

bash
node bot.js --tax-summary

This prints total trades, volume, and fees paid.


Safety

The safety check conditions are not fixed — they come directly from your rules.json. If you build a strategy from a YouTube trader's transcripts using the Apify prompt, your safety check will reflect that trader's entry logic. If you use the example strategy, it reflects those conditions. They're yours, not a generic filter.

Every condition in your entry_rules must pass before a trade goes through. One fails — nothing happens. The bot tells you exactly which condition failed and the actual value it saw.

Additional guardrails that apply regardless of strategy:

  • Maximum trade size capped at MAX_TRADE_SIZE_USD in .env
  • Maximum trades per day capped at MAX_TRADES_PER_DAY in .env
  • Position sizing calculated from your portfolio value — max 1% risk per trade
  • Every decision logged to safety-check-log.json with exact indicator values
  • Every executed trade recorded in trades.csv for accounting

This is not financial advice. Build your strategy properly. Run the backtest. Paper trade before going live. Never put in more than you can afford to lose.


Resources

Используйте Claude Tradingview MCP Trading MCP с разными моделями ИИ

TypingMind подключает инструменты MCP на уровне рабочего пространства, поэтому после подключения Claude Tradingview MCP Trading вы можете использовать их с разными моделями ИИ в TypingMind, не настраивая подключение отдельно для каждой модели. Эта интеграция MCP работает локально на вашем устройстве через коннектор MCP TypingMind.

Руководство по настройке локального коннектора

Выберите этот способ, если серверу MCP нужен доступ к локальным файлам, приложениям или закрытым ресурсам на вашем компьютере.

1

Откройте настройки MCP

В TypingMind откройте «Настройки», затем «Расширенные настройки», перейдите в раздел «Протокол контекста модели» и выберите «Настроить коннектор».

  1. Откройте TypingMind в браузере.
  2. Нажмите значок настроек.
  3. Перейдите в «Расширенные настройки».
  4. Откройте раздел «Протокол контекста модели».
  5. Нажмите «Настроить коннектор» и выберите «Это устройство».
Экран настройки коннектора MCP в TypingMind с выбранным вариантом «Это устройство»
2

Выполните команду запуска коннектора

Выберите «Это устройство», скопируйте команду из TypingMind и выполните её в терминале. Не останавливайте процесс, пока используете MCP.

  1. Скопируйте команду настройки, показанную в TypingMind.
  2. Откройте «Терминал» в macOS или Windows Terminal в Windows.
  3. Вставьте и выполните команду.
  4. Если в терминале появится запрос на подтверждение, подтвердите установку пакета.
  5. Не закрывайте окно терминала и не останавливайте процесс, пока используете инструменты MCP.
3

Добавьте сервер Claude Tradingview MCP Trading

Когда статус коннектора сменится на «Готов», нажмите «Изменить серверы» и вставьте конфигурацию сервера MCP.

  1. Дождитесь, пока статус коннектора сменится на «Готов».
  2. Нажмите «Изменить серверы».
  3. Вставьте конфигурацию сервера MCP Claude Tradingview MCP Trading.
  4. Сохраните список серверов.
  5. Обновите статус, если хотите убедиться, что коннектор по-прежнему готов к работе.
Настройки MCP в TypingMind с активным сервером и кнопкой «Изменить серверы»
{
  "mcpServers": {
    "claude-tradingview-mcp-trading": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Используйте подключение с разными моделями

Сохраните список серверов, откройте раздел «Плагины», включите инструменты MCP для Claude Tradingview MCP Trading, затем выберите любую поддерживаемую модель ИИ в TypingMind и используйте инструменты в чате или назначьте их ИИ-агенту.

  1. Откройте страницу «Плагины» в TypingMind.
  2. Включите инструменты MCP для Claude Tradingview MCP Trading.
  3. Начните чат и выберите модель ИИ, которую хотите использовать.
  4. Используйте инструменты MCP в чате или назначьте их ИИ-агенту.
  5. При необходимости переключайтесь на другую модель ИИ без повторного подключения MCP.
Чат TypingMind с включёнными инструментами MCP и выбранной ИИ-моделью
Можете использовать Claude Tradingview MCP Trading, чтобы помочь мне с этой задачей?
Claude Tradingview MCP Trading
Конечно. Я всё прочитал.
Вот что я нашёл с помощью Claude Tradingview MCP Trading.

Часто задаваемые вопросы

Для чего используется сервер MCP Claude Tradingview MCP Trading?

Claude Tradingview MCP Trading — это сервер MCP, который позволяет совместимым ИИ-клиентам подключаться к внешним инструментам и получать контекст. В TypingMind достаточно один раз добавить этот сервер MCP, чтобы его инструменты стали доступны в вашем рабочем пространстве с ИИ.

Можно ли использовать сервер MCP Claude Tradingview MCP Trading с несколькими ИИ-моделями в TypingMind?

Да. TypingMind подключает инструменты MCP на уровне рабочего пространства, поэтому вы можете использовать Claude Tradingview MCP Trading с разными ИИ-моделями, например Claude, ChatGPT, Gemini или другими моделями, настроенными в TypingMind, без отдельной настройки сервера MCP для каждой модели.

Зачем использовать сервер MCP Claude Tradingview MCP Trading с TypingMind?

TypingMind — один из лучших интерфейсов для чата с LLM: он объединяет разные ИИ-модели, промпты, плагины, ИИ-агентов, ключи API и инструменты MCP в одном рабочем пространстве. Подключив Claude Tradingview MCP Trading, вы сможете использовать его инструменты MCP с моделями, которые предпочитаете, и поддерживать порядок в чатах TypingMind.

Как подключить сервер MCP Claude Tradingview MCP Trading к TypingMind?

Claude Tradingview MCP Trading работает через локальный коннектор MCP TypingMind. Этот вариант лучше всего подходит, когда серверу MCP нужен доступ к локальным файлам, настольным приложениям, инструментам командной строки или закрытым ресурсам на вашем компьютере.

Какие инструменты предоставляет сервер MCP Claude Tradingview MCP Trading в TypingMind?

Claude Tradingview MCP Trading предоставляет возможности MCP, которые можно включить на странице «Плагины» в TypingMind и использовать в чате или назначить ИИ-агентам.

Нужно ли передавать TypingMind свои ключи API для использования сервера MCP Claude Tradingview MCP Trading?

Нет. TypingMind ориентирован прежде всего на локальную работу и позволяет вам контролировать выбор провайдеров моделей, ключи API, промпты и конфигурацию MCP. Если Claude Tradingview MCP Trading требует аутентификации, при создании подключения добавьте необходимые заголовки, настройки OAuth или локальную конфигурацию для этого сервера MCP.

Похожие MCP-серверы

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇