Edgoro
Install in TradingView

Guides

Install a Pine Script indicator in TradingView

Short answer

Copy the script from your Edgoro answer (or download the .pine file), open TradingView's Pine Editor, replace the editor's content with the script, save it, then click "Add to chart". TradingView compiles the script at that moment: Edgoro checks it beforehand with Edgoro Pine Check, but it doesn't compile Pine Script. If the Pine Editor shows an error, paste the exact message and its line number into the same Edgoro conversation: you get a corrected version, checked again.

On this page

Before you start

  • A TradingView account. The free plan is enough to add your own scripts; paid plans raise limits such as the number of indicators per chart and of active alerts.
  • The complete script. It starts with //@version=6 and declares either indicator() or strategy(): that tells you which kind of script to create in step 4.
  • A chart of the market and timeframe the script was written for.

Steps

  1. In Edgoro, click Copy on the code block. Or click Download to get a .pine file, open it in any text editor and copy its content.
  2. Open a chart on TradingView.
  3. Open the Pine Editor. Depending on your layout and TradingView version, it's a tab at the bottom of the chart or an icon in the side panel.
  4. Create a new script from the editor's script menu: an Indicator, or a Strategy if the code starts with strategy(. The menu item may read "Create new" or "New", depending on the version.
  5. Select all of the template code (Ctrl+A, or Cmd+A on a Mac), delete it, and paste the script. Leftover template lines are a common cause of confusing errors.
  6. Click Save and name the script. TradingView keeps it among your own scripts, so you can add it to other charts later from the Indicators dialog.
  7. Click Add to chart. TradingView compiles the script now. An indicator appears on the price chart or in a pane below it; a strategy also opens the Strategy Tester. In recent versions, the same button may read "Update on chart" once the script is on the chart.
  8. To change the settings, hover over the script's name on the chart and click the gear icon: the Inputs tab holds every input.*() value, the Style tab the colours and lines.

Add an alert (optional)

Edgoro's indicators get one alertcondition() per signal, and strategies may use alert():

  1. Click the Alert button (the alarm-clock icon) in the top toolbar.
  2. Under Condition, choose your script, then the alert condition.
  3. Choose how often it can trigger and how you want to be notified, then create the alert.

Alerts run on TradingView's servers, so they keep working with your browser closed. How many you can keep active depends on your TradingView plan, and webhook delivery needs a paid plan. alertcondition() vs alert() explains the difference between the two calls.

If it doesn't work

TradingView's compiler checks things Edgoro Pine Check can't, such as argument types and runtime limits, so an error can still appear after "0 errors" from Pine Check. Paste the exact message into the same conversation ("TradingView shows this error on line 42: …"): the corrected script is a new version, checked again.

What you seeWhat to do
A red error under the editor, with a line numberPaste it into Edgoro. The Pine Script error library explains each message and its fix.
Could not find function or function referenceA name from an older Pine version, or template lines left in the editor. Replace the whole content and add the script again.
Mismatched input or end of line without line continuationIndentation broken during copying. Copy again with the Copy button rather than by selecting the text.
Undeclared identifierA name used before it's declared, or a typo. Paste the message into Edgoro.
Loop is too long or memory limits exceededRuntime limits that only TradingView can measure. Ask Edgoro for a lighter version (fewer bars, fewer drawings).
The script compiles but nothing showsCheck that it's on the right symbol and pane, and that the indicator draws something: Pine Check adds a note when it doesn't.

To check any script before you paste it, the free Pine Script checker runs Edgoro Pine Check in your browser. It doesn't compile the script either: the Pine Editor does. The full TradingView guide covers settings and alerts in more detail.

Trading involves substantial risk of loss and is not suitable for every investor. Edgoro is a software tool, not a broker or financial adviser: nothing it produces is investment advice, and past or backtested performance does not guarantee future results.

Something wrong or missing? Email contact@edgoro.com