Market Strength Buy Sell Indicator [TradeDots]A specialized tool designed to assist traders in evaluating market conditions through a multifaceted analysis of relative performance, beta-adjusted returns, momentum, and volume—allowing you to identify optimal points for long or short trades. By integrating multiple benchmarks (default S&P 500) and percentile-based thresholds, the script provides clear, actionable insights suitable for both day trading and higher-level timeframe assessments.
📝 HOW IT WORKS
1. Multi-Factor Composite Score
Relative Performance (RS Ratio): Compares your asset’s performance to a chosen benchmark (default: SPY). Values above 1.0 indicate outperformance, while below 1.0 suggest underperformance.
Beta-Adjusted Returns: Checks the ticker’s excess movement relative to expected market-related moves. This helps distinguish pure “alpha” from broad market effects.
Volume & Correlation: Volume spikes often confirm the momentum behind a move, while correlation measures how closely the asset tracks or diverges from its benchmark.
These components merge into a 0–100 composite score. Scores above 50 frequently imply bullish strength; drops below 50 often point to underperformance—potentially flagging short opportunities.
2. Intraday & Day Trading Focus
Monitoring Below 50: During the trading day, the script calculates live data against the benchmark, offering an intraday-sensitive composite score. A dip under 50 may indicate a short bias for that session, especially when accompanied by high volume or momentum shifts.
3. Higher Timeframe Monitoring
Daily Strategies: On daily or weekly charts, the script reveals overall relative strength or weakness compared to the S&P 500. This higher-level perspective helps form broader trading biases—crucial for swing or position trades spanning multiple days.
Long/Short Thresholds: Persistent readings above 50 on a daily chart typically reinforce a long bias, while consistent dips below 50 can sustain a short or cautious outlook.
4. Pair Trading Applications
Custom Benchmark Selection: By setting a specific ticker pair as your benchmark instead of the default S&P 500, you can identify spread trading opportunities between two correlated assets. This allows you to go long the outperforming asset while shorting the underperforming one when the spread reaches extreme levels.
4. Color-Coded Signals & Alerts
Visual Zones (25–75): Color-coded bands highlight strong outperformance (above 75) or pronounced underperformance (below 25).
Alerts on Strong Shifts: Automatic alerts can notify you of sudden entries or exits from bullish or bearish zones, so you can potentially act on new market information without delay.
⚙️ HOW TO USE
1. Select Your Timeframe: For scalping or day trading, lower intervals (e.g., 5-minute) offer immediate data resets at the session’s start. For multi-day insight, daily or weekly charts reveal broader performance trends.
2. Watch Key Levels Around 50: Intraday dips under 50 may be a cue to consider short trades, while bounces above 50 can confirm renewed strength.
3. Assess Benchmark Relationships: Compare your asset’s score and signals to the broader market. A stock falling below its pair’s relative strength line might lag overall market momentum.
4. Combine Tools & Validate: This script excels when integrated with other technical analysis methods (e.g., support/resistance, chart patterns) and fundamental factors for a holistic market view.
❗ LIMITATIONS
No Direction Guarantee: The indicator identifies relative strength but does not guarantee directional price moves.
Delayed Updates: Since calculations update after each bar close, sudden intrabar changes may not immediately reflect.
Market-Specific Behaviors: Some assets or unusual market conditions may deviate from typical benchmarks, weakening signal reliability.
Past ≠ Future: High or low relative strength in the past may not predict continued performance.
RISK DISCLAIMER
All forms of trading and investing involve risk, including the possible loss of principal. This indicator analyzes relative performance but cannot assure profits or eliminate losses. Past performance of any strategy does not guarantee future results. Always combine analysis with proper risk management and your broader trading plan. Consult a licensed financial advisor if you are unsure of your individual risk tolerance or investment objectives.
Strengthandweakness
Strong Trend Bars (ATR-based)This is a ChatGPT pinescript meant as an indicator for detecting strength in the market. The primary function I use it for is to decide which bars to trail a stop loss beneath.
💥 Explanation of adjustable inputs:
Bull Close Threshold (default 0.6):
If set to 0.6, bull bars must close above 60% of bar height → low + 0.6 * barHeight
Bear Close Threshold (default 0.6):
If set to 0.6, bear bars must close below 40% of bar height → high - 0.6 * barHeight
This lets you experiment with tighter or looser filters. For example:
0.7 → only bars closing near the extremes will light up
0.5 → about midpoint
0.8 → very demanding, “almost full body” bars
Relative Strength and MomentumRelative Strength and Momentum Indicator
Unlock deeper market insights with the Relative Strength and Momentum Indicator—a powerful tool designed to help traders and investors identify the strongest stocks and sectors based on relative performance. This custom indicator displays essential information on relative strength and momentum for up to 15 different symbols, compared against a benchmark index, all within a clear and organized table format.
Key Features:
1. Customizable Inputs: Choose up to 15 symbols to compare, along with a benchmark index, allowing you to tailor the indicator to your trading strategy. The 'Lookback Period' input defines how many weeks of data are analyzed for relative strength and momentum.
2. Relative Strength Calculation: For each selected symbol, the indicator calculates the Relative Strength (RS) against the chosen benchmark. This RS is further refined using an exponential moving average (EMA) to smooth the results, providing a more stable trend overview.
3. Momentum Analysis: Momentum is determined by analyzing the rate of change in relative strength. The indicator calculates a momentum rank for each symbol, based on its relative strength’s improvement or deterioration.
4. Percentile Ranking System: Each symbol is assigned a percentile rank (from 1 to 100) based on its relative strength compared to the others. Similarly, momentum rankings are also assigned from 1 to 100, offering a clear understanding of which assets are outperforming or underperforming.
5. Visual Indicators:
a. Green: Signals improving or stable relative strength and momentum.
b. Red: Indicates declining relative strength or momentum.
c. Aqua: Highlights symbols performing well on both relative strength and momentum—ideal candidates for further analysis.
6. Two Clear Tables:
a. Relative Strength Rank Table: Displays weekly rankings of relative strength for each symbol.
b. Momentum Table: Shows momentum trends, helping you identify which symbols are gaining or losing strength.
7. Color-Coded for Easy Analysis: The tables are color-coded to make analysis quick and straightforward. A green color means the symbol is performing well in terms of relative strength or momentum, while red indicates weaker performance. Aqua marks symbols that are excelling in both areas.
Use Case:
a. Sector Comparison: Identify which sectors or indexes are showing both relative strength and momentum to pick high-potential stocks. This allows you to align with broader market trends for improved trade entries.
b. Stock Selection: Quickly compare symbols within the same sector to find the stronger performers.
Days Higher Than Current PriceThe "Days Higher Than Current Price" indicator is a color-coded tool that provides insights into the historical price performance of an underlying asset. By analyzing the number of bars prior to the selected day that had higher closing prices, this indicator visually represents the comparative strength or weakness of the current price level.
The "Days Higher" indicator utilizes a color-coded scheme to indicate the number of days in the asset's price history where the closing prices were higher than the current day's price. The color spectrum ranges from red to blue, representing varying levels of historical price strength.
Color Coding:
The color coding scheme of the indicator offers a quick and intuitive understanding of the price performance:
Red: Represents a higher number of days in the asset's price history where the closing prices were higher than the current day's price. This suggests a weaker price trend or a potential reversal and indicates relative price weakness.
Blue: Represents a lower number of days in the asset's price history where the closing prices were higher than the current day's price. This indicates a strong trend of higher prices and suggests relative price strength.
Orange & Green: Correspond to different numbers of days where the closing prices were higher than the current day's price. The specific color gradations between red and blue reflect increasing or decreasing historical price strength.
Methodology:
The "Days Higher" indicator examines each bar in the asset's price history leading up to the selected day. It counts the number of bars where the closing prices were higher than the current day's price.
The indicator then assigns a specific color to the price chart based on the count of such days, providing a visual representation of historical price strength relative to the current price level.
Utility:
The "Days Higher" indicator offers traders and investors a unique perspective on the historical price performance of an asset. By assessing the color-coded chart, market participants can quickly gauge the presence of strong or weak historical price trends.
This information can be used to identify potential support or resistance levels, assess the overall strength of a trend, or evaluate the likelihood of a price reversal. Traders may incorporate this indicator into their analysis to make more informed trading decisions based on the historical price strength indicated by the color-coded chart.
It is important to note that this tool should be used in conjunction with other technical analysis tools and indicators to validate signals and make well-rounded trading decisions.
Example Charts:
-Indices-
-Stocks-
-Cryptos-
-Multi-Timeframe-
RSI medianA RSI implementation tailored for a specific use case.
Instead of using RSI with oversold and overbought values, I use it as a median value.
If the RSI is above 50, the trend is bullish.
If the RSI is below 50, the trend is bearish.
This indicator is customized to help you easily identify market strength/weakness based on which side of the median value the RSI is.
Currency Strength Gold MethodolgyThis script was written by, and used with the express permission of, Eduardo Andrade. The purpose of the script is easily determine respective currencies strength and weakness as utilized in The Gold Methodology - Ichimoku.
Tradingview members can use this script to see how each currency pair performed the day before as the reading is based is based upon the 11:00 p.m. GMT 60 minute candle (just before the Tokyo open).
Each currency is ranked in order of descending Strength and are designated by the following colors:
Orange = AUD
Green = CAD
Aqua = CHF
Purple = EUR
Red = GBP
Yellow = JPY
Black = NZD
Blue = USD
I hope you find he script beneficial and if you have any questions, please comment or send me a message.
have a great weekend!!
Allen
TRIX ribbon w/ Up/Down colours - squattter
Follow the momentum - 2/4/8hr or Daily, take your pick. Use 2 or more TFs together for greater chance of a winning trade.
Also brilliant for spotting divergence.
This one is my favorite indicator.