What is Pine Script & How Can I Use It to Create a Signal?
Updated
Pine Script is a programming language for creating custom indicators, strategies, and alerts on TradingView. It allows you to automate trading signals, analyze data, and visualize custom calculations directly on charts.
How to Use Pine Script
Open TradingView and Select Your Trading Pair
Create and Apply Your Script
Open the Pine Editor at the bottom of the chart
Write or paste your Pine Script code (e.g., a custom indicator or strategy)
Click Save to save your script, then click Add to Chart to apply it to the chart
Set Up an Alert Based on Your Script
Click on the Alert button in the top toolbar
In the Condition dropdown, select the custom script you just applied
Choose the appropriate AlertCondition from the script (e.g., buy or sell signals)
Customize the alert settings (e.g., frequency and notification method) and click Create
This website is operated by HDR Global Trading Limited, a company incorporated under the International Business Companies Act of 1994 of the Republic of Seychelles with a company number of 148707 and registered address at Global Gateway 8, Rue de la Perle, Providence Mahé, Seychelles (“HDR”). HDR wholly owns BitMEX, a Bitcoin-based trading platform.
Access to trading or holding positions on BitMEX is prohibited for any person or entity that is located, incorporated or otherwise established in, or a citizen or a resident of: (i) the United States of America, Québec (Canada), the Hong Kong Special Administrative Region of the People’s Republic of China, the Republic of Seychelles, Bermuda, Cuba, Crimea and Sevastopol, Iran, Syria, North Korea or Sudan; (ii) any state, country or other jurisdiction that is embargoed by the United States of America; or (iii) any other jurisdiction where the services offered by BitMEX are restricted (collectively “Restricted Jurisdictions”). If it is determined that any BitMEX user has given false representations as to their location, incorporation, establishment, citizenship or residence, or HDR detects a user is from a Restricted Jurisdiction as described above, HDR reserves the right to immediately close their accounts and liquidate any open positions. HDR may, in its sole discretion, implement controls to restrict access to the BitMEX trading platform in any of the Restricted Jurisdictions.