Thumbnail for How To Connect Claude to Trading View (Insanely Cool) by Lewis Jackson

How To Connect Claude to Trading View (Insanely Cool)

Lewis Jackson

25m 2s4,094 words~21 min read
Auto-Generated

[0:00]Yesterday on X, somebody figured out how to connect Claude the AI to TradingView. It engages with TradingView live, it creates indicators out of thin air. It does all kinds of things directly into TradingView live, and all of it's done simply from within your terminal. It currently has three quarters of a million traders going crazy about it online. Now, there have been tools before that claim to have AI integrated into a chart, but most of the time, and I've used these by the way, you just end up screenshotting the chart. You throw it into the AI, and then by the time you've moved the screenshot over to the AI, the candles have moved, and now it's potentially different, and it's always this delayed thing that's going on. So you end up getting a reading on the chart from the AI that's irrelevant now. But this is completely different. So, because that's what I do on this channel, I went in and I tested it out. I've been using it, and I've actually made it better. And yeah, you're going to see just how incredible this is, but there were some elements where I thought, you know, there could be improvement here. I mean, all credit to trades don't lie who created this thing, but there are some elements that I thought really needed to be improved, and I've gone ahead and done so. We're at a point right now where AI and trading and finance and investing and blockchain is all coming together, and it's creating this potent mix. And if you're not paying attention and you're not just going to AI and saying, hey, what's Bitcoin going to do, you're actually wiring up these projects and actually creating your strategy, your brain into the code, you're going to be left behind. Because the people that are figuring that out right now have an obscene unfair advantage. And that's what this channel is all about. I want to give you an unfair advantage versus everyone else in the market, and this is one of those must watch videos. So, by the end of this video, I'm going to give you three things. Number one, you're going to know exactly how it works. Number two, I'm going to teach you how to set it up all for yourself in just a couple of minutes. And three, I've made improvements on what the original creator did. I saw a lot of people in the comments were struggling with elements of it, and I've gone ahead and fixed those. And I'm going to give you my version completely for free. I don't even want your email. I just want you to make a butt tan of money. And after you subscribe, let's get into it. So what is this actually? Well, the tool that was created is called TradingView MCP. You don't need to know what MCP actually stands for. All you need to know is that it will allow Claude to interact directly, almost like on a code to code basis with TradingView. I think most people assume that this is just another AI charts reading tool. You know, you show it the chart and you get it to tell you what to do. But if that's what you're expecting from this tool, you're going to entirely misuse it, and you're going to get the wrong outputs and it's just not going to be a good experience. But let me tell you what's different. When you screenshot a chart and you put it into AI, the AI is essentially just guessing because it's looking at a picture, it's trying to interpret an image, an image is just a series of pixels, right? And you can see immediately why that wouldn't work, because if you provided an image that was pixelated or just a very low quality, you know, those little elements, the different in pixels, can actually mean something for whether, you know, you should enter a trade or sell a trade, right? And I know we're talking about fine details, but trading is kind of the fine details, isn't it? Not to mention when you've delivered the screenshot to your AI, it's out of time, like it's out of date already. It's it's irrelevant because the chart's moved. Well, in this system, Claude isn't looking at an image. It's actually looking at the code and the values on the screen. What that means is it knows the exact positioning on a code level of all the candles on the screen, and it's watching that live. So if you're on the one-minute chart, even if you're on the one-second chart, Claude is able to read those one-second changes every single second. It knows the precise pricing of every candle from the top to the bottom with the Wix and everything, and live all the time. It's a very different thing than image recognition. And the crazy part is, is that you just talk to the chart within your terminal, so you're talking to Claude, and Claude is interpreting what you're saying from your natural language and just marrying that up with the code in the back end. And that changes absolutely everything about how you use this thing. So let's have a look at how it works under the hood. Many of you may or may not know this, but if you go on to a browser anywhere and just right click, you'll see a button at the bottom called inspect. When you click inspect, it basically shows you all the code that's on a page. And what's interesting is that as the page updates or new information loads on the screen, it will also appear in here. The code actually changes, it's dynamic. And so this project that connects Claude into TradingView has essentially Claude reading live all of the data that's happening on the code on the screen at that time. So it's actually reading the live data that's on the screen right now without using images. So, let's get into the build, shall we? This is going to be super simple because I've filmed this tutorial already. I tried to do the manual version where if you go down on the GitHub, you can see there is a manual version. You know, copy and paste this, copy and paste this, do all these details. It's just a bit of a headache. I decided to skip that whole process and deliver you a one-shot setup prompt. All you have to do is come over here right where it says one shot setup, copy, paste it into your Claude code, and there we go. That's all you have to do, and I'm going to run through just the process of using that one shot setup prompt right now. So, as I'm running this, it's just going to ask me a few things just to confirm or deny a few things. At the bottom you can see, do you want me to create MCP.json? It says yes, yes, and allow Claude to edit on its own for this session or no. I always just choose the one that allows it to be more automated, so I'm going to choose number two here. You just click the two button on your keyboard and it will carry on. We may get a few more of those as the process continues, but ultimately, it couldn't be easier. While we wait for that, I thought I might as well show you my 10X dashboard. If you don't know already, I'm trying to turn £50,000 into £500,000 in just a single year. So far, we're doing wonderfully. We are up fourth almost £4,000 over the purchases that we have made so far. I haven't entered in all the positions yet, but you can see every position I've entered, the P&L on every single one, and the exact moments when I've purchased my crypto. As you can see, my strategy is chef's kiss. Every single dip that you see in the market right here, I am buying, and it's all completely automated. The whole system is automated. It's an incredible thing. If you're interested in learning how to set that up for yourself or be alerted exactly when I'm alerted, so you can buy whatever cryptos that you're looking to buy. There's a link in the description for you to check that out. You can also watch my video on my strategy right on the top right hand side of this screen. But let's go back to our terminal and have a look. It says done, the setup is complete. TradingView desktop just needs to be running with CDP enabled. It's not open right now. So it's telling me right now, in order to use this, I have to either launch the TradingView desktop or just open TradingView and then run this specific command right here that I'm highlighting to just to check the connection. So, I've got TradingView open, and I'm just going to run this again just to see if it all works. This is basically just seeing whether the MCP is in fact connected properly and whether we're ready to move on to the next stage. In order to make this work really well, you just have to download TradingView desktop. You can come over to tradingview.com/desktop, and you can select whichever one works for you. Obviously, for me is the Mac. Just go ahead and do the normal installation process. So we've pulled up our TradingView desktop. It has said to launch it, all we have to do is paste this in to our terminal. And so that's what we'll do. We'll just take that and paste it in there. It now just needs us to launch TradingView with the exact location of TradingView. So all you're going to do is go over to your finder and find TradingView in your applications list. This is going to be a slightly weird to do, but click command and see, so you're copying that application, and you're pasting it into Claude Code. Claude Code is then going to give you an updated command that you need to copy and paste into Claude Code to set this up properly. We just have to give it 5 to 10 seconds to start, and then we're going to run again. TV health check to see if it is in fact running. Okay, it's done some reloading of Windows and everything, and TradingView is now back, and it says the CDP is live. Now, this is where it gets really interesting, and I want you to pay attention here. At the bottom it says, now fill in the rules.json with your watch list and trading rules, and you're good to go.

