Swing Trade TarayıcıSwing Trade Scanner (v6) User Guide
1. Purpose:
This TradingView indicator (written in Pine Script v6) is designed to help identify swing trading opportunities. It calculates an overall trend strength and direction score by combining multiple technical analyses for up to 20 financial assets (stocks, cryptocurrencies, forex, etc.) that you specify. It presents the results in a customizable table, allowing you to quickly scan the market.
2. Analyses Used and Their Roles:
By default, the indicator uses the following 4 main technical analyses:
EMA Crossover (Default: 9/21): Used to capture short-term trend direction and potential momentum shifts. When the fast EMA (9) crosses above the slow EMA (21), it's considered a bullish signal; when it crosses below, it's a bearish signal. It's often one of the main entry/exit triggers.
RSI (Relative Strength Index - Default: 14): Measures the speed of price movements to identify overbought (OB) and oversold (OS) conditions. Reversals from the OB zone can signal potential downturns, while reversals from the OS zone can signal potential upturns. It also provides insight into the strength of the momentum.
MACD (Moving Average Convergence Divergence - Default: 12, 26, 9): A trend-following momentum indicator. The relationship between the MACD line and the signal line (crossovers) and the state of the histogram (position relative to the zero line) are used to confirm momentum shifts and trend strength.
ADX/DI (Average Directional Index - Default: 14, 14): Measures the strength (ADX) and direction (+DI/-DI lines) of a trend. Its main role is to filter signals from other indicators. A trend is considered to exist if the ADX is above a certain threshold (e.g., 25). +DI above -DI indicates an uptrend, and the reverse indicates a downtrend.
3. Scoring System:
The indicator calculates an individual score for each analysis and then combines these scores using weights you define to create a final Trend Score:
Individual Scores: Each analysis (EMA, RSI, MACD, ADX/DI) generates a decimal score between -1.0 (Strong Negative/Bearish) and +1.0 (Strong Positive/Bullish) based on its own rules. For example, RSI might score +1.0 if oversold, -1.0 if overbought, and 0.0 if neutral. MACD and ADX/DI scores can also take intermediate values reflecting both direction and strength (e.g., ±1.0, ±0.6, ±0.3, 0.0).
Weighting: In the settings, you can assign a weight (between 0.0 and 1.0) to each analysis, determining how much it influences the final score. For instance, you might give EMA crossover a higher weight and use RSI with a lower weight.
Total Score: The individual scores of the active analyses are multiplied by their assigned weights and summed up. This total is then divided by the sum of the weights of the active analyses to obtain a final, normalized Trend Score between -1.0 and +1.0. This score represents the combined view of all analyses.
4. Trend Determination:
The calculated final Trend Score is classified into an overall TREND status based on threshold values you set in the settings:
S.UP (Strong Up): Score > Strong Up Threshold (Default: 0.70)
UP: Up Threshold < Score <= Strong Up Threshold (Default: 0.35 < Score <= 0.70)
NEUTRAL: Down Threshold <= Score <= Up Threshold (Default: -0.35 <= Score <= 0.35)
DOWN: Strong Down Threshold <= Score < Down Threshold (Default: -0.70 <= Score < -0.35)
S.DOWN (Strong Down): Score < Strong Down Threshold (Default: -0.70)
This classification allows you to see at a glance which assets have strong trend potential.
5. Table Structure and Meanings:
The indicator displays the results in a table with the following columns:
TICKER: The symbol of the analyzed asset (abbreviated).
TREND: The overall trend status determined by the total score (S.UP, UP, NEUTRAL, DOWN, S.DOWN). The background color of this column also reflects this overall trend (Dark Green, Green, Gray, Red, Dark Red).
SCORE: The calculated weighted total score (between -1.00 and +1.00, with two decimal places). The background color of this column also reflects the overall trend.
EMA: Shows the result of only the EMA 9/21 analysis.
▲: EMA(9) > EMA(21) (Green Background)
▼: EMA(9) < EMA(21) (Red Background)
N: Neutral (Gray Background)
-: Analysis disabled or no data (Pale Gray Background)
RSI: Shows the result of only the RSI analysis.
OS: Oversold (RSI < 30) (Green Background)
M+: Mid Positive (30 <= RSI < 45) (Light Green/Lime Background)
N: Neutral (45 <= RSI <= 55) (Gray Background)
M-: Mid Negative (55 < RSI <= 70) (Orange Background)
OB: Overbought (RSI > 70) (Red Background)
-: Analysis disabled or no data (Pale Gray Background)
MACD: Shows the result of only the MACD analysis.
S+: Strong Positive (MACD > Signal AND Histogram > 0) (Green Background)
M+: Mid Positive (MACD > Signal BUT Histogram < 0) (Light Green/Lime Background)
N: Neutral (Other cases) (Gray Background)
M-: Mid Negative (MACD < Signal BUT Histogram > 0) (Orange Background)
S-: Strong Negative (MACD < Signal AND Histogram < 0) (Red Background)
-: Analysis disabled or no data (Pale Gray Background)
ADX/DI: Shows the result of only the ADX/DI analysis.
S+: Strong Uptrend (ADX > 40 AND +DI > -DI) (Green Background)
M+: Mid Uptrend (25 < ADX <= 40 AND +DI > -DI) (Light Green/Lime Background)
W: Weak Trend (ADX <= 25) (Gray Background)
M-: Mid Downtrend (25 < ADX <= 40 AND -DI > +DI) (Orange Background)
S-: Strong Downtrend (ADX > 40 AND -DI > +DI) (Red Background)
-: Analysis disabled or no data (Pale Gray Background)
6. Settings (Inputs):
You can customize the indicator's behavior using the following settings:
General Settings:
Analysis Timeframe: Select the timeframe for the scans (Leave blank to use the chart timeframe).
Auto Adjust Parameters and Weights: If checked, predefined parameters and weights based on the selected timeframe (1h, 4h, 1D, 1W) are used. If unchecked, or if an unsupported timeframe is selected, the manual settings below apply.
Strong/Normal Up/Down Thresholds: Adjust the score thresholds used to determine the TREND column.
Analysis Settings (Separate Group for Each Analysis):
Enable ... Analysis: Check to include the respective analysis in the score.
... Weight (Manual): If auto-adjust is off, set the weight of this analysis in the total score.
... Period/Level (Manual): If auto-adjust is off, adjust the parameters (period, level, etc.) of the respective indicator.
Symbols (1-10):
Checkbox: Check to include the respective symbol in the scan.
Text Box: Enter the symbol of the asset you want to analyze (e.g., "NASDAQ:AAPL", "BINANCE:BTCUSDT").
Table Settings:
Table Position: Choose where the table appears on the chart.
Cell Width: Adjust the width of the table cells.
Text Size: Select the general size of the text in the table (individual analysis columns are usually shown one size smaller).
7. How to Use:
Add the indicator to your TradingView chart.
Enter the indicator settings.
In the Symbols section, enter the symbols of the assets you want to analyze and check the boxes next to them.
In the General Settings section, select your desired Analysis Timeframe.
Decide whether the Auto Adjust Parameters and Weights option should be checked. If not, adjust the manual parameters and weights for each indicator in the Analysis Settings section according to your strategy.
Examine the table:
The TREND and SCORE columns give you a general overview. Focus on strong signals (S.UP, S.DOWN) or states that have just crossed thresholds (UP, DOWN).
The EMA, RSI, MACD, ADX/DI columns allow you to see in detail which analyses influenced the overall score. You can track confirming or conflicting signals here.
Combine these scan results with other rules of your swing trading strategy (support/resistance, patterns, risk management, etc.) to make trading decisions.
8. Important Notes:
This indicator does not constitute financial advice. It is merely a tool that combines technical analysis tools to help you scan the market.
The default parameters and weights in the indicator settings are for general use. For best results, it is strongly recommended that you optimize these settings by backtesting them on historical data according to your own strategy, the assets you trade, and market conditions.
No technical indicator or system generates 100% accurate signals. Always apply risk management principles and do not trade with money you cannot afford to lose.
I hope this guide helps you use the indicator effectively!
Screener-ma
Multiple Instrument Automation ScreenerI have developed a Pine Script indicator on TradingView designed to demonstrate how to automate execution for ten instruments. This example utilizes a straightforward, Simple Moving Average (SMA) indicator. You can use it as a template, but use your indicator.
The indicator computes long/short signals based on the crossing of the SMA using the security function
It acts as a screener, presenting calculation results in an organized table format.
Utilizing the varip variable, the indicator sends alerts for multiple instruments sequentially rather than simultaneously.
For every generated signal, the indicator builds and sends a JSON execution command to a third-party tool, ensuring seamless integration and automation. You can use your own format.
Sent alerts look like this:
{"ticker": "DOGEBTC","action": "buy","price": "0.00000199","time": "1719754620658"}
Details and Limitations
Instrument Limit: The example is configured for ten instruments for simplicity. However, it can be expanded to handle up to 40 instruments.
Alert Rate Limit: There is a rate limit of 15 alerts in 3 minutes. Exceeding this limit may cause some alerts to be stopped. This can be managed by tracking the alert times and delaying some alerts, though this may affect the entry prices.
Timing of Signal Generation : The indicator processes signals at the bar close to the active instrument. Due to its computational complexity, there is a slight delay in collecting all records, potentially causing signals to reflect a few seconds before the bar closes. Care should be taken when executing based on these signals.
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting.
This post and the script don’t provide any financial advice.
Ultimate Custom MTF ScreenerThis indicator will allow you to make your custom TradingView MTF screener without coding. Add it to the chart, select up to 10 instruments, 4 timeframes, and 4 indicators, and the screener will do the rest for you. The indicator will form a lovely table with all values and highlighted signals.
The screener is highly customizable, and you can choose its position on the chart, sorting, order of the columns, and colors for the tables. You can easily change parameters for all supported indicators and their signals.
Currently, there are 21 different custom indicators available. Current list of indicators:
Average Directional Index (ADX) - displaying the value of ADX and checking if it's higher than the threshold
Average True Range (ATR) - showing the value of ATR
Awesome Oscillator (AO) - displaying the value of AO and highlighting positive/negative values.
Bollinger Bands (BB) - showing if the price is above/below/in the channel.
Breakout Pivots - Displaying when the price is below/above the most recent pivot low/high.
Commodity Channel Index (CCI) - shows the last CCI value and highlights overbought/oversold values.
Directional Movement Index (DMI) - Up/Down signal (+DI above or below -DI)
Donchian Channel (DC) - showing if the price is above/below/in the channel.
Heikin Ashi Count (HAC) - What is the current Heikin Ashi candle color and for how long was this color?
Historical Volatility (HV) - Current value of Historical Volatility
Keltner Channel (KC) -showing if the price is above/below/in the channel.
Moving Average Convergence Divergence (MACD) - Up/Down signal (MACD above / below signal)
Moving Average Crossover (MA Cross) - Displaying MA crosses signals (SMA, EMA, WMA, HMA, VWMA, SMMA, DEMA, VWAP supported)
Moving Average Distance (MA DIST) - Displaying distance to the MA (SMA, EMA, WMA, HMA, VWMA, SMMA, DEMA, VWAP supported)
Parabolic Stop and Reverse (PSAR) - Up or Down
Relative Strength Index (RSI) - Displaying the last RSI value and highlighting overbought/oversold values.
Stochastic (STOCH) - Displaying the last Stochastic value and highlighting overbought/oversold values.
Stochastic RSI (STOCH RSI) - Displaying the last Stochastic RSI value and highlighting overbought/oversold values.
SuperTrend - Current state of the SuperTrend.
Trailing Stop-Loss (TSL) - Up or Down
True Strength Index (TSI) - Displaying the last TSI value and highlighting overbought/oversold values.
We're already working on adding a few more supported indicators. If you have any ideas about the indicators you want to see in our screener, contact us, and we'll consider them.
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting.
This post and the script don’t provide any financial advice.