VALYNOXSTRATEGY RESEARCH TECHNOLOGY
AlphaPrimeAlphaPrime
ACADEMY / Using AlphaPrime

TradingView MCP in Claude: one sentence builds an AlphaPrime strategy

TradingView's MCP server gives Claude a get_ohlcv tool that returns recent bars of any symbol you chart. With the AlphaPrime connector added beside it, one sentence makes Claude fetch the bars, hand them to AlphaPrime as a market of their own and plan a generation that starts when you press Confirm. The same steps work for futures and forex.

By · Published · updated · Editorial policy

Contents
  1. What is TradingView MCP, and how does one sentence turn its bars into a strategy?
  2. What does the TradingView MCP server give Claude?
  3. How do I connect TradingView and AlphaPrime to Claude?
  4. What do I say to Claude?
  5. What happens after you say it?
  6. Can AlphaPrime connect to TradingView by itself?
  7. What should I check before pressing Confirm?
  8. Frequently asked questions

What is TradingView MCP, and how does one sentence turn its bars into a strategy?

TradingView MCP is TradingView's own MCP server: Claude signs in with your TradingView account and asks it for recent bars of any symbol you chart. Add the AlphaPrime (Valynox) connector beside it, and one sentence in Claude fetches the bars, imports them and sets up a generation on your computer.

An MCP server is a small service that gives an AI assistant a set of tools; Claude calls a tool, reads the answer and carries on with the conversation. TradingView's server is at https://mcp.tradingview.com/mcp and signs you in through your TradingView account, so there are no API keys to create or paste. The AlphaPrime connector at https://mcp.alphaprime.trading/mcp does the same for the AlphaPrime window on your computer, and your own Claude subscription is all the AI side needs.

This page goes through the setup, the sentence to say, what passes between TradingView and AlphaPrime after you say it, and what to read on the confirmation card before you press it.

What does the TradingView MCP server give Claude?

