Skip to main content

Creating Your First Indicator

Building Your First TradingView Indicator

On the Trading Scripts page, click the Create Script button.

YourTradingBuddy create script button

This will lead you to the Script Builder page.

YourTradingBuddy Script Builder

As you can see, there are already some default nodes added to our Script Builder on initial load. You can then click the code tab in the upper right corner.

YourTradingBuddy - code tab

This will instantly generate the TradingView code:

YourTradingBuddy - generated TradingView script code

Then click the copy to clipboard and open TradingView button.

YourTradingBuddy - Copy to clipboard and open TradingView

This will copy the generated code to the clipboard and open the TradingView website. If you already have an account, open the Pine Editor and you can simply paste the code by pressing Ctrl + V on Windows or Cmd + V on Mac.

YourTradingBuddy - pine editor

Click the add to chart button.

YourTradingBuddy - add to chart button

And voila! You should see your first indicator.

YourTradingBuddy - indicator on chart

Once you're happy with the result of your indicator/script, hit the save button to make sure all changes are saved.

YourTradingBuddy - save button

Summary

In this lesson, you learned how to use the Script Builder to generate TradingView script code. We also covered how to use the generated code with the TradingView website to view your newly built trading indicator.