---
title: 'I Create the Perfect TradingView Indicator with Claude (and I Give It to You)'
source: 'https://youtube.com/watch?v=pRnbJq_gfwU'
video_id: 'pRnbJq_gfwU'
date: 2026-07-28
duration_sec: 705
channel: 'Hobbiecode'
---

# I Create the Perfect TradingView Indicator with Claude (and I Give It to You)

> Source: [I Create the Perfect TradingView Indicator with Claude (and I Give It to You)](https://youtube.com/watch?v=pRnbJq_gfwU)

## Summary

This video demonstrates how to use Claude AI to create custom TradingView indicators without any programming knowledge. The process involves simple text prompts to generate Pine Script code, with iterative refinements to improve the indicator and add profit-taking levels.

### Key Points

- **Choosing Claude AI** [00:57] — The presenter uses Claude (referring to it as 'Cloud') for generating TradingView indicators, recommending the web version over the desktop app for ease of copying code.
- **Initial Prompt for Support/Resistance** [02:10] — A simple prompt asks for an indicator showing support and resistance levels along with trend lines, specifying that the strength of each level should be represented.
- **Copying Code to TradingView** [03:49] — After Claude generates the code, it is copied and pasted into TradingView's Pine Editor by clicking the 'Create new strategy' button and replacing the default code.
- **First Results** [04:34] — The initial indicator displays trend lines in blue and support lines in red. It shows strength percentages for each level, but there are too many lines cluttering the chart.
- **Iterating to Reduce Clutter** [05:54] — A follow-up prompt asks Claude to modify the indicator to identify high-probability bounce zones and reduce the number of lines, resulting in a cleaner chart with confluence highlights.
- **Adding Profit Targets** [07:59] — A third prompt requests stop-loss and take-profit levels for each zone. Claude generates code that plots horizontal lines for SL and two TP levels on the chart.
- **Final Indicator Example** [09:49] — The final indicator on a 4-hour EUR/USD chart shows demand zones with stop-loss below and two take-profit targets, demonstrating a complete trading setup.
- **Free Indicator Link** [10:03] — The presenter mentions the indicator is available for free in the video description and encourages viewers to use it to simplify trading.

### Conclusion

By iteratively prompting Claude, traders can rapidly prototype custom indicators that adapt to their personal trading style, making advanced technical analysis accessible to everyone.

## Transcript

find for creating the best trading indicators in TradingView artificial intelligence.  And I'm telling you it's the best, first of all because I've been algorithmically in the financial markets for many years and obviously also collecting data with
this type of tool.  And point number two, because it's not your typical video , I'm going to explain the best promo to give the AI ​​so that it gets the best possible result.  No, no, no.  This isn't about putting in the best
possible prom.  It's true that the prompts I'm going to add are very simple, but little by little I'm going in the direction I want to take the 'a' and in this way you'll be able to get some very, very good indicators.  And before
encourage you to subscribe to our channel to receive notifications about this type of content I 'm uploading if you're interested in the in the financial markets.  And now, let's begin. The one I'm going to use for
begin. The one I'm going to use for this is Cloud.  Cloud.II.  This isn't the first video I've uploaded about this in particular.  For me, it's the best one today, the one that's standing out above CHG GPT and many others, especially
this video what we're going to ask it to do is generate programming code that we won't have to review or go into at any point so we can copy and paste it into TradingView .  In the cloud, why use the cloud?  We'll
tell you when to use cloud on the web and when to use Cloud Code, which is the application that makes you download it to your desktop. Well, for Cloud Web it's for asking for things that it's giving you, and you can copy and paste them or take them somewhere
, whether it's an email, or anything related to programming, but you have to do the exercise of copying and pasting it.  What happens if I don't generate indicators in Trending View?   You will also have to copy it because it does
TradingView application.  Therefore, it is sufficient to use the web version.  Use the free license that comes with it .  I know there's a limit to the number of requests.  You can buy the cheapest plan .  I think it's 12 a month.  But hey
until tomorrow if you want to do new iterations.  For now I'm going to use Cloud Web, the web version, and I'm going to copy this pro.  Very simple.  I want the indicator for TradingView.  that shows me both the support and
resistance levels that exist, as well as the trend lines.  Note, not only the levels where the price might bounce from above or below, but we can cross that information as well, right?  What can it detect?  With this
combined information, I want it to represent the strength of each level; that is , at each level it detects, tell me whether it is stronger or weaker than the others so that I can take it into account or not.  And in this
way, notice that a very simple pron, it 's not an engineering pron or anything like that , it's very simple.  And now I'm going to click on it.  This is the Opus 7 model. .  I have the paid version and use the best one, but it's
not necessary for you.  I keep pressing enter and it's going to take a few minutes.  Now go and have a coffee and wait a little while to see what he's show you now is the entire conversation I've had, because otherwise
the video with Cloud will take a very long time to complete this indicator, to show them to you.  Look, I asked him here, I want an indicator, the same thing you just complete indicator for you, pencla bla bla bla bla. Pivot length,
thing is, I have the code here. Sometimes it doesn't load, but you just click the download button and it will download to your computer.  Then you can open it there.  What did I tell him? I said, "I don't see the code to copy it."  Okay, it says it
here, no problem.  Okay, you copy it, exactly as is.  Copy this and go to TradingView, okay?  In TradingView, at the bottom right there is a button called Pine, which looks like a small mountain.  You open it and here in this,
well, if it has already opened a blank script, don't use it because this is a theory the code should already tell you that.  Click the "create new strategy" button here, okay?  And now you take everything, delete it, and paste it.
pasted, but you paste all the code that the cloud gave you.  Okay, my strategy is this one here, the one he gave me is this one here.  I'm currently using the Dowons daily, okay?  I could lower it to a daily rate.  This doesn't matter now, it doesn't matter right now
.  The thing is, look, look at what I've created without saying a word to him.  Here I can see trend lines in blue and support lines in red.  Resistencia hasn't painted any for me.  Then we'll look at some
other assets to see if they can also show us some resistance.  It says here that I'm bullish by 10.56%, okay?  It's a degree.  Up by 18%.  Okay, notice that
this blue one is the one with the most blue tone, therefore, it is the one with the most strength.  The other 50, 67, 39%, this one here is not so strong.  And key resistances, 48% 50%.  Let's see.  And up here someone put
a little board in me.  Hey, he didn't ask for it, but it's really good, actually.  Let's see if there will be more gold in Forest; I think there will be more.  Look here at the euro CHF, we have resistance and we have support here.  Okay, it's currently breaking through a
support level.  It is breaking down a support level that was at 49%. Well, and here we also have, uh, bearish trend lines, it paints it in here?  What I'm looking at here is how to improve this indicator, because I can't really
trade with this indicator either , right?  What I'm seeing is that there are too many stripes, literally too many stripes.  So, I'm going to go to Cloud and say, "Hey, man, you've made a lot of lines. Remove this
[music] here. You've drawn a lot of lines. Just like this so you can see it. Here it is. Based on this information, modify the indicator so it identifies the areas with the highest probability of a price bounce and
represents it in a visible way so I can make a decision without so many lines." Okay, it takes a while, then boom, it gives me this code, I go back down here gives me this code, I go back down here to TradingView, I remove it, and it's this one
Perfect. I say, "Okay, this is something else, alright?"  It's not that the indicator was simpler , no, no.  The same logic underlies it all.  Notice that I started for that I wanted support, resistance,
interesting levels, right?  And he painted them for me.  I said, "Hey, deleted.  He took the same information from me and cross-referenced it.  In other words, it has crossed levels where trend lines and support levels pass.  And that's how it
gives more strength to one level or another. Notice that he tells me times three, times four, two times each.  It gives me a boost here.  There have probably been more confluences of stripes here, haven't there? Let's see in others, for
Let's see in others, for example, in gold paint, it will make me look bad.   Maybe it's because he's instead of daily because maybe it's been a trend that's been too, too,
too high. [music] Look here at a certain time.  Yes, I'm going to the Euro CHF in an hour.  There are both support and resistance levels. Well, we can see everything.  Okay, I'm going to stay at the point that JP has been
crazy today in real time.  I'm going to stick with the euro/dollar.  Okay, I'm going another season of [music] 4 hours, right? One day.  Let's see if there is one.  Okay, here's some
to stay in this photo.  OK.  It tells us about demands above.  There are three demand zones and one supply zone. But something is missing.  Notice here that good supports.  [music] I'm missing something.  I want
this information, which I now believe is good, to be a can greatly help your trading, to detect zones. I want it to detect zones. I want it to offer me possible
profit could be based on the ranges it's detecting, and where to place the stock so that it doesn't take me out right away , right?  So I go back , right?  So I go back to the cloud and further down I ask for it from
here.  I would like to profit for the next price movements if the price reaches any of these levels that I have marked on the chart.  Notice that they are simple prongs, there is no need to complicate your
Okay, he says, "Okay, for demand zones I'm going to draw a stop-loss, a take-profit, and a second take-profit, okay? And the same for just copy it, I paste it. Notice that I'm pasting it on a different strategy;
three different ones. I have it on three different ones, okay? And now we'll look at the third one on top of this one because it's interesting, and we're going to zoom in a little more. Look here, let's see if we can draw it to see it better. Here he's drawing
a short, okay? A yellow line that's not very clear above the red zone. A short, and the first take-profit is down here, down here, and is down here, down here, and the second take-profit is right here,
the second take-profit is right here, okay? Ah, putting it here? Because it's the beginning, look, it's the beginning of the first support level. Right when it touches the first support line,
boom, you exit. [music] If you  It breaks down, you exit at the second support level. Okay? And we also have buy zones here. Two buys, each with its stop-loss below and its take-profit either
above or further up. This is a very simple indicator I've made; it will only take you a few minutes to create, and look at how far we create, and look at how far we 've come with simple moving averages.
that I generated using artificial intelligence, which I just find it in the description of this video. Simply click on it, and you completely free of charge. What I want to show you is that trading is very
simple, and now with AI, we can make it even simpler. The best trading strategies you use are the simplest. I hope this video has helped you learn how to generate new indicators based
on your own criteria and iterated by you using artificial intelligence, which is practically free these days, allowing you to create and automate your trading.  Trading, free you from emotions, decisions, and being glued to the screen. And
learn how to create profitable strategies, this isn't a profitable strategy itself, talking to you now about simple, profitable strategies that will work artificial intelligence. I've included a link below to a free course, which is what I
do. It's my own trading. I use profitable strategies this is what I'll teach you in these five lessons if you register using the link you can find in the first comment and in the description
encourage you to subscribe to my channel to receive this great content that will be very useful to you, and I'll see you in the next video, trader. Like and comment—I'll next video, trader. Like and comment—I'll read them all. Ciao. Ciao. [music]
