PROTECTED SOURCE SCRIPT

Swing Trade Tarayıcı

55
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!

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.