OPEN-SOURCE SCRIPT
Trend Strength Table

This strategy is a time-in-trend awareness and exhaustion framework rather than a directional signal by itself. It uses a Hull Moving Average–based trend definition to continuously identify whether the market is in a bullish or bearish phase, then measures how long that trend typically lasts by averaging the durations of recent historical trends in the same direction. As a new trend unfolds, the system tracks how many bars have already closed and compares that progress against the trend’s historical “probable length.” The result is a live, adaptive estimate of where the current move sits within its natural life cycle, independent of price targets or indicators like RSI or MACD.
The real edge comes from contextual trade management. By converting elapsed trend time into a percentage of the probable trend length, the table classifies the move into Strong, Medium, Declining, or Exhaustion phases. Early stages (Strong/Medium) favor continuation trades and holding winners, while later stages (Declining/Exhaustion) warn against chasing momentum and instead encourage scaling out, tightening stops, or looking for reversal and mean-reversion setups. In practice, this strategy acts as a risk-timing overlay—helping traders decide when to press, when to be patient, and when to stand down—rather than telling them what direction to trade.
LONG TRADE RULES (Bullish Trend)
✅ Long Entry Recommendations
Only consider longs when the table shows a Bullish trend.
Best entry zones by Trend Strength:
Strong (< 25%)
✅ Best continuation entries
Enter on:
First pullback to VWAP / 9–20 EMA
Bullish engulfing candle
ORB continuation
Bias: Aggressive size allowed
Expect expansion
Medium (25%–50%)
✅ Still valid, but be selective
Enter on:
Higher low + strong close
Break-and-hold above key level
Bias: Normal size
Avoid chasing extended candles
Declining (50%–75%)
⚠️ Late trend
Only enter if:
Tight consolidation breakout
Strong volume confirmation
Bias: Reduced size
Faster profit-taking
Exhaustion (> 75%)
❌ No new longs
Trend is statistically mature
Look for:
Failed breakouts
Bearish rejection candles
🎯 Long Exit Rules
Partial exits
Take first scale at 50%–75%
Full exit
Mandatory by Exhaustion
Stop management
Strong/Medium → structure-based stop
Declining → tighten aggressively
Hard rule
Do not hold longs once trend flips bearish
SHORT TRADE RULES (Bearish Trend)
✅ Short Entry Recommendations
Only consider shorts when the table shows a Bearish trend.
Best entry zones by Trend Strength:
Strong (< 25%)
✅ Best short continuation zone
Enter on:
Failed bounce into resistance
VWAP / EMA rejection
ORB breakdown
Bias: Aggressive size allowed
Medium (25%–50%)
✅ Good continuation, slower
Enter on:
Lower high confirmation
Breakdown after consolidation
Bias: Normal size
Declining (50%–75%)
⚠️ Trend is aging
Only enter:
On clean breakdowns
With defined risk
Bias: Reduced size
Exhaustion (> 75%)
❌ No new shorts
Expect:
Short-covering
Dead-cat bounces
Reversal attempts
🎯 Short Exit Rules
Partial exits
Begin scaling out at 50%–75%
Full exit
Required at Exhaustion
Stop management
Strong/Medium → above lower high
Declining → tight trailing stop
Hard rule
Cover all shorts if trend flips bullish
🔥 Power Rules (Do NOT break these)
Never open new trades in Exhaustion
Strong = press, Declining = protect
Trend strength dictates size, not conviction
Direction comes from trend, timing comes from price
The real edge comes from contextual trade management. By converting elapsed trend time into a percentage of the probable trend length, the table classifies the move into Strong, Medium, Declining, or Exhaustion phases. Early stages (Strong/Medium) favor continuation trades and holding winners, while later stages (Declining/Exhaustion) warn against chasing momentum and instead encourage scaling out, tightening stops, or looking for reversal and mean-reversion setups. In practice, this strategy acts as a risk-timing overlay—helping traders decide when to press, when to be patient, and when to stand down—rather than telling them what direction to trade.
LONG TRADE RULES (Bullish Trend)
✅ Long Entry Recommendations
Only consider longs when the table shows a Bullish trend.
Best entry zones by Trend Strength:
Strong (< 25%)
✅ Best continuation entries
Enter on:
First pullback to VWAP / 9–20 EMA
Bullish engulfing candle
ORB continuation
Bias: Aggressive size allowed
Expect expansion
Medium (25%–50%)
✅ Still valid, but be selective
Enter on:
Higher low + strong close
Break-and-hold above key level
Bias: Normal size
Avoid chasing extended candles
Declining (50%–75%)
⚠️ Late trend
Only enter if:
Tight consolidation breakout
Strong volume confirmation
Bias: Reduced size
Faster profit-taking
Exhaustion (> 75%)
❌ No new longs
Trend is statistically mature
Look for:
Failed breakouts
Bearish rejection candles
🎯 Long Exit Rules
Partial exits
Take first scale at 50%–75%
Full exit
Mandatory by Exhaustion
Stop management
Strong/Medium → structure-based stop
Declining → tighten aggressively
Hard rule
Do not hold longs once trend flips bearish
SHORT TRADE RULES (Bearish Trend)
✅ Short Entry Recommendations
Only consider shorts when the table shows a Bearish trend.
Best entry zones by Trend Strength:
Strong (< 25%)
✅ Best short continuation zone
Enter on:
Failed bounce into resistance
VWAP / EMA rejection
ORB breakdown
Bias: Aggressive size allowed
Medium (25%–50%)
✅ Good continuation, slower
Enter on:
Lower high confirmation
Breakdown after consolidation
Bias: Normal size
Declining (50%–75%)
⚠️ Trend is aging
Only enter:
On clean breakdowns
With defined risk
Bias: Reduced size
Exhaustion (> 75%)
❌ No new shorts
Expect:
Short-covering
Dead-cat bounces
Reversal attempts
🎯 Short Exit Rules
Partial exits
Begin scaling out at 50%–75%
Full exit
Required at Exhaustion
Stop management
Strong/Medium → above lower high
Declining → tight trailing stop
Hard rule
Cover all shorts if trend flips bullish
🔥 Power Rules (Do NOT break these)
Never open new trades in Exhaustion
Strong = press, Declining = protect
Trend strength dictates size, not conviction
Direction comes from trend, timing comes from price
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.