OPEN-SOURCE SCRIPT

Trend Strength Meter [Eหฃ]

172
Pine Scriptยฎ
๐Ÿ“Š Trend Strength Meter - Free Indicator Overview The Trend Strength Meter quantifies market momentum with a simple 0-100 score. No more guessing if a trend is strong or weak - this indicator gives you an objective, numerical measurement of trend strength that combines trend direction, momentum, volatility, and moving average alignment into one clear reading. โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐ŸŽฏ What This Indicator Does Quantifies Trend Strength: โ€ข Measures trend on a scale from -100 (extreme bearish) to +100 (extreme bullish) โ€ข Combines 4 key components: Trend Direction, Momentum, Volatility, MA Alignment โ€ข Provides objective measurement instead of subjective interpretation โ€ข Works on all timeframes and instruments Visual Display: โ€ข [color=green]Green Histogram Bars[/color] = Bullish strength (0 to +100) โ€ข [color=red]Red Histogram Bars[/color] = Bearish strength (0 to -100) โ€ข Smooth Overlay Line = Trend direction (filters noise) โ€ข Triangle Markers = Trend reversals (zero-line crosses) โ€ข Background Zones = Visual strength categories Multi-Timeframe Analysis: โ€ข See strength readings from 3 timeframes simultaneously โ€ข Identify when trends align across multiple timeframes โ€ข "ALIGNED" indicator shows when all timeframes agree โ€ข Spot divergences between timeframes Clean & Professional: โ€ข Minimal clutter, maximum clarity โ€ข Compact info panel in top-right corner โ€ข No overwhelming indicators or text โ€ข Easy to read at a glance โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐Ÿ“Š Understanding The Strength Scale Bullish Readings (0 to +100) [color=green]+75 to +100 - VERY STRONG BULL[/color] โ€ข Extremely powerful uptrend โ€ข All components aligned bullishly โ€ข Best time for aggressive long positions โ€ข Trend likely to continue โ€ข Strategy: Hold longs, avoid shorts [color=green]+50 to +75 - STRONG BULL[/color] โ€ข Strong uptrend with good momentum โ€ข High probability of continuation โ€ข Quality long setups โ€ข Pullbacks are buying opportunities โ€ข Strategy: Enter longs on dips [color=green]+25 to +50 - BULL[/color] โ€ข Moderate bullish trend โ€ข Decent upward momentum โ€ข Trend following longs work โ€ข Watch for weakening signals โ€ข Strategy: Ride the trend, trail stops [color=green]+10 to +25 - WEAK BULL[/color] โ€ข Weak bullish bias โ€ข Trend may be exhausting โ€ข Lower probability setups โ€ข Consider taking profits โ€ข Strategy: Caution, reduce position sizes -10 to +10 - NEUTRAL โ€ข No clear trend โ€ข Choppy, range-bound market โ€ข Conflicting signals โ€ข Low probability for trend trades โ€ข Strategy: Stay flat or trade ranges Bearish Readings (0 to -100) [color=red]-10 to -25 - WEAK BEAR[/color] โ€ข Weak bearish bias โ€ข Trend may be exhausting โ€ข Lower probability setups โ€ข Consider taking profits on shorts โ€ข Strategy: Caution, reduce position sizes [color=red]-25 to -50 - BEAR[/color] โ€ข Moderate bearish trend โ€ข Decent downward momentum โ€ข Trend following shorts work โ€ข Watch for weakening signals โ€ข Strategy: Ride the trend down, trail stops [color=red]-50 to -75 - STRONG BEAR[/color] โ€ข Strong downtrend with momentum โ€ข High probability of continuation โ€ข Quality short setups โ€ข Bounces are selling opportunities โ€ข Strategy: Enter shorts on rallies [color=red]-75 to -100 - VERY STRONG BEAR[/color] โ€ข Extremely powerful downtrend โ€ข All components aligned bearishly โ€ข Best time for aggressive short positions โ€ข Trend likely to continue โ€ข Strategy: Hold shorts, avoid longs โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐Ÿ“Š How To Use This Indicator Basic Usage 1. Check Current Strength โ€ข Look at the histogram height and color โ€ข Read the exact number in the info panel โ€ข Note the status label (STRONG BULL, WEAK BEAR, etc.) โ€ข Higher absolute value = stronger trend 2. Watch For Reversals โ€ข Triangle markers appear when strength crosses zero โ€ข ๐ŸŸข Green triangle up = Bullish reversal signal โ€ข ๐Ÿ”ด Red triangle down = Bearish reversal signal โ€ข These mark potential trend changes 3. Monitor Multi-Timeframe Alignment โ€ข Check if all timeframes show same direction โ€ข "โœ“ ALIGNED" = All timeframes agree (high confidence) โ€ข "โœ— Mixed" = Timeframes disagree (lower confidence) โ€ข Aligned trends have higher probability 4. Observe Strength Changes โ€ข Rising strength = Trend strengthening โ€ข Falling strength = Trend weakening โ€ข Strength near extremes (+75/-75) = Potential exhaustion โ€ข Strength near zero = Indecision/consolidation โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐Ÿ’ก Trading Strategies Strategy 1: Trend Following Best For: Capturing major moves Timeframes: 1H, 4H, Daily Rules: 1. Wait for strength to reach +50 or higher (or -50 or lower) 2. Check MTF alignment - all timeframes should agree 3. Enter on pullbacks in the direction of strength 4. Hold position while strength remains above +25 (or below -25) 5. Exit when strength crosses back to weak zone or reverses Example - Long Setup: โ€ข Strength crosses above +50 = Strong bull trend โ€ข All MTF readings positive and aligned โ€ข Wait for minor pullback to support โ€ข Enter long with stop below recent swing low โ€ข Hold while strength stays above +25 โ€ข Exit if strength drops below +10 or reverses to negative Strategy 2: Reversal Trading Best For: Catching trend changes early Timeframes: 15min, 1H, 4H Rules: 1. Watch for strength to reach extreme levels (+75 or -75) 2. Look for divergence (price new high/low but strength declining) 3. Wait for zero-line cross (triangle marker appears) 4. Enter in direction of new trend 5. Use tight stops since you're catching early Example - Bullish Reversal: โ€ข Strength at -80 (very strong bear) โ€ข Price makes new low but strength only at -70 = Divergence โ€ข Green triangle appears = Zero-line cross โ€ข Enter long on confirmation โ€ข Stop below recent swing low โ€ข Target: Strength reaching +50 Strategy 3: Avoid Bad Trades Best For: Improving win rate Timeframes: All Rules: โ€ข DON'T trade when strength is between -10 and +10 (neutral zone) โ€ข DON'T go long when strength is negative โ€ข DON'T go short when strength is positive โ€ข DON'T trade against MTF alignment โ€ข DO wait for clear strength readings Why It Works: Most losses come from trading in choppy markets or against the trend Strategy 4: Position Sizing Based On Strength Best For: Risk management Timeframes: All Rules: โ€ข Strength +75 to +100 or -75 to -100 = Full position size (2-3% risk) โ€ข Strength +50 to +75 or -50 to -75 = Normal position (1.5-2% risk) โ€ข Strength +25 to +50 or -25 to -50 = Reduced position (1% risk) โ€ข Strength -10 to +10 = No trades or minimal size (0.5% risk) Why It Works: Bigger positions in stronger trends, smaller in weak trends โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” โš™๏ธ Settings Explained Multi-Timeframe Analysis โ€ข Toggle ON/OFF the MTF readings in the info panel โ€ข Turn OFF for cleaner display if you only trade one timeframe Timeframe 1, 2, 3 (Default: 15min, 1H, 4H) โ€ข Choose which timeframes to analyze โ€ข For day trading: Use 5min, 15min, 1H โ€ข For swing trading: Use 1H, 4H, Daily โ€ข For position trading: Use 4H, Daily, Weekly โ€ข Higher timeframes show bigger picture trends MA Length (Default: 20) โ€ข Moving average period for trend direction component โ€ข Lower values (10-15): More responsive, more signals โ€ข Higher values (25-50): Smoother, fewer signals โ€ข Recommended: 20 for most styles ATR Length (Default: 14) โ€ข Period for measuring volatility โ€ข Standard setting works well for most markets โ€ข Recommended: Keep at 14 RSI Length (Default: 14) โ€ข Period for momentum measurement โ€ข Standard setting works well for most markets โ€ข Recommended: Keep at 14 Show Trend Labels on Chart โ€ข Toggle ON to display "BULL" / "BEAR" text at reversals โ€ข Keep OFF for cleaner chart (default) โ€ข Useful when backtesting to see historical signals Show Reversal Signals โ€ข Toggle triangle markers at zero-line crosses โ€ข Keep ON to catch trend changes โ€ข Turn OFF if you only care about current strength โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐ŸŽ“ How The Calculation Works The indicator measures 4 components, each worth 25 points (total = 100): 1. Trend Direction (25 points) โ€ข Compares price to moving average โ€ข Checks if MA is rising or falling โ€ข Perfect score: Price above rising MA โ€ข Minimum score: Price below falling MA 2. Momentum (25 points) โ€ข Uses RSI to measure momentum strength โ€ข RSI > 70 = Maximum bullish points โ€ข RSI < 30 = Maximum bearish points โ€ข RSI near 50 = Neutral points 3. Volatility Alignment (25 points) โ€ข Checks if price moves align with volatility โ€ข Strong moves in trending direction = High score โ€ข Weak moves or counter-trend = Low score โ€ข Uses ATR to measure volatility 4. Moving Average Alignment (25 points) โ€ข Checks EMA 8, 21, and 55 positioning โ€ข Perfect bullish: 8 > 21 > 55 above price โ€ข Perfect bearish: 8 < 21 < 55 below price โ€ข Misaligned = Reduced score Final Score = Sum of all 4 components (-100 to +100) โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐Ÿ“ฑ Info Panel Guide Current โ€ข Shows exact strength number for current timeframe โ€ข Color-coded background (green = bullish, red = bearish) โ€ข Larger number for quick visibility Status โ€ข Text description of current trend state โ€ข Examples: "STRONG BULL", "WEAK BEAR", "NEUTRAL" โ€ข Quick interpretation without looking at number Timeframe Readings โ€ข Shows strength for each selected timeframe โ€ข Color-coded for quick reading โ€ข Compare to spot divergences MTF Alignment โ€ข โœ“ ALIGNED = All timeframes show same direction (high confidence) โ€ข โœ— Mixed = Timeframes disagree (proceed with caution) โ€ข Most reliable trades happen when aligned โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐Ÿ“ฑ Alert Setup This indicator includes 4 alert types: 1. Bullish Reversal โ€ข Triggers when strength crosses from negative to positive โ€ข Potential trend change from bearish to bullish โ€ข Early warning of new uptrend 2. Bearish Reversal โ€ข Triggers when strength crosses from positive to negative โ€ข Potential trend change from bullish to bearish โ€ข Early warning of new downtrend 3. Very Strong Bull โ€ข Triggers when strength reaches +75 or higher โ€ข Extreme bullish conditions โ€ข Aggressive long opportunity 4. Very Strong Bear โ€ข Triggers when strength reaches -75 or lower โ€ข Extreme bearish conditions โ€ข Aggressive short opportunity To Set Up Alerts: 1. Click "Alert" button (clock icon) 2. Select "Trend Strength Meter" 3. Choose your alert type 4. Configure notifications 5. Click "Create" โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐Ÿ’Ž Pro Tips & Best Practices โœ… DO: โ€ข Trust the extremes - Readings above +75 or below -75 are highly reliable โ€ข Wait for alignment - Best trades happen when MTF shows "ALIGNED" โ€ข Use with price action - Combine with support/resistance for entries โ€ข Respect the neutral zone - Avoid trading when strength is -10 to +10 โ€ข Scale position size - Bigger positions in stronger trends โ€ข Watch for divergence - Price new high but strength declining = Warning โ€ข Follow the trend - Don't fight strong readings (ยฑ50 or more) โš ๏ธ DON'T: โ€ข Don't trade neutral readings - Wait for clear strength above ยฑ25 โ€ข Don't fade extremes - Very strong trends (+75/-75) can stay extreme โ€ข Don't ignore MTF - Mixed timeframes = Lower probability โ€ข Don't overtrade - Wait for quality setups with good strength โ€ข Don't use alone - Combine with support/resistance and risk management โ€ข Don't expect perfection - Even strong trends can reverse suddenly ๐ŸŽฏ Best Timeframes: โ€ข Scalping: 1min, 5min (fast readings, quick changes) โ€ข Day Trading: 5min, 15min, 1H (balanced view) โ€ข Swing Trading: 1H, 4H, Daily (stable trends) โ€ข Position Trading: 4H, Daily, Weekly (major trends) ๐Ÿ”ฅ Best Markets: โ€ข Trending markets (crypto, indices, commodities) โ€ข High liquidity instruments (BTC, ES, NQ, EUR/USD) โ€ข Avoid on low-volume stocks or exotic pairs โฐ Works Best When: โ€ข Market has clear direction โ€ข Good volatility (not too choppy, not too quiet) โ€ข Multiple timeframes aligned โ€ข Away from major news events โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐Ÿš€ What Makes This Different? Unlike subjective trend analysis, the Trend Strength Meter: โ€ข Objective Measurement - No guessing, exact numerical score โ€ข Multi-Component - Combines 4 factors, not just one indicator โ€ข Multi-Timeframe - See alignment across timeframes instantly โ€ข Clean Visual - Professional display, easy to interpret โ€ข Actionable - Clear signals for entries, exits, and position sizing โ€ข Universal - Works on all timeframes and instruments โ€ข Proven Components - Based on trend, momentum, volatility, MA alignment Perfect For: โ€ข Trend followers who want confirmation โ€ข Swing traders seeking high-probability setups โ€ข Risk managers wanting to size positions properly โ€ข Anyone tired of subjective "is this trend strong?" questions โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐Ÿ“ˆ Common Patterns To Watch Pattern 1: The Steady Climb โ€ข Strength gradually rises from +25 to +50 to +75 โ€ข Indicates building momentum โ€ข Trade: Hold longs, add on pullbacks Pattern 2: The Quick Spike โ€ข Strength jumps from 0 to +75 in few bars โ€ข Indicates explosive momentum โ€ข Trade: Enter quickly, but expect pullback Pattern 3: The Exhaustion โ€ข Strength at +80, price new high, strength drops to +70 โ€ข Bearish divergence forming โ€ข Trade: Take profits, prepare for reversal Pattern 4: The Whipsaw โ€ข Strength oscillates between +10 and -10 โ€ข Choppy, range-bound market โ€ข Trade: Stay flat, wait for breakout Pattern 5: The False Breakout โ€ข Strength briefly crosses +50 then drops back โ€ข Weak momentum, trend not confirmed โ€ข Trade: Wait for sustained strength above +50 โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐Ÿ“ˆ Upgrade Your Trading System This free indicator quantifies trend strength objectively. Want more? ๐Ÿ”ฅ Check out my premium scripts for: โ€ข Automated entry and exit signals with trend confirmation โ€ข Advanced multi-timeframe strategy systems โ€ข Dynamic position sizing based on trend strength โ€ข Backtested performance with statistics โ€ข Complete trading solutions โ€ข And much more... ๐Ÿ‘‰ Visit my profile for professional-grade trading tools! โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐Ÿ“ Important Notes โ€ข This indicator measures trend strength, not direction alone โ€ข Strong readings don't guarantee continuation (manage risk) โ€ข Always use with proper stop losses โ€ข Combine with support/resistance analysis โ€ข Test on demo before live trading โ€ข Past performance doesn't guarantee future results โ€ข Adjust settings to match your trading style Disclaimer: For educational purposes only. Trading involves substantial risk. Always do your own research and never risk more than you can afford to lose. โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐Ÿ™ Support This Work If this indicator helps your trading: โ€ข โญ Give it a thumbs up โ€ข ๐Ÿ’ฌ Share your best strength-based trades in comments โ€ข ๐Ÿ”” Follow for more free professional tools โ€ข ๐Ÿš€ Share with traders who need objective trend analysis Questions about trend strength? Drop a comment and I'll help! โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” Developed with โค๏ธ for traders who want objective, quantified analysis โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” Version History โ€ข v1.0 - Initial release with 4-component strength calculation and MTF analysis

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.