Blog : Adding PineScript Code to Your TradingView Chart

How Can I Add Pine Script to My Chart?

If you wish to add Pine Script code generated by the getpinescript service to your TradingView chart, please follow the instructions below:

  • 1 Click the "Pine Editor" tab at the bottom of the page. Click the Pine Editor tab at the bottom of the page
  • 2 Click "Open" and select "New Indicator or New Strategy" under the "Templetes" section. ='Click Open and select New Indicator or New Strategy under the Templetes section
  • 3 Delete all existing lines in the "Pine Editor" tab. You will see an empty page like in the screenshot. Delete all existing lines in the Pine Editor tab. You will see an empty page like in the screenshot
  • 4 Copy the Pine Script source code from "Generated Pine Script Code" section. Copy the Pine Script source code from Generated Pine Script Code section
  • 5 Paste the copied text into the Pine Editor. Paste the copied text into the Pine Editor
  • 6 Click "Save" from the "Pine Editor" menu on the right-hand side. Click Save from the Pine Editor menu on the right-hand side
  • 7 Type a script name as you wish. Type a script name as you wish
  • 8 Click "Add to Chart" from the "Pine Editor" menu on the right-hand side. ClickAdd to Chart from the Pine Editor menu on the right-hand side
  • 9 See the script output on your chart screen. See the script output on your chart screen
  • 10 Click "Collapse Panel" from the "Pine Editor" menu on the right-hand side. Click Collapse Panel from the Pine Editor menu on the right-hand side
  • 11 Congratulations! You have successfully added Pine Script source code to your TradingView account.