[10:43]Now, a few of these things are going to start looking a little bit like magic, but I want to show you the capabilities to start with, and then we'll move on to some more advanced things. So, let's say we're looking at the Apple chart right here. Let's say we want to look at the Bitcoin chart. Well, all I'm going to do is talk to my whisper flow. You can download it using the link in the description. I'm going to tell it what I want to see on the screen. Okay, so let's go. Can you show me the Bitcoin chart on the one week time frame, please? I've just clicked enter on that, and hopefully, we should see our TradingView start to change. There it is. It's done already. It's literally it's literally magic. It's it's magic. It's absolutely magic. Let's say I want to remove the volume indicator from the bottom. Can you please remove the volume indicator from the bottom of the screen? It's when you start using this, you it is incredible, and we haven't even scratched the surface here, by the way. Like, one of the things that we can do here is instruct it on a strategy. We can get it to place different indicators. Just like you can see there, it's just removed the the volume indicator from the bottom. It's absolutely incredible. So now what we want to do is we want to make sure that the our our theories for investing, our trading strategies are properly communicated with the Claude. Because Claude is going to go into the file structure that we've created and edit the strategy, the way you like to trade, and it's going to implement those onto the chart. I don't have necessarily a trading strategy right now, but I'm going to ask it just very naturally here to kind of copy someone else's trading strategy, and let's see it all get implemented on the chart. Hey, so I'm not much of a day trader, I really don't know much about day trading, but I'm sure there's a few people who are very public about their day trading, and they're really, really good. They've got strong performance and everything. I want you to research what they've done with their trading strategy, the indicators they use, the moving averages, whatever it is. And then can you please install those onto my Bitcoin chart here? You can update my rules.json file with all of that information, and then you can see that kind of playing out on my screen. Once you've actually created the whole strategy based on the trader that you're researching, can you actually turn that into a pine script, please, and then implement that pine script onto the chart? And so, all I'm doing now is queuing up sequentially a whole load of things that I want to tell Claude, and it will get to it once it's finished the research. So right now it said, great research, I'll apply the Van de Pope setup, which is the most replicable, best for Bitcoin swing trading on the weekly combined with the Tone Vase MACD, the EMA, the 21, the 50, and the 200, the RSI at 14, and the MACD. I'll update your rules.json file. Let me add them now. So it's actually created the strategy. It's now going through and adding the indicators onto the screen, and then once it has completed that, it will see my next prompt, which is about turning it into a pine script. A pine script will allow us to then back test the strategy to see how it would have performed in the past. It's going to create now a pine script for this Bitcoin weekly chart. And just like that, you can see the whole thing changed there, right? It just completely and entirely wrote that whole pine script, and what's really cool about the pine script is that right here you can see there's one of two problems. There's actually two issues with the code here, but because Claude code is watching what's on the screen from a code level, it can see that there is one of two problems, and it will go in there and fix those issues. And it will keep doing it and keep fixing them until it's all resolved. I'm just imagining someone who's never been in the terminal before, never used Claude code like this, looking at the screen right, you feel like you're in the matrix, this is like everything is is moving. So as we're waiting for that pine script to install in its entirety, I'm going to queue up another prompt here. In this prompt, I want to give it my entire watch list of assets that I want to keep on top of, right? In the previous version that I've kind of replicated here, you had to every day or every morning or whenever you come to your computer, you'd have to instruct the AI to look at specific chart, one at a time. And so it would be like, okay, open up my Ethereum chart. Analyze the Ethereum chart. Now the Bitcoin one, now the Solana one, now the XRP one, and it's just a bit of a headache to to do it over and over again. So what I ended up creating was kind of a a daily routine that essentially every morning, it'll come in, it'll look at your watch list, and then produce you a report of your watch list right at that moment. Right, saving, saving you having to kind of one at a time go through it. There's one of the small improvements that I've made. So it says that everything is live, the Bitcoin strategy, the Van de Pop and the Tone Vase is live on Bitcoin USD weekly. It tells us exactly what is entailed in this, and we're going to have a look to see. Holy moly, it did it. It actually did it. It's installed the whole thing. So it tells us right now that the buy zone labels when the price pulls back into the zone with RSI 35 to 58 and the MACD is still bullish. It will just inform us that there's a buying opportunity. You can see as as we zoom out, there's a buying opportunity right here, there's buying zone right there, and it did go up. This isn't obviously, I just made this strategy up with the top of my head, like this is by no means like sound or anything. But the process is here, and you can install that in your way. But as I said, I want to tell it what my, what the assets are on my watch list because this is going to help us later. So, let's have a go. So, I've got a few assets on my watch list that I want you to apply this to. So, Bitcoin, Ethereum, Solana, XRP, Chainlink, and Pepe. Let's just let's just see what it says. I'm going to remove that last bit because that had it stopped, I didn't stop transcribing, and let's do that. So it should add these assets to my watch list. And you can see it's just cycling through all of the assets and applying the indicator that we've created here, the pine script on all of the assets that we've talked about. Right now, just apply it on to Solana, and next we should see it on XRP. There you go, and it will just run through this entire thing, doing it for every asset on our watch list. So of course, if you wanted to edit any of this, you absolutely can, right? You can say, can you add an EMA line at the, you know, the 20 week EMA? And if the price comes down and double taps that line, for example, then alert me, and it will build the pine script according to what you've said. But separately, you can already see that from the watch list that I created, it's given me a signal on every single asset on the weekly chart, on my watch list, based on this strategy. It's tell me that Bitcoin's bearish, Ethereum's bearish, Solana's bearish, XRP is neutral, Link is bearish, and Pepe is neutral as well. It gives me a really good idea as to what I should be doing. Now that brings me to what I have built and added on top in a more concrete way, right? There's a lot of issues with this that I didn't feel sat right with me, so I'm going to tell you about the changes that I've made and show you how to use them in your terminal. As I mentioned, it's very frustrating asking the AI to show me one chart and then tell it, then get it to show me another chart and another chart. I felt like that was too much effort. I'm lazy now, right? Now that AI AI does everything for me, and so I set up something called the morning brief. And in order to get your morning brief, all you have to do is type in morning_brief into your terminal, and what it will do is it will go out and it will look at all the items on your watch list and deliver you a morning brief. Right? So you it doesn't have to be the morning when you run it, but at least you only have to type this one time instead of every asset individually. So imagine you come into your office, you open up your computer, you run a morning brief, that morning brief will just show you all the assets and the positions of all your assets anytime you want. If you want to make this extra on steroids, you can even set it up to send you a brief every 10 minutes if you want. Every minute if you want, it might get a little bit annoying, but you can set it up in that way. I like a morning brief just to see the status of all the assets, and if it's a good moment right then, maybe I'll add some to a position or I'll take some away from a position. I also added this rules file that we've already kind of started talking to. Basically allows you to talk with Claude to add the rules that you want implemented, like, you know, something is bullish if these things take place. Something is bearish if these things take place, something's neutral if these things take place. You know, what rules do we have for entering a long, entering a short? What about exiting? What about the risk that we're assuming? What about the time frames that we use? You can input all of that into here just by simply talking to Claude. And that means you get an extra level of like intricacy here, right? You can see that the morning brief has been delivered here. It just tells us all the information, there's no long setups on Bitcoin. It's the worst looking chart of all the majors on Ethereum. It's the closest to a potential reversal for XRP, but it's still not a buy. This is just really good stuff. Like, I don't know how else to say it. This is just good, good stuff. I'm sure you could attach to this the idea of like taking someone's strategy in full. Let's say you downloaded every transcript from CoinsKid, for example, a a prominent TA analyst. You could scrape all the transcripts of his videos and basically say, what is his strategy? What indicators does he use? Can you determine whether it's things are a buy or a sell, you know, based on what he has talked about in his videos and apply that as a pine script into my chart? What happens in the end is you end up looking at a chart the same way that CoinsKid does or Blockchain backer, for example, is incredible. Or if you scraped all the transcripts of all of his videos and determined, you know, what charts is he looking at? You know, how is he looking at things? What's his decision-making process? And how can I put that into a pine script that's all accessible to you because of this? It will just update the rules.json file with all the rules and implement it on your thing. You do a morning brief every day, and you're told what to do based on people that know what they're talking about, or if you're the one who knows what you're talking about, it's it's based on your strategy. No emotions are involved. It's like you've done the thinking of the strategy, and there it is. Here's the decisions to make. How much easier is that? How much more bandwidth do you open up? There was also a little launch bug that was a problem with the TradingView thing. That's also been entirely fixed. And so, everything that you've seen built right here is accessible for you right now for free. I don't want your email. I don't want you to pay me. I just want you to make a whole load of money, and I think this is one of those tools that unlocks something that didn't exist before. If you want to use this right now, you can click the link in the first line of the description, copy and paste that one shot prompt over, and bish bash bosh, you know what to do. You're going to make a ton of money. Thanks for watching.

Need another transcript?

Paste any YouTube URL to get a clean transcript in seconds.

Get a Transcript