Show source code

You can use the Show Source Code button right next to the script you want to see the source code of.

TradingView Show source code

Scripts visibility

TradingView scripts visibility

However, the author may choose not to share the source code. In that case, you cannot see the source code. When someone publishes a script, they have the following options:

  • Open: Everyone can see the source code and apply it to a chart.
  • Protected: No one can see the source code but everyone can apply it to a chart.
  • Invite Only: Only those you give permission to access to the script can apply it to a chart. No one can see the source code.

Currently, only premium users can publish a script as invite only.