Логотип 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

Використовуйте MCP Claude Tradingview MCP Trading з різними моделями ШІ

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 — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі 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 і використовувати в чаті або призначати агентам ШІ.

Чи потрібно ділитися своїми ключами API з TypingMind, щоб використовувати сервер MCP Claude Tradingview MCP Trading?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає вам змогу самостійно обирати постачальників моделей і керувати ключами API, промптами та конфігурацією MCP. Якщо Claude Tradingview MCP Trading потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