A full-time trader shows how Claude Code and TradingView automate pre-market planning, but experience still drives the edge.
It only runs after 10 a.m. market time. The price must be above yesterday's daily high, yesterday's close must be above the 200 SMA, the price must be above today's pre-market high, and above today's high of day. If all five criteria pass, it is a hit and the scanner triggers an entry.
For the trend join long setup it scans for stocks gapping up more than 5% from the previous day, priced above $3 per share, with over 50k pre-market volume. Tickers and percentages come from Yahoo Finance and the news catalyst briefing from Benzinga, showing ticker, price, gap percentage and one catalyst sentence.
Install Claude Code on your desktop and the TradingView desktop version, since the web version will not work. The connection must be done on macOS; he first tried it on his PC and it failed because of a different desktop file. You then copy a prompt that installs the MCP from a GitHub repository.
Claude or Codex needs at least the $20 per month paid plan; he personally uses the $100 a month Max plan, which is enough for everything he does. TradingView needs a paid subscription, at least the Essential plan, the cheapest one, which he thinks is about 13 to 15 a month.
Claude built a Pine Script strategy on TradingView and backtested MU on the five-minute chart. Total P&L over 14 trades was $1,200, nine of 14 were profitable, and the profit factor was 2.48, with $1,000 initial capital. He cautions it is only one ticker and a very limited backtest.
Because Pine Script limits how many stocks you can backtest, he had Claude switch to Python. It ran much faster, testing 32 watch list tickers over the last 30 days with a $10,000 account, giving a 54% win rate. A couple of tickers, Meta and Robinhood, produced no signal.
The pre-market scanner starts at 8:30 a.m. market time and runs every 30 minutes until 2 p.m. The strategy scanner only starts after 10 a.m., runs five minutes after the pre-market scanner using the tickers it produced, and was asked to continue until 3 p.m. That makes 12 pre-market runs a day.
The TradingView and Claude connection cannot scan the entire market at once; it only scans a basket of stocks you select. His workaround is a preliminary pre-market scan, scanner A, that finds the top gappers, then feeding those results into the strategy scanner, scanner B. He says this is faster and simpler.
Ask Claude to send both scanners' results to Telegram in an exact format, and it walks you through the steps. In Telegram, search BotFather, create a new bot, copy the access token and give it to Claude. Then start the bot, after which you receive pre-market gapper and trend join long messages.
TradingView Remix, in public beta, needs its Chrome extension and a paid subscription. It could produce the pre-market gap list, but it cannot send the watch list to Telegram or be scheduled; you must run the scan on demand every morning. It can backtest more than the Claude MCP connection, though his backtest attempt did not work.
“Remember AI is mostly just slop without specialized knowledge behind it.”
“The thing is AI won't magically make you profitable.”
“One is that TradingView cannot scan the entire market for you all at once.”
“so total P&L over 14 trades is $1,200 and there's a max equity draw down here as well”
“you cannot schedule it you have to run it on demand every single morning”
“pine script simply lets you back test it doesn't allow you to turn that pine script or indicator into an automated trading system”
“Pre-Market Trading Pipeline.” https://www.youtube.com/watch?v=IqvnryFzZD4. Transcript summary by WhipScribe, https://whipscribe.com/transcript-pages/pre-market-trading-pipeline.html.