Logo: Claude Tradingview MCP Trading

Claude Tradingview MCP Trading

Organisatioun
jackson-video-resources

Connect Claude Code to TradingView and execute trades automatically via BitGet

Editeurjackson-video-resources
Repositoryclaude-tradingview-mcp-trading
SproochJavaScript
Forks
299
Stären
603
Disponibel Tools
0
Transporttypstdio
Linken
  • Tools mat KI-Workflows verbannen

    Claude Tradingview MCP Trading bitt MCP-Funktiounen un, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • Disponibel Tools: 0

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an deem MCP-Client ze konfiguréieren, deen Dir am léifste benotzt.

  • Interessi vun der Communautéit um Open-Source-Projet

    Zuele vum verlinkte Repository – Stären: 603, Forks: 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 mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Claude Tradingview MCP Trading verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung, fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector: D'Optioun „Dësen Apparat“ ass ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Setzt de kopéierte Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Claude Tradingview MCP Trading als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a setzt d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Setzt d'MCP-Serverkonfiguratioun fir Claude Tradingview MCP Trading an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert d'Säit, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "claude-tradingview-mcp-trading": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vun der Integratioun Claude Tradingview MCP Trading. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vun der Integratioun Claude Tradingview MCP Trading.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierten MCP-Tools an engem ausgewielte KI-Modell
Kënnt Dir mir mat Claude Tradingview MCP Trading bei dëser Aufgab hëllefen?
Claude Tradingview MCP Trading
Jo. Ech hunn et gelies.
Dat hunn ech mat Claude Tradingview MCP Trading fonnt.

Heefeg gestallte Froen

Fir wat gëtt den MCP-Server Claude Tradingview MCP Trading benotzt?

Claude Tradingview MCP Trading ass en MCP-Server, deen et kompatibele KI-Clienten erlaabt, op extern Tools a Kontextinformatioune zouzegräifen. An TypingMind kënnt Dir dësen MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Claude Tradingview MCP Trading MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Claude Tradingview MCP Trading mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni den MCP-Server fir all Modell separat anzeriichten.

Firwat Claude Tradingview MCP Trading MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Claude Tradingview MCP Trading verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Ären Aarbechtsoflaf beim Chatten an TypingMind organiséieren.

Wéi verbannen ech Claude Tradingview MCP Trading MCP mat TypingMind?

Claude Tradingview MCP Trading leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann den MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Claude Tradingview MCP Trading MCP an TypingMind zur Verfügung?

Claude Tradingview MCP Trading stellt MCP-Funktioune zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agente zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Claude Tradingview MCP Trading MCP ze benotzen?

Nee. TypingMind ass nom Local-first-Prinzip opgebaut a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Claude Tradingview MCP Trading eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir deen MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