One tool matters for this flow: get_ohlcv, which returns the most recent bars of a symbol at an interval you choose. Each bar comes back as time (the bar's open, in UTC), open, high, low, close and volume, which is what AlphaPrime needs to build a market. Claude fills the tool in from your sentence; the two parts worth knowing are the symbol and the interval.

get_ohlcv parameterWhat to giveFuturesForex
symbolEXCHANGE:TICKER, as TradingView writes itCME_MINI:NQ1!OANDA:EURUSD
intervalthe timeframe you intend to trade: 1m, 5m, 15m, 30m, 1h, 4h or 1D1h4h

How do I connect TradingView and AlphaPrime to Claude?

Two custom connectors in Claude and one switch in AlphaPrime. The whole setup is done once.

  1. Turn on Phone control in AlphaPrime. Install AlphaPrime on the computer that will run the generations, open it, then go to Settings ▸ Connect Claude and switch on Phone control. Keep AlphaPrime open while you work with Claude.
  2. Add TradingView to Claude. In Claude, open Settings ▸ Connectors ▸ Add custom connector, paste https://mcp.tradingview.com/mcp and sign in with your TradingView account.
  3. Add AlphaPrime to Claude. Same place, paste https://mcp.alphaprime.trading/mcp. At the AlphaPrime sign-in, choose the computer you set up in step 1 and press Allow.
  4. Start a new chat and say the sentence. Both connectors are now there for Claude to use; the next section has the sentence for each market.

The AlphaPrime side of this, including what to look at when Claude reports AlphaPrime as disconnected, is covered step by step on the phone control help page.

What do I say to Claude?

One sentence that names the market, the interval and what to do with the bars. For NQ it reads: "Get NQ 1-hour bars from TradingView, put them into AlphaPrime and start generating."

MarketWhat you saySymbol Claude fetches
FuturesGet NQ 1-hour bars from TradingView, put them into AlphaPrime and start generating.CME_MINI:NQ1!, interval 1h
ForexGet EURUSD 4-hour bars from TradingView, put them into AlphaPrime and start generating.OANDA:EURUSD, interval 4h

Name the exchange yourself (CME_MINI:NQ1!, OANDA:EURUSD) when you want a particular feed; otherwise Claude picks the usual one and tells you which. A different interval goes in the same sentence and Claude passes it through. The market is used at the interval it was fetched in, so fetch at the timeframe you intend to trade: for a 15m strategy, ask for 15m bars.

What happens after you say it?

Claude does the fetching, the hand-over and the planning. You press Confirm.

  1. Claude asks TradingView for the bars. It calls get_ohlcv with the symbol and the interval, and receives the bars.
  2. Claude hands them to AlphaPrime as they came. Claude sends the bars to the AlphaPrime window on your computer; you see the progress in the chat.
  3. AlphaPrime saves them as a market of their own on your computer. The market is stored under the instrument's own code: NQ1!, for example, becomes NQ on CME with the CME New York trading session attached. Fetch the same symbol again next week and the same market is updated, with the new bars added on.
  4. The contract specification fills itself in where it can. CME-group futures get their contract specification automatically; forex pairs take theirs from the prices. For another symbol, open AlphaPrime's Market Data page once and fill it in. The futures contract calculator shows what point value and tick mean for a trade, and the futures market hours page shows the session a market trades in.
  5. Claude plans the generation. The market, the timeframe (the interval you fetched), a date range inside the imported bars and a stop condition. AlphaPrime shows a confirmation card with all four.
  6. You press Confirm. In the AlphaPrime window, or on the confirmation link Claude gives you. The generation starts the moment you press it.

Generation and every backtest in it run on your computer, as a normal strategy generation with the imported market in place of one from your data feed. The bars travel through the chat into the AlphaPrime window and are saved on that computer.

Can AlphaPrime connect to TradingView by itself?

With the next AlphaPrime version, yes: export the chart in TradingView, drag the file onto the AlphaPrime window, and AlphaPrime connects to TradingView to keep that market up to date by itself.

  1. Export the chart in TradingView. On the chart of the symbol and timeframe, scroll back until the bars you want are loaded, open the chart layout menu, choose Export chart data… and press Export. Keep the file name TradingView gives it, CME_MINI_NQ1!, 60.csv for the NQ 1-hour chart.
  2. Drag the file onto the AlphaPrime window. A small window titled with the file name opens and the import runs by itself: symbol, timeframe, exchange, time zone and contract specification come from the file name and AlphaPrime's own instrument table, and the window ends with the bars imported and their date range.
  3. Connect TradingView the first time. The window shows Connect TradingView: press it and sign in once in the browser. AlphaPrime joins the chart's history to TradingView's latest bars and keeps the market up to date by itself while it is open.

The Claude flow on this page stays the same: one sentence still fetches, imports and plans. The next version adds a second way in for days you are at the AlphaPrime window anyway, and the export and drag-in steps have a page of their own with screenshots.

What should I check before pressing Confirm?

The four lines on the card: market, timeframe, dates and stop condition.

  • Market and session. NQ on CME should carry the CME New York session; forex trades around the clock on weekdays. The session decides which bars count as a day, so check it on the Market Data page before the run.
  • Timeframe. It matches the interval you fetched. Ask Claude for a new fetch when you want a different one.
  • Dates. Both inside the imported range. Claude proposes them from the bars it sent; the card shows them.
  • Stop condition. How long or how far the generation runs before it stops and shows results.

A strategy generated from imported bars is checked like any other, on bars it was never fitted to, which is the job of strategy validation. If your ideas so far have lived in TradingView's own tester, the page on TradingView Strategy Tester backtests and what to check first explains which parts of that report carry over, and a strategy you keep can go back as Pine Script through the export to TradingView steps. The wider question of what AI does well in futures trading and where it still needs you applies here too: Claude moves the bars and fills in the card; the judgement about what to trade is yours.

After the first run, the next sentence is the interesting one: the same market at 4h, or EURUSD or ES beside it, fetched and queued while the first generation is still on the screen.

Frequently asked questions

Which accounts do I sign in with?

Three: your TradingView account for the TradingView connector, your AlphaPrime member account for the AlphaPrime connector, and your own Claude subscription on claude.ai or in the Claude app. Each connector signs you in through the account itself, with no API keys to copy anywhere.

How do I get a 15-minute strategy instead of a 1-hour one?

Say 15-minute bars in the sentence. The market is used at the interval it was fetched in, so a 15m fetch gives a 15m generation; the generation timeframes in this flow are 1m, 5m, 15m, 30m, 1h, 4h and 1D.

What happens when I fetch the same symbol again?

AlphaPrime updates the market it already has, adding the bars that are new since the last fetch. The same sentence next week brings the same market up to date; there is one market per symbol and interval.

Where do the bars end up?

In the AlphaPrime window on your computer, saved as a market of their own under the instrument's code, NQ on CME for NQ1!. Generation and backtests run on that computer; the bars pass through the chat on their way there.

How do I fetch from TradingView inside AlphaPrime?

With the next AlphaPrime version: export the chart in TradingView and drag the file onto the AlphaPrime window. The import runs by itself; the first time, press Connect TradingView and sign in once. The market then keeps itself up to date, as does a market Claude fetched.