PROTECTED SOURCE SCRIPT
Prime Trend Reactor

Introduction
Prime Trend Reactor is an advanced crypto trend-following strategy designed to deliver precision entries and exits based on a multi-factor trend consensus system.
It combines price action, adaptive moving averages, momentum oscillators, volume analysis, volatility signals, and higher timeframe trend confirmation into a non-repainting, fully systematic approach.
This strategy is original: it builds a unique trend detection matrix by blending multiple forms of price-derived signals through weighted scoring, rather than simply stacking indicators.
It is not a mashup of public indicators — it is engineered from the ground up using custom formulas and strict non-repainting design.
It is optimized for 1-hour crypto charts but can be used across any asset or timeframe.
⚙️ Core Components
Prime Trend Reactor integrates the following custom components:
1. Moving Averages System
Fast EMA (8), Medium EMA (21), Slow EMA (50), Trend EMA (200).
Detects short-term, medium-term, and long-term trend structures.
EMA alignment is scored as part of the trend consensus system.
2. Momentum Oscillators
RSI (Relative Strength Index) with Smoothing.
RMI (Relative Momentum Index) custom-calculated.
Confirms price momentum behavior aligned with trend.
3. Volume Analysis
CMF (Chaikin Money Flow) for accumulation/distribution pressure.
OBV (On Balance Volume) EMA Cross for volume flow confirmation.
4. Volatility and Price Structure
Vortex Indicator (VI+ and VI-) for trend strength and directional bias.
Mean-Extreme Price Engine blends closing price with extremes (high/low) based on user-defined ratio.
5. Structure Breakout Detection
Detects structure breaks based on highest high/lowest low pivots.
Adds weight to trend strength on fresh breakouts.
6. Higher Timeframe Confirmation (HTF)
Uses higher timeframe EMAs and close to confirm macro-trend direction.
Smartly pulls HTF data with barmerge.lookahead_off to avoid repainting.
🔥 Entry and Exit Logic
Long Entry: Triggered when multi-factor trend consensus turns strongly bullish.
Short Entry: Triggered when consensus flips strongly bearish.
Take Profits (TP1/TP2):
TP1: Partial 50% profit at small target.
TP2: Full 100% close at larger target.
Exit on Trend Reversal:
If trend consensus reverses before hitting TP2, the strategy exits early to protect capital.
TP Hits and Trend Reversals fire real-time webhook-compatible alerts.
🧩 Trend Consensus Matrix (Original Concept)
Instead of relying on a single indicator, Prime Trend Reactor calculates a weighted score using:
EMA Alignment
Momentum Oscillators (RSI + RMI)
Volume Analysis
Volatility (Vortex)
Higher Timeframe Bias
Each component adds a weighted contribution to the final trend strength score.
Only when the weighted score exceeds a user-defined threshold does the system allow entries.
This multi-dimensional scoring system is original and engineered specifically to avoid noisy or lagging traditional signals.
📈 Visualization and Dashboard
Custom EMA Clouds dynamically fill between Fast/Medium EMAs.
Colored Candles show real-time trend direction.
Dynamic Dashboard displays:
Current Position (Long/Short/Flat)
Entry Price
TP1 and TP2 Hit Status
Bars Since Entry
Win Rate (%)
Profit Factor
Current Trend Signal
Consensus Score (%)
🛡️ Non-Repainting Design
All trend calculations are based on current and confirmed past data.
HTF confirmations use barmerge.lookahead_off.
No same-bar entries and exits — enforced logic prevents overlap.
No lookahead bias.
Strict variable handling ensures confirmed-only trend state transitions.
✅ 100% TradingView-approved non-repainting behavior.
📣 Alerts and Webhooks
This strategy includes full TradingView webhook support:
Long/Short Entries
TP1 Hit (Partial Exit)
TP2 Hit (Full Exit)
Exit on Trend Reversal
All alerts use constant-string JSON formatting compliant with TradingView multi-exchange bots:
📜 TradingView Mandatory Disclaimer
This strategy is a tool to assist in market analysis. It does not guarantee profitability. Trading financial markets involves risk. You are solely responsible for your trading decisions. Past performance does not guarantee future results.
Prime Trend Reactor is an advanced crypto trend-following strategy designed to deliver precision entries and exits based on a multi-factor trend consensus system.
It combines price action, adaptive moving averages, momentum oscillators, volume analysis, volatility signals, and higher timeframe trend confirmation into a non-repainting, fully systematic approach.
This strategy is original: it builds a unique trend detection matrix by blending multiple forms of price-derived signals through weighted scoring, rather than simply stacking indicators.
It is not a mashup of public indicators — it is engineered from the ground up using custom formulas and strict non-repainting design.
It is optimized for 1-hour crypto charts but can be used across any asset or timeframe.
⚙️ Core Components
Prime Trend Reactor integrates the following custom components:
1. Moving Averages System
Fast EMA (8), Medium EMA (21), Slow EMA (50), Trend EMA (200).
Detects short-term, medium-term, and long-term trend structures.
EMA alignment is scored as part of the trend consensus system.
2. Momentum Oscillators
RSI (Relative Strength Index) with Smoothing.
RMI (Relative Momentum Index) custom-calculated.
Confirms price momentum behavior aligned with trend.
3. Volume Analysis
CMF (Chaikin Money Flow) for accumulation/distribution pressure.
OBV (On Balance Volume) EMA Cross for volume flow confirmation.
4. Volatility and Price Structure
Vortex Indicator (VI+ and VI-) for trend strength and directional bias.
Mean-Extreme Price Engine blends closing price with extremes (high/low) based on user-defined ratio.
5. Structure Breakout Detection
Detects structure breaks based on highest high/lowest low pivots.
Adds weight to trend strength on fresh breakouts.
6. Higher Timeframe Confirmation (HTF)
Uses higher timeframe EMAs and close to confirm macro-trend direction.
Smartly pulls HTF data with barmerge.lookahead_off to avoid repainting.
🔥 Entry and Exit Logic
Long Entry: Triggered when multi-factor trend consensus turns strongly bullish.
Short Entry: Triggered when consensus flips strongly bearish.
Take Profits (TP1/TP2):
TP1: Partial 50% profit at small target.
TP2: Full 100% close at larger target.
Exit on Trend Reversal:
If trend consensus reverses before hitting TP2, the strategy exits early to protect capital.
TP Hits and Trend Reversals fire real-time webhook-compatible alerts.
🧩 Trend Consensus Matrix (Original Concept)
Instead of relying on a single indicator, Prime Trend Reactor calculates a weighted score using:
EMA Alignment
Momentum Oscillators (RSI + RMI)
Volume Analysis
Volatility (Vortex)
Higher Timeframe Bias
Each component adds a weighted contribution to the final trend strength score.
Only when the weighted score exceeds a user-defined threshold does the system allow entries.
This multi-dimensional scoring system is original and engineered specifically to avoid noisy or lagging traditional signals.
📈 Visualization and Dashboard
Custom EMA Clouds dynamically fill between Fast/Medium EMAs.
Colored Candles show real-time trend direction.
Dynamic Dashboard displays:
Current Position (Long/Short/Flat)
Entry Price
TP1 and TP2 Hit Status
Bars Since Entry
Win Rate (%)
Profit Factor
Current Trend Signal
Consensus Score (%)
🛡️ Non-Repainting Design
All trend calculations are based on current and confirmed past data.
HTF confirmations use barmerge.lookahead_off.
No same-bar entries and exits — enforced logic prevents overlap.
No lookahead bias.
Strict variable handling ensures confirmed-only trend state transitions.
✅ 100% TradingView-approved non-repainting behavior.
📣 Alerts and Webhooks
This strategy includes full TradingView webhook support:
Long/Short Entries
TP1 Hit (Partial Exit)
TP2 Hit (Full Exit)
Exit on Trend Reversal
All alerts use constant-string JSON formatting compliant with TradingView multi-exchange bots:
📜 TradingView Mandatory Disclaimer
This strategy is a tool to assist in market analysis. It does not guarantee profitability. Trading financial markets involves risk. You are solely responsible for your trading decisions. Past performance does not guarantee future results.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
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.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
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.