PROTECTED SOURCE SCRIPT

地狱5分钟

33
One-Sentence Summary
A 5-minute overlay indicator that fires confirmed buy / sell arrows when
( custom momentum-exhaustion counter OR adaptive cRSI extreme OR StochRSI extreme )
passes a user-defined sensitivity filter and a minimum-bar-distance gate, then auto-audits each signal in real time.
The Three Engines (TD-Free Wording)
A. Adaptive cRSI
Dominant-cycle RSI with auto-generated dynamic upper/lower bands.
Period, vibration and “levelling” are all adjustable.
B. StochRSI
Classic stochastic of RSI with independent length & smoothing controls.
C. Momentum-Exhaustion Counter
Counts consecutive bars where close is consistently higher (or lower) than the close 4 bars ago.
When the count reaches a user-set threshold (default 9) an “exhaustion” flag is raised.
Signal Workflow
Each engine contributes 0 or 1 point to a bull or bear score.
A raw signal candidate appears when total score ≥ 3 × sensitivity.
After the bar closes and the minimum-signal-distance test is passed, the candidate becomes confirmed.
Entry price, bar index, China-time timestamp, score and exhaustion status are logged.
Real-Time Back-Test
Every confirmed signal is stored in a SignalData array.
After backtest_minutes (user-defined) the script checks if price has moved in the signal’s favour and marks the trade win/loss.
Win-rate, streaks, exhaustion-edge and flat-money P&L (fixed bet & payout) are updated instantly.
Results are aggregated by China calendar day (UTC+8) in a DailyStats array.
Visual Output
Shapes
– Green ▲ = normal long Lime ▲ = exhaustion long
– Red ▼ = normal short Orange ▼ = exhaustion short
Price labels show exact entry.
“B” / “S” characters mark exhaustion bars.
Two live tables display overall stats, exhaustion edge, longest streaks, strategy profit and today’s China-time P&L.
Alert Library (TD-Free)
Alerts fire on:
every confirmed signal (exhaustion vs normal)
exhaustion win-rate ≥ 70 %
overall win-rate ≥ 65 %
win/loss streak milestones
daily profit/loss thresholds
Input Groups
cRSI, StochRSI, exhaustion-counter parameters
Signal sensitivity & minimum distance
OB/OS thresholds for both RSIs
Back-test duration, bet size, payout ratio
Toggle for on-chart tables

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.