TradingView strategies and indicators written in Pine Script. Each of these scripts is designed to help traders detect patterns or trends in the market, analyze statistical data, and make more informed decisions.
Each file is named after the strategy or indicator it implements. For example, macd.strategy is a strategy based on the Moving Average Convergence Divergence (MACD) indicator.
The available strategies and indicators include:
- Time Series Momentum Effect (TimeSeriesMomentumEffect.strategy)
- Bollinger Bands (bollingerbands.strategy)
- Exponential Moving Average (EMA) (ema.strategy and ema.indcator)
- Linear Regression (linearregression.strategy and linearregression.indicator)
- Moving Average Convergence Divergence (MACD) (macd.strategy and macd.indicator)
- Relative Strength Index (RSI) (rsi.strategy and rsi.indicator)
- Relative Volatility Index (RVI) (rvi.strategy and rvi.indicator)
- Standard Deviation (standarddeviation.strategy and standarddeviation.indicator)
-
Open TradingView: Visit the TradingView website and log in to your account. If you don't have an account, you can sign up for a free one.
-
Open a new Pine Script editor: In the bottom panel of the TradingView interface, click the "Pine Editor" tab.
-
Write the code for the Indicator/Strategy:
-
Copy the code from the desired strategy or indicator script in this repository and paste it into the Pine Script editor.
-
Save and add the indicator to your chart: Click the "Add to Chart" button in the Pine Editor to apply the indicator to the active chart. You can also save the script by clicking the "Save" button and giving it a name.
-
Customize the Scripts settings: Once the indicator is applied to your chart, you can change the settings by clicking on the gear icon next to the indicator label on the upper left side of the chart. In the settings window, you can adjust the length, source, color, and other visual preferences.