TradingView Tutorial

How to Open Pine Editor in TradingView

The Pine Editor is TradingView built-in code development environment for creating custom indicators, backtesting strategies, and setting dynamic alerts. Learn where to find it on web, desktop, and mobile in seconds.

Quick walkthrough

4 Steps to Open and Run Pine Editor

Follow these steps on any browser or the TradingView desktop application.

1

Open Any TradingView Chart

Navigate to TradingView.com in your web browser or launch the TradingView Desktop application. Select any ticker symbol (such as AAPL or BTCUSD) to open the full interactive chart view.

2

Click the "Pine Editor" Tab at the Bottom

Look at the toolbar docked at the bottom of the chart window. Click the tab named "Pine Editor" (located next to Strategy Tester and Stock Screener) to open the code pane.

3

Create a New Script or Paste Code

Click the "Open" dropdown in the top right of the Pine Editor panel and select "New indicator" or "New strategy", or paste your existing Pine Script v6 code directly into the editor.

4

Click "Save" and "Add to chart"

Click the blue "Save" button to store your script in your TradingView personal library, then click "Add to chart". Your custom indicator will immediately display on the chart above.

Where to Find Pine Editor by Platform

Different devices handle Pine Script differently. Here is what to expect on each client.

TradingView Web

Open full chart view. The Pine Editor tab is pinned to the bottom bar. Pressing the expand icon maximizes the code editor to full screen.

TradingView Desktop

Supports multi-tab layouts on Windows, macOS, and Linux. The Pine Editor functions identically to web with full multi-monitor undocking capabilities.

Mobile App (iOS/Android)

Editing raw Pine Script is not supported on phone apps. You can add pre-saved indicators to your chart and adjust input parameters from mobile.

Ready-to-use template

Test Your Pine Editor with This Starter Code

Copy this minimal Pine Script v6 code, paste it into your Pine Editor, and click Add to chart to verify everything works.

starter-indicator.pine (Pine Script v6)
//@version=6
indicator("Quick Starter Indicator [Pineify]", overlay=true)

// Calculate a 20-period Exponential Moving Average
ema20 = ta.ema(close, 20)

// Plot the EMA line on the chart
plot(ema20, color=color.blue, linewidth=2, title="20 EMA")
Next Step with Pineify

Create Complex Indicators Without Coding by Hand

Writing multi-timeframe conditions, custom alert triggers, and complex risk management scripts in raw Pine Script takes hours of syntax debugging. Pineify lets you build visual Pine Script v6 indicators with 235+ indicators or generate code instantly with our AI Coding Agent.

235+

Supported Indicators

Frequently Asked Questions

Disclaimer: TradingView and Pine Script are registered trademarks of TradingView, Inc. Pineify is an independent product and is not affiliated with, endorsed by, or sponsored by TradingView, Inc. This content is for educational purposes only and does not constitute investment advice.