How to install TradingView indicators from code
Every indicator on this site arrives as a Pine Script file — a plain text file full of code. Getting it onto your chart takes three steps and no programming knowledge whatsoever. Here is the whole process.
Copy the code
Download the indicator or strategy from this site. Right-click the file, choose Open with, and pick a plain text program — Notepad on Windows, TextEdit on a Mac. Either will show you the code exactly as it needs to be. Now select everything and click copy.
Copy all of it, including the very first line beginning with a double slash. That line tells TradingView which version of Pine Script to use, and leaving it behind is the single most common reason an install fails.
Open the Pine Editor
Go to TradingView and open any chart. In the bottom right corner of your screen there is an icon, shown below. Click it, then choose Pine Editor — a panel opens along the right-hand side of your browser.
Now click the small downward arrow at the top of that panel and choose Create New. Pick Indicator or Strategy, depending on which one you are installing — this is the only step where the two differ.
The editor opens with a few lines of example code already in it. Click inside the panel, select all of that, and delete it so you are looking at an empty editor. Then paste in the code you copied.
Can't find the icon? It sits with the other controls in the bottom right corner of the chart. The Pine Editor is available on every plan, including the free one.
Save, then add to chart
Click Save at the top right of the editor and give it a name. This saves it to your own TradingView account, so it is there whenever you want it and you never have to repeat this process for that indicator again.
Now click Add to chart, just to the right of Save. The indicator appears immediately. Its settings can be changed the same way as any built-in indicator — hover its name on the chart and click the gear icon.
That is the whole process. Once saved, the indicator lives under Indicators → My scripts, and you can add it to any chart in two clicks.
The questions people actually ask
Do I need a paid TradingView account?
No. The Pine Editor is available on the free plan, and everything on this page works with it. The free plan limits how many indicators you can run at once on a single chart, which is the only thing you may bump into.
It says there is an error. What now?
Nine times out of ten, something was missed when copying. Go back, select the entire file including that first line beginning with a double slash, and paste it into an empty editor. If it still complains, send us the error message and we will look at it.
Will this change my charts permanently?
Nothing is changed permanently. The indicator can be hidden or removed at any point after installing it, and saving the script to your account changes nothing about your existing setups.
To hide it without removing it, hover the indicator's name on the chart and click the eye icon — it disappears from view but stays installed, ready to switch back on whenever you want. To remove it entirely, click the cross beside it instead.
Is it safe to run code from the internet?
Pine Script runs inside TradingView and can only draw on charts and read price data. It cannot access your account, place trades or reach anything outside the chart.
What is the difference between an indicator and a strategy?
An indicator draws on your chart and leaves the decisions to you. A strategy places virtual trades so an idea can be backtested and measured over real history.
They install identically but for one step: when you click Create New in the Pine Editor, choose Strategy rather than Indicator. Everything after that is the same.