Strategy Forecast EngineThe Strategy Forecast Engine is a regime-based Monte Carlo forecasting tool that estimates the future return distribution of trend-following strategies across different market environments. The model identifies the current market regime, conditions forecasts on historical returns observed during comparable regimes, and generates thousands of potential future price paths using Monte Carlo simulation. The resulting return distribution is presented through percentile projections and a structured, color-coded table that provides a comprehensive assessment of the forecast.
First, the model identifies the current market regime using the selected trend-following strategy. Users can choose between a moving-average crossover strategy, a volatility-based trailing stop strategy, or a combined strategy that incorporates both approaches. Supported moving-average types include the Exponential Moving Average (EMA), Simple Moving Average (SMA), Wilder’s Moving Average (RMA), and Weighted Moving Average (WMA). Supported volatility types include the Average True Range (ATR), Standard Deviation (SD), and Mean Absolute Deviation (MAD). By default, the model applies an asymmetric design in which conflicting signals default to bullish unless neutral regimes are enabled in the menu. Market regimes are determined as follows:
Bullish Trend Regime = (Fast MA – Slow MA) > (ATR × Trend Margin)
Bearish Trend Regime = (Fast MA – Slow MA) < –(ATR × Trend Margin)
Bullish Volatility Regime = Price > (Highest Price – (Volatility × Stop Factor))
Bearish Volatility Regime = Price < (Lowest Price + (Volatility × Stop Factor))
Bullish Combined Regime = Bullish Trend Regime and Bullish Volatility Regime
Bearish Combined Regime = Bearish Trend Regime and Bearish Volatility Regime
Once the current regime has been identified, the model collects all historical logarithmic returns that occurred during the same regime beginning from the selected start date. Only returns from the matching regime are used to generate the forecast, allowing projections to be conditioned on historically comparable market environments rather than treating all historical observations as equally relevant. If duration-adjusted forecast is enabled in the menu, the model further restricts the sample pool to returns from regimes that were at least as mature as the current regime.
The Monte Carlo simulation engine then generates thousands of possible future price paths over the selected forecast horizon. Each simulation randomly samples historical returns from the sample pool associated with the current regime and compounds them forward to generate a potential future price path. This process is repeated for the specified number of simulations to produce a broad range of possible future outcomes. The random seed controls reproducibility, ensuring that identical settings produce identical forecasts. Once all individual simulations have been completed, the resulting return distribution is summarized using percentile projections:
95% = 5% of simulations ended above this level and 95% ended below it.
75% = 25% of simulations ended above this level and 75% ended below it.
Median = 50% of simulations ended above this level and 50% ended below it.
25% = 25% of simulations ended below this level and 75% ended above it.
5% = 5% of simulations ended below this level and 95% ended above it.
The upper quartile (75%) and lower quartile (25%) define the Interquartile Range (IQR), which contains the middle 50% of all simulated outcomes and represents the central range of the projected outcome distribution. The upper and lower tail percentiles can be set to 10% (90% / 10%), 5% (95% / 5%), or 1% (99% / 1%). The default setting is 5%, which captures the middle 90% of simulated outcomes. At 10%, the range captures 80% of simulated outcomes, while at 1%, the range captures 98% of simulated outcomes. To further evaluate the risk/reward characteristics of the forecast, the model includes a built-in table with the following metrics:
Regime = Current market regime based on the selected strategy configuration.
Duration = Percentile rank of current regime duration relative to past regimes.
Forecast = Percentile rank of current duration including the forecast horizon.
Win Rate = Percentage of profitable simulations relative to total simulations.
Profit Factor = Ratio of total simulated profits to total simulated losses.
Expectancy = Average expected percentage return across all simulations.
Reward/Risk = Ratio of upper quartile return to lower quartile return.
Asymmetry = Ratio of selected upper tail return to selected lower tail return.
Skewness = Ratio of upside potential to downside risk relative to the median.
Sample Size = Number of historical returns available for the current regime.
Frequency = Percentage of historical returns belonging to the current regime.
In summary, the Strategy Forecast Engine is a comprehensive forecasting tool designed to help investors evaluate the return distribution of trend-following strategies based on the current market regime. By combining regime detection with Monte Carlo simulation, the model conditions forecasts on historical returns observed during comparable market regimes to estimate the distribution of potential outcomes and their associated risk/reward characteristics. While the model provides valuable insight into historical return patterns, investors should remain mindful that historical market behavior may not necessarily persist under future market conditions. Indicator

TJR v4 StrategyHere's a short publish description:
TJR PRO — Sweep → BOS→ FVG
An ICT-style strategy built on a single model: price raids liquidity, shifts market structure, then returns to the fair value gap for entry.
The model:
Sweep — a liquidity pool gets raided (PDH/PDL, PWH/PWL, Asia/London/NY session highs & lows, EQH/EQL)
MSS — market structure shifts in the opposite direction (displacement break)
FVG — price retraces into the resulting fair value gap (entry at the edge or 50% / consequent encroachment)
Filters & confluence: ADX chop filter, two-sided raid cooldown, manual news blackout, HTF bias (EMA), SMT divergence, midnight-open alignment, killzone timing — combined into an adjustable confluence score.
Risk: 1% risk-per-trade sizing (or fixed contracts), automatic stop beyond the sweep, target cascade to the nearest unswept pool with a fallback R:R.
Adaptive profiles for scalping (1–5m) and intraday (15m–1H). Includes a live info panel and on-chart trade boxes.
Educational tool — not financial advice. Backtest results do not guarantee future performance.
Strategy

NORN WEAVE | THURISAZ# NORN WEAVE ᚦ THURISAZ
---
### Overview
NORN WEAVE ᚦ THURISAZ is the third version of the NORN WEAVE series, built on URUZ as its foundation.
The core logic is unchanged — EMA slope, Dow Theory swing structure, ADX trend confirmation. What changed is the entry filter. THURISAZ adds one question before every trade: *where are we standing on the daily chart?*
URUZ was built to survive. THURISAZ is built to choose. Bad entries don't just lose money — they consume time, margin, and mental bandwidth. The goal of this version is to stop entering trades that look right on the current timeframe but are wrong on the bigger picture.
The philosophy remains: survival first, profit second. THURISAZ adds a third principle — *don't enter where you shouldn't be standing.*
---
### What's New: Daily Fibonacci Filter
THURISAZ introduces a daily timeframe Fibonacci filter as a structural context layer.
When the current timeframe trend and the daily trend align, the strategy behaves exactly like URUZ — no additional friction.
When they diverge, THURISAZ evaluates *where* price sits within the daily swing range using Fibonacci retracement levels (0.382 and 0.618):
- **Mid zone (0.382–0.618)** — Price is in the middle of the daily range. This is the "landing zone": the most likely area for a pullback to stall and reverse, not complete. Entries are blocked.
- **Shallow zone (below 0.382)** — The pullback is still early. Entry is allowed, but TP1 is adjusted to the 0.382 level rather than the standard ATR-based target. Partial profit is taken before the natural resistance zone.
- **Deep zone (above 0.618)** — Price has retraced significantly. Potential reversal territory. Entry is allowed with standard targets.
The daily swing detection period is independently configurable from the current timeframe's Focus Level, giving finer control over what constitutes a "daily swing."
---
### Entry Conditions
**Long:** EMA rising AND Dow Theory trend up AND ADX above threshold AND Daily Fibo zone allows AND Footprint Delta bullish (if filter enabled)
**Short:** EMA falling AND Dow Theory trend down AND ADX above threshold AND Daily Fibo zone allows AND Footprint Delta bearish (if filter enabled)
---
### Exit Conditions
- TP1 — ATR × Factor × 1 → closes 30% (or Fibo 0.382 if shallow counter-trend entry)
- TP2 — ATR × Factor × 2 → closes another 30%
- TP3 — ATR × Factor × 3 → closes a further 30%
- Stop Loss — fixed % from entry → closes full position
- Break Even Stop — once floating profit reaches the BE trigger %, stop moves to entry price and closes on pullback
- Trend Reversal — when Dow Theory swing flips → closes full position
---
### Focus Level & Auto Calibration
Unchanged from URUZ. Focus Level is the primary knob — adjust it first when applying to a new symbol or timeframe.
Auto Calibration computes ADX threshold, ATR factor, and Stop Loss from the chart's own volatility data. When enabled, no manual tuning is required.
---
### Break Even Stop
Unchanged from URUZ. One parameter: how far price must move from entry before the stop activates. Stop is always placed at entry price.
---
### Footprint Delta Filter *(Premium plan required)*
Unchanged from URUZ. Uses BTC or ETH footprint delta as a directional confirmation filter. Blocks entries when order flow contradicts the trade direction.
---
### Parameters
- **Focus Level** (default 13) — Main knob. Controls swing detection and EMA scaling.
- **EMA Scale Ratio** (default 5) — EMA length = Focus Level × this value.
- **Daily Swing Length** (default 10) — Swing detection period for the daily timeframe. Independent from Focus Level.
- **Show Daily Fibo Zone** (default ON) — Displays the 0.382 and 0.618 levels on the chart for visual reference.
- **Auto Calibration** (default ON) — Computes ADX threshold, ATR factor, and SL automatically.
- **BE Trigger %** (default 5.5%) — How far price must move before the BE stop activates.
- **ATR Factor** — Manual mode only. Default 3.8.
- **Stop Loss %** — Manual mode only. Default -10.0%.
- **ADX Threshold** — Manual mode only. Default 20.5.
- **Footprint SMA Period** (default 21) — Smoothing period for delta signal.
---
### On Overfitting
One of the design principles of the NORN WEAVE series has been to minimize the number of configurable parameters. More parameters means more room to fit historical data — and less reason to trust that the results will hold going forward.
THURISAZ adds one new parameter: Daily Swing Length. That's it.
The Fibonacci levels themselves (0.382 and 0.618) are not parameters — they are fixed, widely recognized structural levels used by traders across markets and timeframes. They were not chosen by optimizing against backtest data.
The Daily Fibonacci Filter was validated across six symbols (SOL, DOGE, ETH, SUI, NEAR, PEPE). Five of the six showed improvement in profit factor and drawdown. The one exception — PEPE — deteriorated, which is the expected behavior: PEPE's explosive, non-structural price action doesn't respect daily swing context the way trend-following instruments do. A filter that improves everything uniformly would be suspicious. This result is not.
The filter works because the idea behind it is sound, not because it was tuned to work.
---
### Visual Guide
- **EMA line** — 3-layer glow. Teal when rising, red when falling.
- **Dow Theory zones** — gradient fill from current swing level to current price.
- **Daily Fibo lines** — gold lines at 0.382 and 0.618 of the daily swing. Shaded zone between them marks where entries are blocked.
- **TP lines** — semi-transparent. TP1 faintest, TP3 most visible.
- **BE Stop line** — gold, appears only when active.
- **Gray background** — ADX below threshold. No entries.
- **Orange background** — Footprint Delta Filter blocking entry, or Daily Fibo mid zone active.
- **Status table** — real-time display of all conditions. Japanese/English toggle included. Daily Fibo status shown as: Same Dir / Mid Zone (blocked) / Shallow (TP adjusted) / Deep (reversal watch).
---
---
### 概要
NORN WEAVE ᚦ THURISAZ は、URUZを土台とした NORN WEAVE シリーズ第3バージョンです。
コアロジックは変わっていません——EMAの傾き・ダウ理論のスイング構造・ADXトレンド確認。変わったのはエントリーフィルターです。THURISAZは、すべてのトレードの前に一つの問いを加えます。*日足でみたとき、今どこに立っているのか?*
URUZは「生き残る」ために設計されました。THURISAZは「選ぶ」ために設計されています。悪いエントリーは資金を失うだけでなく、時間・証拠金・集中力を消費します。このバージョンの目標は、現在足ではシグナルが正しく見えても、大きな地形では立ってはいけない場所へのエントリーを止めることです。
哲学は変わっていません。まず生き残る、利益はその次。THURISAZは三つ目の原則を加えます——*立つべきでない場所には立たない。*
---
### 追加機能:日足フィボフィルター
THURISAZは、相場の地形を把握するための「日足フィボナッチフィルター」を新たに導入しました。
現在足のトレンドと日足のトレンドが同じ方向の場合、ストラテジーはURUZとまったく同じ挙動をします——追加の制約はありません。
方向が逆の場合、THURISAZはフィボナッチリトレースメント水準(0.382・0.618)を使い、日足スイングのどの位置に価格があるかを評価します。
- **中間ゾーン(0.382〜0.618)** — 価格が日足レンジの真ん中にある状態。「踊り場」と呼ぶべき位置で、押し目・戻しが途中で止まって反転する可能性が最も高い。エントリーをブロックします。
- **浅いゾーン(0.382以下)** — 押し目・戻しがまだ浅い段階。エントリーは許可しますが、TP1を通常のATRベースから日足フィボ0.382水準に調整します。自然な抵抗ゾーンの手前で部分利確します。
- **深いゾーン(0.618以上)** — 大きく押し込まれた位置。反転の可能性がある水準として通常通りエントリーします。
日足のスイング検出期間は現在足のフォーカスレベルとは独立して設定できます。
---
### エントリー条件
**ロング:** EMA上向き AND ダウ理論上昇 AND ADXしきい値以上 AND 日足フィボゾーン許可 AND フットプリントデルタ買い優勢(フィルター有効時)
**ショート:** EMA下向き AND ダウ理論下降 AND ADXしきい値以上 AND 日足フィボゾーン許可 AND フットプリントデルタ売り優勢(フィルター有効時)
---
### イグジット条件
- TP1 — ATR×倍率×1 → 30%決済(逆張り・浅いゾーン時はフィボ0.382水準)
- TP2 — ATR×倍率×2 → さらに30%決済
- TP3 — ATR×倍率×3 → さらに30%決済
- ストップロス — エントリーから設定%に達したら全決済
- ブレークイーブンストップ — 含み益がBE発動しきい値%に達したらストップが建値に移動。価格が戻ったら全決済
- トレンド反転 — ダウ理論スイングが逆転した時点で全決済
---
### フォーカスレベルとオートキャリブレーション
URUZから変更なし。フォーカスレベルが主軸ノブです。新しい銘柄・時間足に適用するときはここを最初に調整してください。
オートキャリブレーションをONにすると、ADXしきい値・ATR倍率・SLがチャートのボラティリティデータから自動算出されます。
---
### ブレークイーブンストップ
URUZから変更なし。設定項目は一つ——「何%動いたら発動するか」だけ。ストップ位置は常に建値です。
---
### フットプリント・デルタフィルター *(Premiumプラン以上が必要)*
URUZから変更なし。BTCまたはETHのフットプリントデルタを方向性確認フィルターとして使用します。
---
### パラメーター
- **フォーカスレベル**(デフォルト13)— 主軸ノブ。スイング検出・EMAスケールを制御。
- **EMAスケール倍率**(デフォルト5)— EMA期間 = フォーカスレベル × この値。
- **日足スイング検出期間**(デフォルト10)— 日足フィボ計算に使うスイング検出期間。フォーカスレベルとは独立。
- **日足フィボゾーン表示**(デフォルトON)— 0.382・0.618ラインをチャートに表示。
- **オートキャリブレーション**(デフォルトON)— ADXしきい値・ATR倍率・SLを自動算出。
- **BE発動しきい値%**(デフォルト5.5%)— エントリーからこの%動いたらBEストップが発動。
- **ATR倍率**(手動)— オートキャリブレーションOFF時に有効。デフォルト3.8。
- **損切り%**(手動)— オートキャリブレーションOFF時に有効。デフォルト-10.0%。
- **ADXしきい値**(手動)— オートキャリブレーションOFF時に有効。デフォルト20.5。
- **フットプリントSMA期間**(デフォルト21)— デルタシグナルの平滑化期間。
---
### 過剰最適化について
NORN WEAVE シリーズの設計方針の一つは、パラメーター数をできる限り減らすことでした。パラメーターが増えるほど過去データへの過剰適合が起きやすくなり、将来の結果を信頼する根拠が薄れるからです。
THURISAZで追加したパラメーターは「日足スイング検出期間」の一つだけです。
フィボナッチ水準(0.382・0.618)自体はパラメーターではありません——バックテストデータを最適化して選んだ値ではなく、多くのトレーダーが長年にわたって参照してきた普遍的な構造水準です。
日足フィボフィルターは6銘柄(SOL・DOGE・ETH・SUI・NEAR・PEPE)で検証しました。そのうち5銘柄でPFとDDが改善しました。唯一悪化したのはPEPEですが、これは想定内の結果です——PEPEの急騰急落型の値動きは日足スイング構造を参照するロジックとそもそも相性が悪い。すべての銘柄で一様に改善するフィルターの方が、むしろ過剰最適化を疑うべきです。
このフィルターが機能するのは、チューニングの結果ではなく、背後にある考え方が正しいからだと考えています。
---
### チャートの見方
- **EMAライン** — 3層グロー効果。上向きはティール、下向きはレッド。
- **ダウ理論ゾーン** — 現在のスイングレベルから現在価格へのグラデーション。
- **日足フィボライン** — 日足スイングの0.382・0.618をゴールドラインで表示。その間のシェードが「踊り場ゾーン(エントリーブロック)」。
- **TPライン** — 半透明。TP1が最も薄く、TP3が最も濃い。
- **BEストップライン** — ゴールド。発動中のみ表示。
- **グレー背景** — ADXがしきい値以下。エントリーなし。
- **オレンジ背景** — フットプリントデルタフィルターがブロック中、または日足フィボ踊り場ゾーンが有効。
- **ステータステーブル** — 全条件・パラメーター値をリアルタイム表示。日英切り替え対応。日足フィボの状態は「同方向 / 踊り場(ブロック)/ 浅い(TP調整)/ 深い(反転狙い)」で表示。 Strategy

Supertrend Parameter Sensitivity 3D [LuxAlgo]The Supertrend Parameter Sensitivity 3D indicator is a powerful optimization tool that executes 100 simultaneous Supertrend backtests bar-by-bar to visualize how different ATR Lengths and Multipliers impact performance across various metrics.
By projecting this data onto a 3D surface and a heatmap dashboard, it allows traders to identify "stable" parameter zones and avoid over-optimized "peaks" that may lead to curve-fitting.
🔶 USAGE
This tool is designed to help traders find the most robust settings for the Supertrend indicator on any given timeframe or asset. Instead of manually guessing settings, users can see a holistic view of the parameter space.
🔹 3D Surface Projection
The 3D surface is rendered directly on the chart, where the X-axis represents the Multiplier, the Y-axis represents the ATR Length, and the Z-axis (height) represents the chosen performance metric.
Gold Highlight: Marks the absolute "Best" parameter combination based on the selected metric.
Blue Highlight: Marks the "Stable Area," which is the region where the average performance of a 3x3 parameter window is highest. This helps identify settings that remain profitable even if market conditions shift slightly.
🔹 Optimization Dashboard
The dashboard provides a detailed heatmap of the 100 tested combinations.
Value Distribution: An ASCII histogram at the top shows the distribution of all results, helping you understand if the "best" setting is an outlier or part of a consistent trend.
Heatmap Matrix: Displays the exact values for every combination. Hovering over any cell in the table reveals a tooltip with specific data, including the total number of trades for that combination.
Color Scaling: The colors are normalized relatively. Green represents the best results in the current set, while red represents the worst, allowing for clear visual distinction even if all results are negative or positive.
🔶 DETAILS
🔹 Bar-by-Bar Evaluation
The script manages 100 independent Supertrend states simultaneously. On every bar, it calculates the ATR and trailing stop levels for every combination in the sensitivity matrix. It simulates "Always-in-Market" trades (flipping long/short on direction changes) to track performance data without needing a separate strategy execution.
🔹 Optimization Metrics
Users can choose from 9 different metrics to optimize the 3D surface and Dashboard:
Win Rate: Percentage of trades that resulted in a profit.
Net Profit: Total gross profit minus total gross loss.
Profit Factor: Ratio of gross profit to gross loss.
Total Trades: The raw volume of signals generated.
Average Trade: The mean percentage return per trade.
Reward/Risk Ratio: The average win divided by the average loss.
Gross Profit: Total sum of all winning trades.
Total Wins: The absolute count of profitable trades.
Win/Loss Ratio: The count of wins divided by the count of losses.
🔶 SETTINGS
🔹 Main Indicator
ATR Length: The length used for the primary Supertrend line plotted on the chart.
Multiplier: The multiplier used for the primary Supertrend line plotted on the chart.
🔹 Sensitivity Ranges
Length Start: The starting ATR length for the 10x10 matrix.
Length Step: The increment added to the length for each subsequent row.
Multiplier Start: The starting Multiplier for the 10x10 matrix.
Multiplier Step: The increment added to the multiplier for each subsequent column.
🔹 Optimization
Metric: Selects the performance data used to determine the Z-height of the surface and the colors of the heatmap.
🔹 3D Surface Style
High/Low/Wire/Stable Colors: Customize the visual appearance of the 3D projection.
X/Y/Z Spacing & Scale: Adjusts the physical dimensions and height of the 3D surface on the chart.
🔹 Dashboard
Enable Dashboard: Toggles the visibility of the heatmap table.
Position/Size: Controls where the dashboard appears and how large it is on the screen.
Indicator

Indicator

Shift Structure Cloud [JOAT]Shift Structure Cloud is an open-source Pine Script v6 overlay that converts confirmed swing structure into a clean adaptive trend cloud. It tracks pivot highs and pivot lows, separates continuation breaks from character shifts, and uses the active structure range to build a dynamic average and multi-layer cloud around price.
The problem it solves is structural context. Many trend tools react only to moving averages or oscillator thresholds. This script anchors its visual state to confirmed market structure first, then uses an adaptive cloud to show whether price is trading above, below, or inside the current structural center. The result is a chart layer that can help separate continuation from transition without relying on future bars.
Core Concepts
1. Confirmed Pivot Structure
The script uses ta.pivothigh() and ta.pivotlow() to confirm swing highs and lows. A pivot is only accepted after the configured right-side confirmation window closes, which means the level is delayed by design but does not depend on unconfirmed future plotting.
pivotHigh = ta.pivothigh(high, pivotLeft, pivotRight)
pivotLow = ta.pivotlow(low, pivotLeft, pivotRight)
if not na(pivotHigh)
structureHigh := pivotHigh
2. BOS and CHoCH Logic
The current structure high and low become break reference levels. A bullish break occurs when price closes above the prior structure high. A bearish break occurs when price closes below the prior structure low. If the break happens against the previous side, it is classified as CHoCH; otherwise it is a continuation BOS.
bullBreakRaw = barstate.isconfirmed and not na(priorHigh) and close > priorHigh and priorClose <= priorHigh
bearBreakRaw = barstate.isconfirmed and not na(priorLow) and close < priorLow and priorClose >= priorLow
bullChoCh = bullBreak and trendSide == -1
bearChoCh = bearBreak and trendSide == 1
3. Adaptive Structure Average
Instead of plotting only fixed swing levels, the script calculates the midpoint between the active structure high and low. The midpoint is then smoothed with an adaptive alpha. When price moves far from the structural center, the average becomes more responsive; when price is balanced, it becomes slower.
structureMid = (activeHigh + activeLow) * 0.5
structureDrift = f_clamp(math.abs(close - structureMid) / legSize, 0.0, 1.0)
adaptAlpha = slowAlpha + (fastAlpha - slowAlpha) * structureDrift
structureAverage := structureAverage + adaptAlpha * (structureMid - structureAverage )
4. Multi-Layer Cloud
The cloud is built from ATR-adjusted bands around the adaptive structure average. Inner, middle, and outer layers give a visual read of compression, transition, and extended distance from structure.
5. Strength-Based Candle Coloring
When enabled, candles are repainted with a gradient based on distance from the structure average. The candle color is informational only; it does not change the underlying chart data.
Features
Confirmed BOS and CHoCH detection: Structural events are gated with barstate.isconfirmed
Adaptive structure average: A dynamic centerline based on active swing range and price drift
Layered trend cloud: Inner, middle, and outer ATR bands visualize distance from structure
Structure high and low levels: Current confirmed swing levels can be shown as reference lines
Gradient candle mode: Optional candle coloring by structural distance
Compact dashboard: Shows side, last shift, strength, bars since shift, and active range
Palette presets: Aqua Rose, Neon Desk, Mint Pulse, and VWAP Field
Alert conditions: Separate alerts for bullish BOS, bearish BOS, bullish CHoCH, and bearish CHoCH
Input Parameters
Visual System:
Palette Preset: Selects the bull and bear color pair
Color Candles: Enables structural candle coloring
Dashboard: Shows or hides the top-right dashboard
Pivot Dots: Shows confirmed pivot dots
Structure Engine:
Pivot Left / Pivot Right: Controls swing confirmation sensitivity
Fast Adapt Length: Fast smoothing response for the adaptive average
Slow Adapt Length: Slow smoothing response for balanced conditions
Cloud ATR Length: ATR length used for cloud width
Cloud Width: Multiplier applied to the cloud distance
BOS and CHoCH Marks: Shows structural event markers
Structure Levels: Shows active swing high and low reference lines
How to Use This Indicator
Step 1: Read the Cloud Side
If price is above the adaptive structure average and the cloud is colored bullish, the current structural state favors upside continuation. If price is below and the cloud is bearish, the state favors downside continuation.
Step 2: Watch CHoCH Events
CHoCH labels mark breaks against the previous structural side. They are useful as transition warnings, not automatic entries.
Step 3: Use the Structure Levels
The active high and low lines show where the next confirmed break could occur. These are the levels the script uses for BOS and CHoCH classification.
Step 4: Combine with Your Own Trigger
This script is designed as a structure and context layer. Use it with your own entry model, risk plan, and market selection process.
Indicator Limitations
Pivot levels confirm after the right-side pivot window closes, so they are intentionally delayed
A fast reversal can occur before a new pivot is confirmed
Cloud distance is ATR-based, so very low volatility markets can compress the visual bands
The script classifies structure; it does not predict future price movement
Originality Statement
Shift Structure Cloud combines confirmed BOS/CHoCH logic, an adaptive structure midpoint, ATR cloud geometry, and strength-colored candles in one original Pine v6 implementation. The script is not a pasted source clone. It rebuilds structure analysis from public Pine mechanics and adds a distinct visual model around the current swing range.
Disclaimer
This script is provided for educational and informational use only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss. Signals and structure readings are based on historical chart data and can be wrong in live market conditions. Always use independent analysis and proper risk management.
-Made with passion by jackofalltrades
Indicator

Strategy

Tectonic Regime Protocol [JOAT]Tectonic Regime Protocol
Introduction
Tectonic Regime Protocol is an open-source Pine Script v6 strategy that combines four analytical modules into a single rule-based trading system: a four-state regime classifier, a three-layer trend filter, a six-pillar confluence entry engine, and an adaptive exit module using ATR-based partial take-profit and a regime-adaptive trailing stop.
The strategy is designed for traders who want a fully automated systematic framework to study how regime-gating affects signal quality. Its primary hypothesis is that directional entries made when (1) the market is classified as a trending regime, (2) trend filters across multiple timeframes align, and (3) multiple structural, volume, and momentum inputs agree, produce statistically better outcomes than entries based on any single condition alone.
Strategy Default Properties
Initial capital: $100,000
Order size: 2% of equity per trade
Commission: 0.04% per side
Slippage: 2 ticks
Maximum open positions: 1
These settings represent realistic conditions for a funded discretionary trader using a liquid futures or equity instrument. The 2% equity sizing limits maximum theoretical drawdown from any single trade while providing meaningful position exposure. Commission and slippage values reflect typical institutional-grade execution costs for electronically traded instruments.
Core Concepts
1. Four-State Regime Classifier
The regime module classifies each bar into one of four states using ADX relative to a threshold and the ATR-to-SMA(ATR) ratio: Trend Bull, Trend Bear, Range High-Vol, Range Low-Vol. Only Trend states are eligible for entry. Range classifications suppress all entries regardless of how strong the confluence score is. This is the primary market context filter.
2. Three-Layer Trend Filter
Three independently computed trend conditions must all agree before a long or short entry is considered: close versus VWMA(200) determines whether price is above or below long-term value; the relationship between fast and slow HMA lines determines medium-term momentum direction; and the close versus a 50-period EMA on a higher timeframe provides multi-timeframe context.
3. Six-Pillar Confluence Score
The entry engine scores six market dimensions and requires the composite bull or bear score to exceed 50 of 100 (default, configurable) with a directional lead of at least 8 points above the opposing score. The six pillars are: market structure, OBV slope direction, KAMA position + RSI + WPR composite, swing-low liquidity sweep detection, ATR ratio in productive range, and Fractal Efficiency Ratio above 0.30.
bool longSetup = validRegime and regime == 1 and trendBull
and bull >= confThreshold and (bull - bear) >= confGap
and barstate.isconfirmed
4. Adaptive Exit Module
The exit logic uses partial exits at two take-profit levels. TP1 closes 50% of the position at 1.0× risk distance. TP2 closes the remaining position at 2.0× risk distance. After TP1 is reached, the stop is moved to the entry price (breakeven). The stop before TP1 uses a regime-adaptive ATR trail — the stop multiplier is lower in low-volatility regimes (tighter) and higher in high-volatility regimes (looser). A 30-bar time-based exit closes any remaining position if neither TP nor stop is reached.
5. Non-Repainting Architecture
All entry conditions are evaluated only when barstate.isconfirmed is true. The HTF EMA is requested with lookahead=barmerge.lookahead_off. Pivot-based conditions use confirmed pivot detection with symmetric lookback. No future bar references are used.
Default Settings and Performance Notes
The strategy is published with the default Properties values listed above. Results shown on the publication chart are generated using these exact settings. Commission of 0.04% per side is representative of typical electronic execution on liquid instruments.
Win rate alone does not characterize strategy performance. The strategy is designed around a two-tier partial exit structure targeting positive expectancy (wins × average win greater than losses × average loss) rather than high win rate. The profit factor and average R-multiple are the more relevant metrics for this type of system.
Input Parameters
Regime Module:
ADX Trend Threshold (default: 20)
ATR Ratio High-Vol Threshold (default: 1.2)
Trend Filter:
VWMA Length (default: 200)
Ribbon Fast HMA and Slow HMA lengths
HTF Timeframe for EMA(50) filter (default: 240)
Enable HTF Filter toggle
Confluence Engine:
Min Score (default: 50, range 50–95)
Min Direction Lead (default: 8)
Min FER (default: 0.30)
FER Lookback (default: 14)
Individual pillar weights (Structure, Volume, Momentum, Liquidity, Volatility, FER)
Exit Module:
TP1 RR Multiple (default: 1.0)
TP2 RR Multiple (default: 2.0)
Stop Multiplier for Low / Med / High Volatility Regimes
Max Bars Hold (default: 30)
How to Evaluate This Strategy
Apply it to a liquid instrument with sufficient historical data to generate more than 100 trades. Compare profit factor, Sharpe ratio, average R-multiple, and maximum drawdown — not win rate in isolation. Test it across at least two different instruments or timeframes to assess whether the results reflect genuine structural edge or data-fitting to one specific market.
The strategy is not optimized for any single market. Default parameters are deliberately conservative to avoid overfitting. Users who adjust parameters to improve backtested results should recognize that improvement on historical data does not guarantee improvement on future data.
Strategy Limitations
On lower-timeframe charts with short histories, fewer than 100 trades may result, reducing the statistical reliability of the backtest
The HTF filter uses request.security() with a higher timeframe EMA. In live trading, the HTF value updates when the higher timeframe bar closes, which may differ slightly from live server-side execution
ATR-based stops and targets mean position sizes and outcomes scale with volatility. In abnormally low-volatility environments, commission costs represent a larger proportion of expected gain
The time-based exit at 30 bars may close profitable positions before TP2 is reached in slow-moving markets
Backtested performance on any instrument does not predict future performance. Markets change, and parameters that produced edge historically may not do so in future regimes
Originality Statement
Combining a four-state regime classifier, a three-layer multi-timeframe trend filter, a six-pillar confluence score including Fractal Efficiency Ratio, and a partial-exit adaptive trailing stop system in a single non-repainting open-source strategy is an original integration of methods
The Fractal Efficiency Ratio as a pillar in a multi-factor entry score, and as a required gate condition for entry, is not present in existing open-source Pine Script v6 strategy publications as of this writing
The regime-adaptive stop multiplier — loosening in high-volatility regimes and tightening in low-volatility regimes — is an original stop calibration approach within this strategic framework
The dual entry mode (edge transition OR re-entry when flat with elevated score) increases signal frequency without compromising the fundamental regime and trend filter requirements
Disclaimer
This strategy is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Backtested results are simulated and do not represent real trading. Simulated results have inherent limitations and may not reflect actual trading outcomes due to market impact, execution differences, and changing market conditions. Past backtested performance does not guarantee future results. Trading involves substantial risk of loss. Always conduct independent due diligence and apply proper risk management before using any strategy with real capital. The author accepts no responsibility for trading losses resulting from use of this strategy.
Made with passion by jackofalltrades
Strategy

CRT Reversal PRO@Saheemol + SuperTrend Filter# CRT Reversal PRO + SuperTrend Filter
CRT Reversal PRO + SuperTrend Filter is a price action-based reversal indicator designed to identify high-probability reversal opportunities using the Mother-Daughter candle concept combined with trend confirmation from SuperTrend.
### Key Features
* Detects bullish and bearish liquidity sweep reversals using Mother-Daughter candle formations.
* Filters setups using a configurable Mother Candle body strength requirement.
* Integrates SuperTrend confirmation to trade only in the direction of the prevailing trend.
* Includes 9 EMA and 21 EMA for additional trend analysis.
* Automatically plots:
* Entry level
* Stop Loss (based on Daughter Candle extremes)
* TP1 and TP2 targets using customizable Risk:Reward ratios
* Fully customizable line colors, styles, widths, and lengths.
* Visual BUY and SELL labels for quick trade identification.
* Built-in alert conditions for automated notifications.
### Bullish Setup
A bullish setup is created when price sweeps below the Mother Candle low, closes back inside the Mother Candle range, and later breaks above the Mother Candle high while the SuperTrend remains bullish.
### Bearish Setup
A bearish setup is created when price sweeps above the Mother Candle high, closes back inside the Mother Candle range, and later breaks below the Mother Candle low while the SuperTrend remains bearish.
This indicator is designed for traders who combine price action, liquidity sweeps, and trend-following concepts to identify potential reversal opportunities with predefined risk and reward levels.
### Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial, investment, or trading advice. Trading financial markets involves substantial risk and may not be suitable for all investors. Past performance does not guarantee future results. Always perform your own analysis and risk management before making any trading decisions.
Indicator

Market Breadth Trend StrategyOverview
Many traders focus on major indexes such as the S&P 500 or Nasdaq when evaluating market conditions. While indexes show overall price movement, they do not always reflect how broadly that movement is supported across the market.
Market breadth is a way of studying participation. It can help traders understand whether strength or weakness is concentrated in a small group of stocks or spread across a wider portion of the market.
A market move supported by broad participation may provide different context than a move driven by only a few heavily weighted stocks.
Understanding Market Participation
Market breadth generally refers to the number of securities contributing to a market move.
Examples of breadth-related observations include:
The balance between advancing and declining stocks
The number of stocks reaching new highs or lows
The percentage of stocks trading above key moving averages
These measurements can provide additional perspective alongside price action and trend analysis.
Why Traders Monitor Breadth
Participation Matters
Strong participation may indicate that market activity is occurring across a wider group of stocks rather than being concentrated in a few names.
Additional Context
Breadth can be used as a supplementary tool when evaluating trends, momentum, and overall market conditions.
Market Observation
Some traders monitor breadth metrics to better understand changes in participation over time and how those changes compare with index performance.
Strategy Concept
This script uses a simplified breadth-style proxy derived from the chart's relationship to a long-term moving average.
It is important to note that this script does not use actual exchange-wide market breadth data. Instead, it creates a participation-style filter using price behavior on the current chart.
The strategy combines:
Trend identification using moving averages
A breadth-style participation filter
ATR-based risk management
The objective is to demonstrate how participation concepts can be incorporated into a trend-following framework for research and testing purposes.
Important Notes
This script uses a simplified participation-style filter and is not a substitute for exchange-wide breadth indicators.
Results will vary across symbols, timeframes, and market conditions.
The script is intended for educational, research, and testing purposes.
Disclaimer
This script is provided for educational and research purposes only. It demonstrates one way to combine trend analysis with a breadth-style participation filter. It is not financial advice and should be tested across different symbols, market conditions, and timeframes before being used in any trading workflow.
This version avoids performance claims, avoids implying predictive ability, and clearly explains the limitations of the breadth proxy. Strategy

Inside Candle with EMA +ST +TP/SL@SaheemolInside Candle Breakout with EMA, SuperTrend & Auto TP/SL
This indicator combines the power of the Inside Candle breakout pattern, EMA trend analysis, and SuperTrend confirmation to identify high-probability breakout opportunities while automatically plotting trade management levels.
Key Features
✅ Detects valid Mother-Daughter (Inside Candle) formations using customizable body-size filters.
✅ Plots EMA 9, EMA 21, and EMA 200 to help visualize market trend and structure.
✅ Uses SuperTrend confirmation to filter false breakouts:
Buy signals only when SuperTrend is bullish.
Sell signals only when SuperTrend is bearish.
✅ Automatically identifies breakout levels from the Mother Candle's high and low.
✅ Draws:
Entry zone
Stop Loss (SL)
Take Profit 1 (TP1)
Take Profit 2 (TP2)
using user-configurable Risk ratios.
✅ Highlights Inside Candle setups and displays visual breakout signals directly on the chart.
✅ Includes alert conditions for automated notifications.
How It Works
The indicator searches for a strong Mother Candle followed by a valid Inside Candle.
The Mother Candle's high and low become the breakout levels.
A trade signal is generated only when price breaks out of the Mother Candle range and the SuperTrend agrees with the direction.
TP1, TP2, and SL levels are automatically calculated based on the Mother Candle range.
Best Use Cases
Intraday trading
Swing trading
Breakout strategies
Trend-following systems
Forex, Stocks, Crypto, and Indices
This indicator is designed to help traders quickly identify consolidation breakouts while maintaining disciplined risk management through predefined entry, target, and stop-loss zones.
Disclaimer: This script is for educational and informational purposes only and does not constitute financial advice. Trading involves risk, and users should perform their own analysis and risk management before making any trading decisions. Indicator

Trend Volatility RegimeThe Trend Volatility Regime is an all-in-one trend-following model that identifies changes in the market regime by combining moving-average crossover signals with volatility-adaptive trailing stops. It features an integrated backtesting engine that provides institutional-grade insights into historical strategy performance, along with a built-in alert system that notifies investors in real time when regime changes occur. The model integrates seamlessly into the price chart and presents backtest results in a clear, color-coded table benchmarked against buy-and-hold.
At its core, the model combines two complementary trend detection components to determine the prevailing market regime. The first component identifies the underlying structural trend using a volatility-adjusted moving-average crossover based on the spread between fast and slow moving averages. The second component identifies trend reversals using an adaptive trailing stop based on changes in price and volatility. Bullish and bearish regimes occur when both crossover and volatility signals are directionally aligned, while conflicting signals result in neutral regimes.
Bullish Crossover Signal = (Fast MA – Slow MA) > (ATR × Trend Margin)
Bearish Crossover Signal = (Fast MA – Slow MA) < –(ATR × Trend Margin)
Bullish Volatility Signal = Price > (Highest Price – (Volatility × Stop Factor))
Bearish Volatility Signal = Price < (Lowest Price + (Volatility × Stop Factor))
By default, the model applies an asymmetric regime design in which conflicting signals default to a bullish regime unless half-equity positions are enabled in the menu. This asymmetric design reflects the tendency of risk assets to deteriorate gradually while recovering more abruptly. The moving-average component captures the slower deterioration typically observed during market tops, while the trailing stop component responds more dynamically to faster reversals typically observed at market bottoms. This helps reduce overreaction to corrections during uptrends while still allowing for faster re-entry following sharp recoveries. To evaluate the performance of different parameter configurations, the model includes a built-in table with the following metrics:
CAGR = Compounded Annual Growth Rate.
Excess = CAGR in excess of buy-and-hold.
Sharpe = CAGR per unit of standard deviation.
Sortino = CAGR per unit of downside deviation.
Calmar = CAGR relative to maximum drawdown.
Max DD = Largest peak-to-trough decline in value.
Alpha (α) = Excess annualized risk-adjusted returns.
Win Rate = Ratio of profitable trades to total trades.
Profit Factor = Total gross profit per unit of losses.
Expectancy = Average expected return per trade.
Turnover = Average annualized change in exposure.
This indicator is designed with flexibility in mind, enabling users to specify the start date of the backtesting period, the preferred trend type, volatility type, and regime visualization. Supported regime visualizations include line, candle, and shaded background. Supported moving-average types include the Exponential Moving Average (EMA), Simple Moving Average (SMA), Wilder’s Moving Average (RMA), and Weighted Moving Average (WMA). Supported volatility types include the Average True Range (ATR), Standard Deviation (SD), and Mean Absolute Deviation (MAD). Supported price sources include Close, HL2, HLC3, and OHLC4. The table follows an intuitive color-coded logic that allows for quick performance comparison against buy-and-hold (B&H):
CAGR = Green indicates above 0%, while red indicates below 0%.
Excess = Green indicates above 0%, while red indicates below 0%.
Sharpe = Green indicates better than B&H, while red indicates worse.
Sortino = Green indicates better than B&H, while red indicates worse.
Calmar = Green indicates better than B&H, while red indicates worse.
Max DD = Green indicates better than B&H, while red indicates worse.
Alpha (α) = Green indicates above 0%, while red indicates below 0%.
Win Rate = Green indicates above 50%, while red indicates below 50%.
Profit Factor = Green indicates above 2, while red indicates below 1.
Expectancy = Green indicates above 0%, while red indicates below 0%.
In summary, the Trend Volatility Regime is a comprehensive trend-following tool designed to help investors stay on the right side of the market by identifying key changes in the market regime. By combining volatility-adjusted moving-average crossover signals with adaptive volatility-based trailing stops, the model seeks to maximise participation during uptrends while reducing exposure during sustained downtrends. While the model provides valuable historical insights, users should remain mindful that past results may not necessarily persist under future market conditions. Indicator

Synapse Trail Pro [WillyAlgoTrader]◆ SYNAPSE TRAIL PRO — FREE & OPEN-SOURCE
Synapse Trail Pro is an overlay indicator that fuses a ratcheted ATR trail, a 3-factor market regime engine, a 5-factor signal quality score, and a complete risk-management layer (SL + TP1/TP2/TP3 + automatic break-even) into one decision-support system. Every signal arrives pre-graded (A / B / C), pre-leveled (SL and three targets drawn on the chart), and pre-contextualized (regime, HTF bias, volume, RSI, ATR percentile — all in one dashboard).
The core problem it solves: classic SuperTrend-style trails fire too many signals in choppy markets, and the trader is left guessing which ones to trust. Synapse Trail Pro keeps the clean visual of an ATR trail but scores each signal 0–100 using multi-factor confluence and tells you the market regime in plain language — so you know at a glance whether the chart wants a trend signal taken or skipped.
This is fully free, open-source Pine v6 — no paywall, no invite, no DM required. Use it, study it, adapt it.
🧩 WHY THESE COMPONENTS WORK TOGETHER
A trail line alone tells you direction. A quality score alone tells you confidence. A regime filter alone tells you environment. None of these are useful in isolation — a high-confidence signal in a choppy regime is still a coin flip, and a clean trail flip in a strong trend with no volume confirmation can still fail.
Synapse Trail Pro fuses them into a single pipeline:
ATR Trail (with optional ratchet) → Direction Flip Detection → Regime Score (ADX + Choppiness + R²) → Quality Score (HTF + Volume + RSI + Regime + Break Strength) → Grade A/B/C → Risk Levels (preset SL + TP1/TP2/TP3) → Break-Even after TP1 → Lifecycle Stats
The trail produces the raw signal. The regime engine tells you whether the market is even capable of trending right now. The quality score weighs five independent confluence factors against that regime. The grade compresses the score into a single letter you can act on. The risk layer then drops your SL, three TPs, and break-even logic onto the chart automatically — so the moment the signal fires, you already see the trade plan.
Without the regime engine, you'd take signals in chop. Without the quality score, you'd treat every flip equally. Without the risk levels, you'd still be calculating SL and TPs manually after the signal. Each component covers a blind spot of the others.
🔍 WHAT MAKES IT ORIGINAL
1️⃣ Ratcheted ATR Trail with Adaptive Volatility Multiplier.
The trail center is an EMA (default 21) of close, with bands at ±ATR × multiplier (default base 1.618 — the golden ratio). When the Ratchet option is on (recommended), the lower band only moves up in a long position and the upper band only moves down in a short — never loosens, only tightens. On a direction flip, the band resets to its raw value.
When the Adaptive Volatility Multiplier is on, the base multiplier auto-scales based on the 100-bar ATR percentile rank:
— Low vol (rank < 30) → multiplier × 0.8 (narrower band, catch the move earlier)
— Mid vol (30–70) → multiplier × 1.0 (default)
— High vol (rank > 70) → multiplier × 1.25 (wider band, avoid noise wicks)
Why this matters: a fixed multiplier overreacts in calm markets and gets whipsawed in volatile ones. Percentile-rank scaling keeps the trail behavior consistent across market conditions.
2️⃣ Composite Market Regime Score (0–100) — three-factor blend.
Each bar, three independent measurements vote on whether the market is trending or choppy:
— ADX (weight 40%) : standard Directional Movement ADX, length 14. Score = min(ADX / 50 × 100, 100). High ADX = strong directional pressure.
— Choppiness Index (weight 35%) : ChopIdx = 100 × log10(sum(TR, N) / (highest(high, N) − lowest(low, N))) / log10(N), then inverted to a trend score: chopScore = 100 − ChopIdx. Length 14. Low choppiness = clean directional movement.
— R² Linearity (weight 25%) : R² = correlation(close, bar_index, 50)². Measures how linearly price is moving. R² near 1 = clean trend, R² near 0 = pure noise.
Final regime score = ADX × 0.40 + chopScore × 0.35 + R² × 100 × 0.25.
Thresholds:
— Score ≥ 60 → Trending (green)
— Score < 35 → Choppy (red) — signals flagged with ⚠ or hard-skipped
— Between → Mixed (yellow)
Why three indicators instead of one: ADX measures strength but lags. Choppiness measures range expansion but can spike on news. R² measures linearity but is noisy on short windows. Combined and weighted, they cover each other's failure modes.
3️⃣ 5-Factor Quality Score (0–100) with letter grading.
When a trail-flip signal fires, it's scored on five confluence factors:
— HTF Bias (max 30 points) : higher-timeframe (4× current TF by default) EMA-50 bias. Match = 30, against = 0, HTF data missing or filter off = 15 (neutral credit).
— Volume Confirmation (max 20 points) : volume > 20-bar SMA × 1.3 (configurable). Auto-bypassed and given full credit on volume-less instruments (FX).
— RSI Momentum (max 20 points) : bullish signal needs RSI > 50, bearish needs RSI < 50.
— Regime Score (max 20 points) : regimeScore × 0.20.
— Break Strength (max 10 points) : how far past the band close pierced, capped at 3 × ATR. breakStrength = min(|breakDist| / ATR, 3) / 3 × 100, then × 0.10.
Grades:
— Score ≥ 75 → A (high-quality, all factors aligned)
— Score ≥ 55 → B (acceptable, most factors aligned)
— Score < 55 → C (weak — most factors against, consider skipping)
A "Min Quality Score" input lets you hide everything below a threshold (e.g., set to 55 to show only A and B grades).
4️⃣ Risk Presets with Per-Trade Snapshot Locking.
Four risk presets (plus Custom) auto-set SL × ATR and TP1/TP2/TP3 as R-multiples:
— Conservative : SL 2.5 × ATR, TP 1R / 2R / 4R
— Balanced (default): SL 1.5 × ATR, TP 1R / 2R / 3R
— Aggressive : SL 1.0 × ATR, TP 1.5R / 2.5R / 4R
— Scalping : SL 0.8 × ATR, TP 0.8R / 1.5R / 2R
— Custom : full manual control
Critical detail: SL and TP multipliers are snapshotted at entry . If you change the preset mid-trade, the open position keeps its original levels — and the Avg R statistic stays accurate (each closed trade contributes its own-time R values).
5️⃣ Break-Even Logic with Diagnostic BE-Save Counter.
When Break-Even After TP1 is on (recommended), reaching TP1 automatically moves the stop-loss to entry price. From the next bar onward, any wick at entry stops out at break-even instead of original SL — letting winners run risk-free to TP2/TP3.
A dedicated BE Saves counter on the dashboard tracks wins that closed because BE-stop fired (TP1 reached but TP3 didn't). A high BE-save ratio is a diagnostic signal that your TP3 may be too far — consider tightening.
6️⃣ Same-Bar Hit Guard + Realistic Closure Logic.
Two guards prevent unrealistic results:
— Entry-bar hold : SL/TP hits are ignored on the entry bar itself. A hairpin wick can't instantly stop out a fresh position.
— Same-bar SL+TP1 : if both SL and TP1 are hit on the same bar, the trade closes as a LOSS (conservative — mirrors realistic broker behavior on a single wick).
Closures are routed through a single classifier function so flip-closures, SL-closures, and TP3-closures are all tallied identically.
7️⃣ Flip Detection + Dedicated Flip Alert.
A "flip" is when an opposite signal fires while a position is still active. The old trade is classified and counted (its TP-reached state determines W/L and R-multiple), THEN the new position opens. A dedicated POSITION FLIP alert fires in addition to the new buy/sell alert, with from-direction, to-direction, prior entry, and new entry — useful for closing managed positions externally.
8️⃣ Unified Dashboard with Three Toggleable Sections.
One positioned table with three sections you can switch on/off individually:
— Trade section : Direction (with grade), SL (with BE marker), TP1/TP2/TP3 (with ✓ on hit), Risk % / R:R with unicode gauge, Bars in Trade.
— Market section : Regime (with 0–100 gauge), HTF bias, Volume status, RSI, ATR | Volatility-rank with adaptive multiplier.
— Statistics section : Total signals + grade breakdown (A:N B:N C:N), Buy/Sell split, Closed trades, W/L, Win rate, Avg R-multiple, BE Saves, Flips.
Dynamic section headers carry live context (e.g., "─── Trade · LONG · 23 bars ───") so the divider itself summarizes state.
9️⃣ Three Trail Visual Schemes for Different Aesthetics.
— Adaptive (Bull/Bear) : classic bright green/red — high visibility.
— Premium Indigo (recommended): muted indigo (long) and earth-brown (short) — financial-terminal aesthetic, never competes with green TP lines.
— Monochrome : neutral grey for ultra-minimal charts.
Optional Double Trail Line adds a dashed secondary line offset by a fraction of ATR (configurable 0.05–1.0 × ATR), creating a "channel" visual. The dashed segments are drawn via a ring-buffer of line.new(... line.style_dashed) instead of plot() — this produces PulseWire's native dashed look that plot() can't render natively.
🔟 Theme Auto-Detection + Premium Color Palette.
The indicator detects whether your chart background is dark or light (using color.r(chart.bg_color) < 128) and adapts every palette element accordingly. Theme can also be force-set to Dark or Light. Light-theme variants use deeper, more saturated colors to maintain contrast (e.g., deep crimson SL on white, dark amber for BE).
All label text colors are calibrated for ≥4.5:1 contrast against their background (e.g., dark green text on bright green long labels = 7.8:1 ratio).
1️⃣1️⃣ Webhook-Ready JSON Alerts with Full Payload.
Every buy/sell/flip/SL-hit/TP-hit/BE-activation event can fire as plain text OR structured JSON. The JSON payload includes action, ticker, timeframe, price, SL, TP1/TP2/TP3, R:R, grade, quality score, regime, choppy flag, and flip flag — ready for any webhook automation.
🧠 HOW IT WORKS — STEP BY STEP
Step 1 — ATR + Trail Center: ATR(13) and EMA(21) of close are computed. Raw bands = EMA ± ATR × multiplier (base 1.618).
Step 2 — Adaptive Multiplier (optional): If on, the multiplier scales by 100-bar ATR percentile (×0.8 / ×1.0 / ×1.25).
Step 3 — Ratchet Logic (optional): In a long, the lower band can only move up. In a short, the upper band can only move down. On a direction flip, the band resets to raw.
Step 4 — Direction Flip Detection: Close > prev upper band → direction = 1 (long). Close < prev lower band → direction = −1 (short). A change in direction is the raw signal.
Step 5 — Regime Score: ADX × 0.40 + ChopScore × 0.35 + R² × 100 × 0.25. Trending ≥ 60, Choppy < 35.
Step 6 — Quality Score: HTF (0/15/30) + Volume (0 or 20) + RSI (0 or 20) + Regime × 0.20 + BreakStrength × 0.10. Grade A ≥ 75, B ≥ 55, C < 55.
Step 7 — Filtering: Min Quality threshold, choppy-skip toggle, barstate.isconfirmed gating.
Step 8 — Risk Levels: SL = entry ± ATR × slMult. TP1/TP2/TP3 = entry ± slDistance × tpMult. All snapshotted to the trade.
Step 9 — Lifecycle: On TP1 first-touch → BE activates (SL → entry). On SL or TP3 → trade closes, classified by tp1Reached (WIN if true, LOSS if false), R-multiple credited (1/3 per TP partition), state reset.
Step 10 — Visuals + Alerts: SL/TP lines drawn forward, labels updated on hit (✓ + cyan), alerts fired with full payload, dashboard updated.
📖 HOW TO USE — BEGINNER GUIDE
🎯 Quick start (5 steps):
1. Add Synapse Trail Pro to your chart on any timeframe.
2. Open Settings. Leave defaults for the first session — they are tuned for general use (Balanced preset, Premium Indigo trail, HTF filter on, BE on).
3. Wait for the first signal to fire (▲ Long or ▼ Short marker). The marker shows the grade (A/B/C) and a ⚠ flag if in choppy regime.
4. Read the dashboard (top-right by default). Note the Direction , Grade , Regime , and the SL/TP1/TP2/TP3 levels — these are your full trade plan.
5. Execute the trade in your broker using the SL and TPs from the dashboard. Optionally partition position 1/3 at each TP.
👁️ Reading the chart:
— 🟢 ▲ Long Grade-letter below a bar = Buy signal. Color matches grade quality.
— 🔴 ▼ Short Grade-letter above a bar = Sell signal.
— ⚠ next to the grade = signal fired in choppy regime (be cautious or skip).
— Trail line = current direction context. Indigo = long bias, terracotta = short bias (in Premium scheme).
— Dashed secondary line = soft/hard limit zone, offset by a fraction of ATR.
— ENTRY line (dotted blue) = your entry reference price.
— SL line (solid red) = your stop-loss.
— TP1 / TP2 / TP3 lines (dashed green) = your take-profit targets. Turn solid teal with ✓ on hit.
— Entry → SL (BE) label in amber = break-even is active (TP1 was reached, SL is now at entry).
📊 Dashboard fields (Trade section):
— Direction : LONG / SHORT / FLAT + Grade letter.
— SL : stop-loss price. Shows "BE @" prefix when break-even is active.
— TP1 / TP2 / TP3 : target prices. ✓ prefix once reached.
— Risk / R:R : distance % from entry to SL + current R:R + visual gauge.
— Bars in Trade : how many bars since entry.
📊 Dashboard fields (Market section):
— Regime : Trending / Mixed / Choppy + 0–100 gauge.
— HTF : higher-timeframe bias (Bullish / Bearish / Flat / off).
— Volume : Confirmed / Weak / no data / off.
— RSI : current 14-period RSI value, color-coded.
— ATR | Vol : ATR value, 100-bar volatility percentile, and current adaptive multiplier.
📊 Dashboard fields (Statistics section):
— Signals : total fired + breakdown (A:N B:N C:N).
— Buy / Sell : directional split.
— Closed : total wins + losses (flip, SL, and TP3 closures all counted).
— W / L : wins / losses.
— Win Rate : TP1-reached = WIN. Color-coded ≥ 55% green, ≥ 45% yellow, else red.
— Avg R : average realized R-multiple per closed trade.
— BE Saves : wins that closed because BE-stop fired (diagnostic).
— Flips : trades closed by opposite signal mid-position.
💡 Beginner trading workflow:
1. Start with the Balanced preset and HTF Bias Filter ON .
2. Only take A-grade or B-grade signals — set Min Quality Score to 55.
3. Skip every signal flagged with ⚠ (choppy regime) until you understand the regime engine — or enable Hard-skip Choppy .
4. Use the Premium Indigo trail scheme — the muted colors keep your focus on the SL/TP levels, not the trail itself.
5. Always partition position 1/3 at each TP — that's what the R-multiple math assumes.
6. After 30–50 trades, review the Statistics section: if Avg R is positive, the setup works. If BE Saves > 30% of wins, consider tightening TP3.
🔧 Tuning guide:
— Too many signals: increase Min Quality Score to 75 (A-grade only), enable Hard-skip Choppy.
— Too few signals: lower Min Quality to 0, turn off HTF filter, switch from Balanced to Aggressive preset.
— Stops too tight: switch to Conservative preset (SL 2.5 × ATR).
— Stops too wide: switch to Scalping preset (SL 0.8 × ATR).
— BE stopping you out too often: disable Break-Even After TP1.
— Trail too jumpy: increase Trail EMA Length from 21 to 34, enable Ratchet.
— Trail too sluggish: decrease Trail EMA Length to 13, decrease ATR Length to 8.
— Chart too busy: turn off Double Trail Line and Regime Background, set Trail History Bars to 50.
⚙️ KEY SETTINGS REFERENCE
⚙️ Main Settings:
— ATR Length (default 13): ATR period for volatility band.
— Base ATR Multiplier (default 1.618 — golden ratio): base band width.
— Trail EMA Length (default 21): EMA period for trail center.
— Adaptive Volatility Multiplier (default off): auto-scale multiplier by 100-bar ATR percentile.
— Ratchet Trail (default on): trail only tightens in position direction.
🔍 Signal Filters:
— Min Quality Score (default 0): hide signals below threshold (0 = all, 55 = B+, 75 = A only).
— Hard-skip Choppy Signals (default off): fully suppress signals in choppy regime.
— Use HTF Bias Filter (default on): Quality Score bonus for HTF-aligned signals.
— HTF for Bias (default empty = auto 4×): higher timeframe for bias check.
— Use Volume Confirmation (default off): bonus when volume > 20-SMA × threshold.
— Volume Threshold (default 1.3): volume × SMA20 to count as confirmation.
🌊 Market Regime:
— ADX Length (default 14)
— Choppiness Length (default 14)
— R² Regression Length (default 50)
🛡️ Risk Management:
— Risk Preset (default Balanced): Conservative / Balanced / Aggressive / Scalping / Custom.
— Custom SL × ATR (default 1.5)
— Custom TP1/TP2/TP3 × Risk (default 1.0 / 2.0 / 3.0)
— Break-Even After TP1 (default on): move SL to entry on TP1.
— Show SL/TP Lines / Labels / % Distance : all on by default.
— Entry / SL / TP Line Styles : Dotted / Solid / Dashed defaults.
🎨 Visual:
— Theme (default Auto)
— Trail Color Scheme (default Adaptive Bull/Bear) — try Premium Indigo for a financial-terminal look.
— Trail Line Width (default 2)
— Trail History Bars (default 0 = all)
— Double Trail Line (default on)
— Double Trail Offset × ATR (default 0.25)
— Show Buy/Sell Labels / Grade / Regime Background / Watermark
📊 Dashboard:
— Show Dashboard (default on) — master toggle
— Position (default Top Right) — 6 positions available
— Trade / Market / Statistics Section toggles
🔔 Alerts:
— Webhook JSON Format (default off): plain text or structured JSON.
— Alert on TP Hits (default off)
— Alert on SL Hit (default on)
— Alert on Position Flip (default on)
🔔 ALERTS
— 🟢 BUY — ticker, TF, price, SL, TP1/TP2/TP3, R:R, grade, quality score, regime, choppy flag, flip flag
— 🔴 SELL — same payload
— 🔄 POSITION FLIP — from-direction, to-direction, prior entry, new entry
— 🛑 SL HIT — entry, SL price, time
— 🛡️ BE STOP-OUT — fires instead of regular SL when break-even was active
— 🎯 TP1 / TP2 / TP3 HIT — first-touch only, no duplicate fires
— 🛡️ BREAK-EVEN — fires the bar TP1 is reached and SL moves to entry
All alerts support plain text and JSON webhook format. All fire bar-close confirmed (alert.freq_once_per_bar_close).
⚠️ IMPORTANT NOTES
— 🚫 No repainting. All signals require barstate.isconfirmed. Alerts fire once per bar close. The HTF security() call uses the canonical non-repaint pattern (close + ema with lookahead_on), reading the closed HTF bar without future leakage.
— 📐 The trail flip is the raw signal source; quality score and filters only suppress, never invent signals. Same-bar SL+TP1 always resolves as a LOSS (conservative bias toward stop).
— 📐 Statistics counters are session-scoped — they reset on script reload, input change, or by incrementing the "Reset Stats Counter" input. The Stats section is descriptive, not predictive: past behavior on a chart does not guarantee future behavior on the same chart.
— ⚖️ Win = TP1 reached (regardless of how the trade ultimately closed). Avg R assumes 1/3 position partitioned at each TP. These are conventions; your live execution may differ.
— 🛠️ This is an analysis tool, not an automated trading bot. It detects trail flips, scores quality, projects SL/TP zones, and tracks outcomes — trade decisions and execution remain yours.
— 🌐 Works on all markets and timeframes. Volume-based filters auto-bypass on instruments without volume data (FX). Adaptive multiplier and regime engine scale naturally across symbols.
— 📜 Fully open-source Pine v6. Read the code, fork it, adapt it. Feedback and forks welcome. Indicator

Concordance Execution Model [JOAT]Concordance Execution Model
Introduction
Concordance Execution Model is a strategy framework that integrates regime detection, trend bias, structure direction, pressure, relative volume, regression confidence, and ATR risk management.
This open-source strategy is a research framework, not a performance claim. It demonstrates how rule-based confluence, realistic costs, risk controls, and confirmed-bar execution can be organized in Pine Script v6.
Core Concepts
1. Regime Filter
ALMA, EMA, structure, and regression confidence determine whether long or short entries are allowed.
2. Multi-Factor Entry Gate
Entries require confirmed structure or pullback context plus pressure, RVOL, and cooldown alignment.
3. ATR Risk Model
Stops, targets, trailing stops, structure invalidation, and time stops manage exits.
4. Confirmed-Bar Execution
Entry conditions are evaluated with confirmed bars to reduce repainting behavior.
longEntry = confirmed and regimeBull and pressureBull and rvolOk and cooled
Features
Regime, structure, pressure, and regression filters
ATR stop and target exits
Optional trailing stop
Structure invalidation and time stop exits
Dashboard and candle regime colors
Input Parameters
Structure pivot length and HTF bias
ALMA and regression confidence settings
Delta pressure, RVOL, and cooldown
ATR stop, target, trailing, and time stop
Panel and candle display toggles
Strategy Properties
Initial capital: 100000
Position sizing: 10 percent of equity
Pyramiding: 0
Commission: 0.02 percent
Slippage: 2 ticks
Stops and targets: ATR-based, with optional trailing stop
How to Use This Script
Use this as a transparent research framework. Test on multiple markets and review trade samples rather than relying on a single backtest.
Limitations
The script uses historical OHLCV data and cannot know future prices.
Signals and states can be late during fast reversals because confirmed-bar logic is used to reduce repainting.
Model outputs should be interpreted with market context, risk controls, and independent analysis.
No visual state should be treated as a certain trade outcome.
Originality Statement
Concordance is original in combining several independent model families into a realistic, non-pyramiding execution framework with explicit risk exits.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice, investment advice, or a recommendation to buy or sell any financial instrument. All calculations are derived from historical market data and may produce inaccurate readings in some market conditions. No indicator can predict future market behavior. Use proper risk management and independent judgment.
-Made with passion by jackofalltrades
Strategy

Caldera Meridian Strategy [JOAT]Caldera Meridian Strategy
Introduction
Caldera Meridian Strategy is an open-source Pine Script v6 strategy that combines trend regime, pressure, structure, auction location, and transition probability into a single rules-based execution model. The strategy is designed to be transparent: each decision component is calculated directly inside the script, and entries are processed on confirmed bars.
This strategy is not intended to prove future profitability. It is a research framework for studying how multiple market-context filters interact with ATR-based risk and staged exits.
Core Concepts
1. Regime Filter
The strategy uses fast, mid, and slow EMAs to classify bullish, bearish, or neutral trend conditions. A confirmed higher-timeframe EMA can also be used as a directional filter.
trendBull = fast > mid and mid > slow and close > mid
trendBear = fast < mid and mid < slow and close < mid
2. Transition Probability
A simple rolling transition model estimates whether the current regime has recently persisted. This is used as a filter rather than a prediction.
3. Pressure and Auction Location
The strategy estimates bid/ask pressure from candle body position, range, and volume. It also tracks VWAP-style weighted price and value deviation bands to avoid entries in poor auction locations.
4. Structure Confirmation
Confirmed pivots are used to detect delayed structure breaks, sweeps, and displacement events. Pivot confirmation is non-repainting but naturally delayed.
5. ATR-Based Risk Management
Entries use ATR or structure-based stops. Exits are staged across TP1, TP2, and TP3 using configurable R multiples.
Features
Rules-based long and short logic: Combines trend, pressure, structure, auction, and probability filters
Confirmed-bar execution: Entry and risk-off logic uses closed-bar conditions
ATR and structure stops: Stops use volatility and recent structure references
Three staged exits: TP1, TP2, and TP3 use configurable R multiples and quantity percentages
Realistic default costs: Commission is set to 0.05% and slippage to 1 tick in the strategy declaration
Dashboard: Shows position state, scores, regime, continuation, pressure, auction, and risk-off status
Default Strategy Properties
Initial capital: 100,000
Commission: 0.05 percent
Slippage: 1 tick
Pyramiding: 0
Orders processed on close
How to Use This Strategy
Step 1: Use a clean chart
For publication and testing, use a standard chart type and avoid adding unrelated scripts to the chart.
Step 2: Review the dashboard
The dashboard explains why the strategy is flat, long, short, or in a risk-off state.
Step 3: Evaluate across markets
Do not judge a strategy from a small sample. Test across multiple symbols, timeframes, and market regimes.
Strategy Limitations
Backtest results do not imply future results
Pivot-based structure is confirmed only after the pivot length has passed
Costs and slippage may differ from live trading conditions
The model can underperform in choppy markets where filters repeatedly conflict
The strategy is a research framework and not a complete trading plan
Originality Statement
Caldera Meridian Strategy integrates multiple independent modules rather than relying on a single crossover or oscillator. Its usefulness comes from studying how regime, structure, pressure, auction location, and transition persistence interact before a trade is allowed.
Disclaimer
This strategy is provided for educational and informational purposes only. It is not financial advice. Trading involves risk of loss. Backtests are historical simulations and do not predict future performance. Always use proper risk management.
-Made with passion by jackofalltrades
Strategy

Trend Flow StrategyFrom traditional EMA crosses to Weis Wave volume analysis, RSI reversals, MACD crossovers, Bollinger Band reversion/breakout, SuperTrend flips, Ichimoku breakouts, and a confluence scoring mode that votes across indicators, Trend Flow Strategy is a multi-mode directional trading system that supports 20 different entry styles. Important characteristics:ATR-based trailing stop, take profit, and stop loss A filter for volume confirmation The ADX trend strength filter is optional. VWAP crossover or side filter With complete TV backtest compatibility, the Python optimizer's partial exit is available.It can be used with any instrument and in any time frame. Select the entry technique that best suits your market; adjust the ATR multipliers, enable trailing, and let the strategy take care of the rest.
WARNING:This is for educational and informational purposes only. Not financial advice. Strategy

Helios Institutional Synthesis Strategy [JOAT]Helios Institutional Synthesis Strategy
Introduction
Helios Institutional Synthesis Strategy is an open-source Pine v6 strategy that integrates regime detection, trend bias, VWAP location, premium/discount context, liquidity sweeps, volatility gating, structured ATR stops, target levels, trailing exits, time exits, and visual trade-zone boxes.
The strategy is designed as a realistic testing framework, not a performance promise. It uses confirmed-bar triggers, process-on-close order handling, commission, slippage, risk sizing, and daily risk guard logic. The default settings were made active enough to generate more samples across timeframes while still keeping basic risk controls in place.
Core Concepts
1. Regime and Trend Bias
An adaptive baseline, EMA momentum, DMI/ADX, and volatility score determine whether the market is bullish, bearish, or ranging. Long setups require bullish context, and short setups require bearish context unless other confluence factors compensate.
2. VWAP and Premium/Discount Context
The strategy compares price to session VWAP and to a rolling premium/discount range. This helps distinguish continuation entries from recovery or rejection setups.
3. Liquidity and Retest Triggers
Confirmed sweeps, daily level reclaims/rejections, VWAP bounces, baseline crosses, and channel reclaim/rejection logic can contribute to entries. This creates more than one path into a trade while still requiring a confluence score.
4. Volatility and Risk Gates
The strategy filters by volatility score, ATR percent of price, daily equity guard, and minimum planned R. These controls are included to avoid unbounded entries in abnormal conditions.
5. Structured Exits
Stops use ATR and recent key levels. Targets use ATR multiples. A trailing stop can tighten the exit as price moves, and a max-hold rule can close trades that remain open too long.
Default Strategy Properties
Initial capital: 100000
Commission: 0.01 percent
Slippage: 1 tick
Pyramiding: 0
Orders processed on close: true
calc_on_every_tick: false
Default risk per trade: 1.0 percent
Default minimum confluence score: 4 out of 8
Default cooldown: 4 bars
Default ATR stop multiple: 1.8
Default ATR target multiple: 2.8
Default trailing ATR multiple: 1.35
Default daily equity guard: 3 percent
Features
8-point confluence model: Combines regime, VWAP, premium/discount, momentum, volatility, sweeps, squeeze release, and HTF bias
Confirmed-bar entries: Long and short triggers use barstate.isconfirmed
HTF confirmation: Uses request.security() with lookahead off and previous higher-timeframe values
Risk-based sizing: Calculates quantity from equity, stop distance, and risk percentage
ATR stop and target: Structured stop/target logic with optional trailing behavior
Daily guard: Blocks new trades after a configured intraday equity drawdown threshold
Max-hold exit: Closes positions that exceed the configured bar count
Trade-zone boxes: Shows reward/risk boxes on the chart
Right-side risk rails: Labels active entry, stop, target, and R:R
Dashboard: Shows regime, position, confluence, risk gate, setup, volatility, VWAP sigma, liquidity, HTF bias, PD state, session, day guard, hold bars, stops, and key levels
Input Parameters
Core Engine:
Adaptive Baseline Length
Efficiency Lookback
ATR Length
ADX / DMI Length
Institutional Anchor Length
Confirmation Timeframe
Filters:
Enable Longs and Enable Shorts
Restrict to Session
Min Confluence Score
Cooldown Bars
Volatility score bounds
Risk Controls:
Risk percent per trade
ATR stop, target, and trailing multiples
Minimum planned R multiple
Max ATR percent of price
Daily equity guard percent
Max hold bars
How to Use This Strategy
Step 1: Start with a private draft
Before publishing results, test the strategy privately and verify the chart, settings, and description.
Step 2: Use realistic costs
The script defaults to 0.01 percent commission and 1 tick slippage. Adjust them to match the market being tested.
Step 3: Check sample size
Use enough historical data to evaluate whether the strategy has a meaningful number of trades. Avoid drawing conclusions from a small sample.
Step 4: Review the dashboard
The dashboard shows whether a blocked trade is caused by risk, volatility, session, confluence, or daily guard logic.
Strategy Limitations
Backtests are hypothetical and do not ensure future results
Performance can vary significantly by symbol, session, timeframe, and cost settings
The strategy may trade frequently on lower timeframes; costs and slippage matter
HTF confirmation uses non-lookahead requests, but higher-timeframe context can still evolve while a higher-timeframe bar is unfinished
Risk controls reduce some bad conditions but cannot remove market risk
Originality Statement
Helios Institutional Synthesis Strategy combines adaptive regime detection, VWAP sigma location, premium/discount context, liquidity sweep triggers, squeeze state, higher-timeframe confirmation, risk-based sizing, ATR exits, daily guard logic, time exits, and visual trade-zone mapping in one open-source Pine v6 strategy. Its purpose is to test a multi-factor decision process with transparent components rather than present a black-box signal system.
Disclaimer
This strategy is for educational and informational use only. It is not financial advice, and backtested results do not ensure future performance. Trading involves substantial risk of loss. Always test with realistic commissions, slippage, and position sizing before making any decision.
-Made with passion by jackofalltrades
Strategy

[3Commas] UNI Vault Grid - UNI - Indicator UNI Vault Grid — UNI — Indicator
🔷 What it does:
This indicator is the visual + signal-only companion to the static geometric grid strategy for Uniswap (UNI/USDT). It draws all 57 grid levels on the chart, fires Buy and Sell signals on each close-cross event, tracks a virtual P&L card (simulating what the matching strategy would have done), and ships webhook alerts for routing signals to a connected grid bot. Use it when you want the grid logic running on your chart without strategy.* engine — for visual confirmation, manual entries, or external bot routing.
- 57 geometrically-spaced levels between Low (2.979) and High (4.171) drawn as horizontal lines
- Buy / Sell labels printed at each level on cross events
- Virtual P&L tracker mirrors the strategy version's bookkeeping
- Static range — grid does NOT shift up when price exits the band (trailing-up disabled)
- Webhook-ready alert payload for connected grid bot
🔷 Who is it for:
Traders who want to visualize the grid and signal layer on their chart without running the strategy engine.
Bot operators routing signals from PulseWire alerts to a connected grid bot via webhook.
Discretionary swing traders who want grid levels as decision support while executing manually.
Users comparing live signal flow against backtested behavior of the matching strategy publication.
🔷 How does it work:
Grid Construction: On the first bar, the indicator pre-computes 57 price levels between Low (2.979) and High (4.171) using geometric spacing (≈ 0.61% step). Each level is drawn as a horizontal line — green for the lowest, red for the highest, aqua for the middle levels.
Signal Generation: On every confirmed bar, the indicator checks each level for a close-cross-down (Buy signal) or close-cross-up (Sell signal) against the next level above. A label is printed at the level on each cross. Buy labels are aqua, Sell labels are fuchsia and include the realized virtual P&L.
Virtual P&L Tracker: The indicator maintains its own bookkeeping that mirrors the strategy version — when a Buy level fills, qty is recorded; when the next-up Sell level crosses, the per-level P&L is added to the virtual net. Stats card displays Net P&L, Max Drawdown, Total Fills, Win Rate, and Profit Factor.
Webhook Alerts: A grid_start JSON payload (Bot ID, Email Token, Pair) is fired once when the first bar enters the configured backtest window. This is informational — grid bots are typically configured on the bot interface directly.
🔷 Why it's unique:
Identical grid math to the strategy publication — same 57 levels, same step, same cross-detection logic. The virtual P&L card lets you see live what the strategy version is doing in backtest, but on an indicator pane (no strategy.* engine, no order fills).
Static range fidelity — no trailing-up. The grid stays locked exactly where you configured it, which makes risk envelope easy to reason about before deploying capital.
Brand watermark + stats overlay — consistent visual layer with all other 3Commas Vault Grid publications.
🔷 Considerations Before Using the Indicator:
Market & Timeframe: Calibrated for a 15-minute chart on UNI/USDT spot pairs. The runtime warning label flags any TF other than 15m. Higher TFs produce far fewer fills; lower TFs (1m, 5m) generate more signals but slow chart rendering.
Limitations: The indicator does NOT place orders — it only signals. If you wire the alerts to a grid bot, the bot is responsible for executing entries and exits. The virtual P&L card is an in-indicator simulation only, not a real account P&L. It does not include funding, slippage, or partial fills.
Backtesting & Demo Testing: The strategy version is the canonical reference for realized backtest performance (with commission, slippage, and the strategy engine's order book). This indicator's virtual P&L is a useful estimate but cannot replace the strategy tester report. Demo-trade your bot for at least one month before any live deployment.
Parameter Adjustments: The grid range, level count, and per-level amount should be re-evaluated for each deployment period. UNI's "fair range" shifts over time — a grid calibrated for one regime may not work for the next. The default 2.979 — 4.171 envelope reflects UNI's recent volatility band as of publication.
🔷 INDICATOR SETTINGS
Grid High Price — Upper boundary of the grid range (default 4.171).
Grid Low Price — Lower boundary of the grid range (default 2.979).
Grid Levels — Total number of price levels (default 57).
Grid Mode — Geometric (constant % spacing) or Arithmetic (constant absolute spacing).
Amount per Level (USDT, ref) — Notional per fill (default 175.44) — used for virtual P&L only.
Trailing Up — Disabled by default. Enables adaptive grid behavior on breakout (off keeps grid static).
Trail Up Threshold % — % above High at which trailing fires (only used if Trailing Up enabled).
Shift Up Magnitude % — How much of the current range to shift when trailing-up fires.
Limit by Date Range — Constrain virtual backtest to a specific date window (default Jan 19 — May 19 2026).
Initial Capital (USDT, ref for % calc) — Used to convert virtual P&L into a % figure on the stats card.
Show grid lines on chart — Toggle horizontal level lines (red top, green bottom, aqua middle).
Show fill labels on chart — Toggle Buy / Sell labels printed on each cross.
Show stats card — Toggle the on-chart virtual backtest summary.
Stats card position — Where to anchor the stats card.
Show watermark — Toggle the brand watermark.
Watermark text / position / size / transparency — Controls for the watermark overlay.
Recommended TF (for warning) — Timeframe baseline for runtime warning (default 15m).
Webhook (Grid Bot) — Bot ID, Email Token, Pair label for signal routing.
🔷 ALERTS
grid_start — Fires once when the first bar enters the configured backtest window. Webhook-ready JSON payload with Bot ID, Email Token, and Pair label.
🔷 RELATED PUBLICATIONS
Strategy version (with full Strategy Tester backtest report): [https://www.pulsewire.com/script/Dc5iUh2F-3Commas-UNI-Vault-Grid-UNI-USDT/
👨🏻💻💭 We hope this tool helps enhance your trading. Your feedback is invaluable, so feel free to share any suggestions for improvements or new features you'd like to see implemented.
__
The information and publications within the 3Commas PulseWire account are not meant to be and do not constitute financial, investment, trading, or other types of advice or recommendations supplied or endorsed by 3Commas and any of the parties acting on behalf of 3Commas, including its employees, contractors, ambassadors, etc. Indicator

[3Commas] UNI Vault Grid - UNI/USDT UNI Vault Grid — UNI/USDT
🔷 What it does:
This strategy implements a static geometric grid trading system for Uniswap (UNI), designed to capture range-bound oscillations between a configurable High and Low price boundary. It pre-computes 57 price levels using geometric spacing (≈ 0.61% step), buys at each level on close-cross-down, and sells at the next level up on close-cross-up. Unlike adaptive grid variants with trailing logic, this version stays locked to the original range — no auto-shift up. Profit comes from capturing the spread between adjacent grid lines on every oscillation; the structure is designed for periods where UNI consolidates within a defined band rather than trending strongly in one direction.
- 57 geometrically-spaced levels between Low (2.979) and High (4.171)
- Buy on close-cross-down through an unfilled level; sell on close-cross-up through the next level
- Fixed notional per level (175.44 USDT default), all fills equally sized
- No trailing up — grid stays locked to the configured range
- No stop loss — positions held until matching sell level is hit
🔷 Who is it for:
Swing traders who identify ranging conditions on UNI and want to monetize the oscillations.
Bot operators who automate grid execution through webhook integration with a connected bot.
Spot accumulators with a directional view that UNI will remain inside the configured boundaries during the deployment period.
Risk-conscious participants who prefer predictable accumulation envelopes (capped at full-grid-filled at the Low boundary).
🔷 How does it work:
Long Entry: When close crosses down through an unfilled grid level, the strategy opens a long position sized to the per-level notional amount (default 175.44 USDT). Each level operates independently — multiple buys can stack across the ladder simultaneously during a downward swing, creating a structured accumulation pattern.
Short Entry: Not used — this is a long-only spot grid.
Exit Management: For each filled level, the strategy places a limit exit at the next level up. When close crosses up through that target, the position closes and the level becomes available to buy again. No stop loss is used; the grid's Low boundary defines the structural worst-case accumulation point.
Static range — the grid does NOT shift when price exits the boundary. If price breaks above High, the strategy stops opening new buys until price returns inside the band. If price breaks below Low, all 57 levels are filled and the position holds unrealized loss until either the average is recovered or the user manually closes.
🔷 Why it's unique:
Pure static range design — most grid implementations include trailing-up logic that compromises the original risk envelope when price trends. This variant stays locked to the configured range, which gives a fully predictable worst-case scenario: maximum unrealized loss is bounded by (Current Price − Grid Low) × Total Position at Low. Traders know exactly what they are signing up for before deploying capital.
Calibrated for UNI's DEX-token volatility — the 0.61% step and 57-level ladder are dense enough to capture UNI's higher-frequency intraday oscillations (typical of mid-cap altcoins with active DEX flow) while keeping the configured envelope tight. This contrasts with sparser grids used for majors like ETH/BTC where each step needs to be wider to match the larger absolute moves.
Bot Integration — entry alerts ship with webhook-ready JSON payloads. The grid_start alert fires once on first activation. Bot ID, Email Token, and pair label are exposed as inputs.
🔷 Considerations Before Using the Indicator:
Market & Timeframe: This strategy is calibrated for a 15-minute chart on UNI/USDT spot pairs with active intraday range. Fill density depends directly on how often close crosses grid levels. Higher timeframes (1h+) produce far fewer fills; lower timeframes (1m, 5m) generate more fills but slow backtests on PulseWire's plan limits. The runtime warning label flags any TF other than 15m.
Limitations: No stop loss and no trailing range adjustment. The strategy is structurally exposed to two failure modes:
(1) Price breaks above High — strategy idles, no new fills until reversal back into range
(2) Price breaks below Low — all 57 levels fill, unrealized loss accumulates until average is recovered or position is manually closed
This is the trade-off of a pure static grid: predictable risk envelope, but no adaptive protection against trend breakouts. Pair this strategy with manual range validation and an exit plan before deploying capital.
Backtesting & Demo Testing: Always validate the grid range and step size on historical data for the specific instrument. UNI's volatility profile shifts across DeFi cycles — what was a ranging instrument can become a strong-trend instrument and vice versa, especially around governance events, fee-switch proposals, or DEX-flow rotations. Re-test on your own venue using venue-specific commission and slippage. Demo-trade for at least one month before any live deployment. Past performance is not indicative of future results.
Parameter Adjustments: Commission defaults to 0.10% (Bybit spot taker). Adjust for your venue — Binance Spot ~0.10%, Coinbase Advanced ~0.50%, OKX Spot ~0.08%. The grid range and level count should be re-evaluated for each new deployment period — UNI's "fair range" shifts over time, and a grid calibrated for one regime may not work for the next.
🔷 STRATEGY PROPERTIES
Symbol: BYBIT:UNIUSDT (Uniswap / Tether Spot). Strategy is generic — works on any spot pair with sufficient depth and structural range.
Timeframe: 15m chart (mandatory — strategy is calibrated for this TF).
Test Period: Jan 19, 2026 — May 19, 2026 (≈ 4 months / last 120 days).
Initial Capital: 11,000 USDT (10,000 investment + 1,000 buffer for commission and grid fluctuations).
Order Size per Trade: 175.44 USDT per grid level. Total investment envelope = 10,000 USDT (57 levels × 175.44). Maximum simultaneous position count: 57 levels.
Commission: 0.10% taker — Bybit spot reference; adjust for your venue.
Slippage: 2 ticks — typical taker execution on liquid UNI/USDT pairs.
Margin for Long and Short Positions: 100% (1× leverage assumed; no margin amplification).
Indicator Settings: Default Configuration.
Grid Mode: Geometric
High Price: 4.171
Low Price: 2.979
Levels: 57
Amount per Level: 175.44 USDT
Trailing Up: disabled
Step (computed): ≈ 0.61%
Strategy: Long Only.
🔷 STRATEGY RESULTS
⚠️ Remember, past results do not guarantee future performance.
Net Profit:
Max Drawdown:
Total Closed Trades:
Percent Profitable:
Profit Factor:
Average Trade:
Average # Bars in Trades:
Reference PulseWire Pine backtest on BYBIT:UNIUSDT (15m chart), Jan 19 2026 — May 19 2026 (≈4 months / last 120 days at time of publication). The reference period captures UNI's choppy post-recovery phase, which is structurally favorable for static range grids — the strategy fills repeatedly as price oscillates through the band. Built-in GRID Bot backtest reference (last 120 days): +23.15% net profit / 1,290 trades. The Pine simulation differs slightly from the bot backtester due to fee structure, slippage model, and close-based level-crossing detection vs. exchange-side limit orders. Re-test on your own venue with venue-specific commission before live deployment.
🔷 How to Use It:
🔸 Adjust Settings: Set the grid High and Low boundaries based on UNI's observed range over the past 1–3 months. The default 2.979 — 4.171 envelope reflects UNI's recent volatility band. Amount per level should be sized so that filling the entire ladder (all 57 levels = 10,000 USDT exposure) does not exceed your risk budget. Scale linearly to your equity. Always confirm you are on a 15-minute chart — the runtime warning label flags mismatches.
🔸 Results Review: Verify Maximum Drawdown stays within your personal risk budget. The strategy operates with no stop loss, so the worst-case is the full grid being filled at the Low boundary while price continues lower. Calculate this scenario before going live: if every level fills and price drops 10% below the grid Low, what is your unrealized loss? That is your hard floor. Re-test on your own venue with realistic commission and slippage.
🔸 Create alerts to trigger the connected bot: The strategy exposes a "grid_start" alert that fires once when the first bar enters the configured backtest window. Configure the alert in PulseWire with the webhook URL pointing to your bot's signal endpoint. The Bot ID, Email Token, and Pair label can be set in the script's inputs. Note that grid bots are typically configured directly within the bot interface, so this alert is primarily informational for monitoring purposes.
🔷 INDICATOR SETTINGS
Grid High Price — Upper boundary of the grid range.
Grid Low Price — Lower boundary of the grid range.
Grid Levels — Total number of price levels between Low and High (default 57).
Grid Mode — Distribution of levels: Geometric (constant % spacing) or Arithmetic (constant absolute spacing).
Amount per Level (USDT) — Notional value of each buy fill.
Total Investment (USDT, ref) — Reference total capital deployed across all levels (informational).
Trailing Up — Disabled by default; enable to make grid shift up on breakout (turns this into adaptive grid behavior).
Trail Up Threshold % — Percentage above High at which trailing-up triggers (only used if Trailing Up enabled).
Shift Up Magnitude % — How much of the current range to shift when trailing-up fires (only used if Trailing Up enabled).
Limit by Date Range — Constrain backtest to a specific date window.
Show grid lines on chart — Toggle visual display of all level lines.
Recommended TF (for warning) — Timeframe baseline for the runtime mismatch warning (default 15m).
Stats card / Watermark — Display layer controls for on-chart backtest summary and branding.
Webhook — Bot ID, Email Token, and Pair label for connected bot signal routing.
👨🏻💻💭 We hope this tool helps enhance your trading. Your feedback is invaluable, so feel free to share any suggestions for improvements or new features you'd like to see implemented.
__
The information and publications within the 3Commas PulseWire account are not meant to be and do not constitute financial, investment, trading, or other types of advice or recommendations supplied or endorsed by 3Commas and any of the parties acting on behalf of 3Commas, including its employees, contractors, ambassadors, etc. Strategy

Structure Probability Blocks [JOAT]Structure Probability Blocks
Introduction
Structure Probability Blocks is an open-source market structure and quality-zone overlay. It detects confirmed structure breaks, searches for the most relevant opposing candle, scores the resulting block, and highlights the strongest active block without filling the chart with redundant zones.
The problem it solves is order block clutter. Many zone tools draw every candidate equally. Structure Probability Blocks filters for impulse, candle quality, relative volume, recency, and overlap so the displayed blocks have cleaner context. The enhanced chart layer also projects BOS/CHoCH break rails, impulse guide lines, and compact score labels directly beside the structure event.
Core Concepts
1. Confirmed Pivot Tracking
Swing highs and lows are confirmed using symmetric pivots. Because pivots require bars on both sides, this is intentionally delayed and non-repainting.
2. Break Qualification
A structure break requires price to close through the tracked pivot and meet a minimum ATR-based impulse requirement.
3. Seed Candle Search
After a break, the script searches backward for the best opposing candle candidate. The score considers body quality, wick behavior, volume rank, and recency.
4. Strongest Active Block Highlight
Among active blocks, the highest-scored block receives stronger border and midline treatment. Weaker overlapping blocks can be removed when the overlap guard is enabled.
5. Break Rails and Impulse Guides
When a qualified BOS or CHoCH forms, the indicator can draw a dashed horizontal break rail from the pivot level to the right edge and a dotted impulse guide from the selected seed candle to the break close. The on-chart tag includes score, zone range, drive, RVOL, and break price.
6. Strongest Block Ribbon
The highest-scored active block is also projected as a subtle ribbon using plot/fill logic. This gives a clean strongest-zone read even when several historical boxes remain visible.
Features
Confirmed structure breaks: Breaks require closed-bar confirmation
Quality-scored blocks: Scores combine impulse, candle structure, relative volume, and recency
BOS/CHoCH context: Block labels identify continuation or character-shift context
BOS/CHoCH break rails: Dashed projected levels mark the exact pivot level that price broke
Impulse guide lines: Dotted guides connect the seed candle to the break close
Expanded score tags: Labels show score, zone range, drive, RVOL, and break level
Prime block highlight: Highest active score receives stronger visual emphasis
Strongest block ribbon: Highest active zone is projected as a lightweight filled band
Overlap guard: Keeps the stronger of overlapping active blocks
Prime candle tint: Candles can be softly colored by the strongest active structure bias
Broken block handling: Keep, fade, extend, or remove resolved blocks
Top-right dashboard: Active count, bull/bear count, best score, break state, last pulse, volume rank, and break mode
Alerts: New bullish and bearish quality block events
Input Parameters
Structure:
Pivot Length: Swing confirmation sensitivity
Search Span: Bars searched for a seed candle
Break Impulse: Minimum ATR expansion required for a break
Volume Span: Lookback used for volume rank
Min Score: Minimum block quality score required
How to Use This Indicator
Step 1: Use the dashboard to identify current bull/bear structural bias.
Step 2: Focus on the strongest highlighted active block first.
Step 3: Use the dashed BOS/CHoCH rail as the exact structural break reference.
Step 4: Treat broken/faded blocks as resolved context rather than fresh opportunities.
Step 5: Combine with a regime or pressure tool before making directional decisions.
Indicator Limitations
Pivot confirmation is delayed by the pivot length, which is intentional non-repainting behavior
A high block score does not imply a guaranteed reaction
Volume rank can be less useful on instruments with unreliable volume
The script identifies structural context, not complete risk-defined trades
Originality Statement
Structure Probability Blocks is original in its quality-scored seed selection, impulse qualification, overlap prioritization, prime block highlighting, and compact structural dashboard. It does not copy third-party source code.
Disclaimer
This open-source indicator is provided for educational and informational purposes only. It is not financial advice. Structural zones can fail, and traders should always use independent analysis and proper risk management.
-Made with passion by jackofalltrades
Indicator

Regime Execution Strategy [JOAT]Regime Execution Strategy
Introduction
Regime Execution Strategy is an open-source PulseWire strategy that integrates adaptive forecast context, extreme-channel state, trend pressure, relative volume, and EMA structure into a single rule-based execution model. The strategy is designed to be realistic, non-repainting, and readable rather than curve-fit to one symbol.
The problem it solves is trade filtering. A single signal source can trigger too often in poor conditions. Regime Execution Strategy requires multiple independent votes before entries are allowed, then uses ATR-based stop and target logic for consistent risk framing.
Core Concepts
1. Adaptive Forecast Bias
The strategy estimates a dynamic mean and band structure. Price above or below the adaptive mean contributes to directional bias.
2. Extreme Channel Bias
Persistent upper and lower channel levels define a midpoint and directional state. The channel contributes a second independent vote.
3. Pressure and Structure Gate
Momentum, pullback location, and fast/slow EMA structure contribute to the regime score. A minimum vote count and relative-volume filter are required before entry.
longSignal = barstate.isconfirmed and bullVotes >= voteThreshold and bullRegime and (longBreakout or longReclaim)
4. ATR-Based Risk Management
Stops and targets are derived from ATR and position average price. The strategy also includes max drawdown and max intraday filled order risk controls.
Features
Integrated regime detection: Forecast, channel, pressure, and EMA structure combine into a regime score
Multi-vote entry logic: Entries require several independent components to align
More active defaults: Default RVOL and regime thresholds are permissive enough to participate across many timeframes
ATR stop and target: Risk is framed with volatility-adjusted exits
Bias-flip exits: Positions can close when the opposing regime gains enough votes
Risk controls: Max drawdown and max intraday filled orders are included
Overlay visuals: Forecast bands and adaptive channel context can be displayed on chart
Top-right dashboard: Regime, score, pressure, RVOL, votes, position, band width, and setup
Alerts: Long and short setup events
Input Parameters
Forecast:
Source, Forgetting Factor, Regression Horizon, Band Multiplier, ATR Blend, and Rebase Interval
Regime:
Fast EMA and Slow EMA: Trend structure references
Pressure Length: Momentum and pullback window
Pressure Threshold: Minimum pressure vote threshold
Min RVOL: Participation filter
Min Votes: Minimum number of aligned components for entries
Risk:
Stop ATR: Stop distance multiplier
Target ATR: Target distance multiplier
Max Drawdown %: Strategy risk halt setting
Max Intraday Filled Orders: Limits daily trade frequency
How to Use This Strategy
Step 1: Read the dashboard regime before judging entries.
Step 2: Use votes and pressure to understand why a setup qualified.
Step 3: Review stop and target settings for the symbol and timeframe being tested.
Step 4: Evaluate results across multiple markets and date ranges, not one optimized window.
Strategy Limitations
This strategy is not optimized for a specific symbol or timeframe
More active defaults can increase trade count and also increase exposure to choppy periods
Backtest fills are simulated by PulseWire and may not match live execution
All entry signals use confirmed-bar logic, so entries can occur after the intrabar move has begun
Strategy performance should be evaluated with realistic commission, slippage, and position sizing
Originality Statement
Regime Execution Strategy is original in its integration of adaptive forecast bias, extreme-channel state, pressure voting, relative volume gating, EMA structure, ATR exits, and dashboard reporting into one open-source strategy. It does not copy third-party source code.
Disclaimer
This open-source strategy is for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any instrument. Backtested results do not predict future performance. Trading involves substantial risk, and users are responsible for their own risk management.
-Made with passion by jackofalltrades
Strategy

Concordance Allocation Strategy [JOAT]Concordance Allocation Strategy
Introduction
Concordance Allocation Strategy is an open-source PulseWire strategy that integrates regime detection, directional bias, momentum alignment, value-location filtering, and ATR-based risk management into one non-repainting framework. It is designed to trade only when multiple independent layers agree on bar close.
The problem this strategy solves is isolated signal bias. A single good-looking signal can fail quickly if it appears in the wrong market regime, against the wrong directional structure, or in the wrong part of value. Concordance requires those layers to align before it enters a trade, then manages risk with fixed ATR targets and adaptive exits.
Core Concepts
1. Regime filter
The strategy uses a probability-based trend-versus-range classifier. Trades are only considered when the directional regime is confirmed on a closed bar.
2. Directional bias engine
An ATR-based bias band adapts to noisy conditions and recovery stress so long and short bias are not driven by a simple moving average cross.
3. Momentum confirmation
A centered adaptive stochastic spread must align with the directional side. This prevents entries based on trend context alone.
4. Value-location filter
The strategy requires price to be properly aligned with percentile-derived value rails before entries are allowed. This helps avoid chasing direction in poor location.
5. Structured risk management
Every position uses:
ATR stop loss
ATR take profit
Adaptive trailing behavior once price extends far enough
Context exits when regime or momentum deteriorates
Features
Multi-layer entry filter: Regime, bias, momentum, and value must agree
Bar-close confirmation: Entries are evaluated using confirmed-bar logic
ATR stop loss and take profit: Risk is defined from volatility, not fixed ticks
Adaptive exit behavior: Bias band can tighten once the move extends
No higher-timeframe dependency: Uses current-timeframe calculations only
Institutional dashboard: Shows exposure state, regime, momentum, bias band, and value rails
Non-repainting framework: No future references and no lookahead logic
Input Parameters
Regime Layer:
Return Lookback
Volatility Lookback
Efficiency Length
Regime Learning
Trend Gate
Directional Bias:
ATR Length
ATR Base Multiplier
Avoidance Expansion
Recovery Pull
Noise Threshold ATR
Momentum Layer:
Stochastic Length
Stochastic Smoothing
Price Presmoothing
Adaptive Attenuation
Momentum Spread Gate
Value Layer:
Value Lookback
Lower Rail Percentile
Upper Rail Percentile
Rail Smoothing
Risk Layer:
Stop ATR
Take Profit ATR
Trail Activation ATR
Trail Buffer ATR
How to Use This Strategy
Step 1: Read the regime
The strategy only acts when the directional regime is confirmed. If the regime is rotational, it stands down.
Step 2: Confirm directional bias
The ATR bias band must agree with the side of the trade. This avoids taking long momentum setups under bearish structure or the reverse.
Step 3: Check momentum and value together
Momentum must align with the side and price must be operating in the correct value location. Both filters are required.
Step 4: Review risk settings before use
Stop and target multiples should be adjusted to the market and timeframe being tested. The defaults are intended to be realistic rather than aggressively optimized.
Strategy Limitations
No strategy can eliminate false regime transitions or rapid reversals
Percentile value rails adapt to the sample window and may lag sudden structural changes
The strategy is designed for realism and context alignment, not maximum trade frequency
Originality Statement
Concordance Allocation Strategy is original in how it requires regime confirmation, directional bias, momentum agreement, and value-location agreement before allowing entries. It is published because:
The strategy avoids isolated indicator triggers and instead uses a layered confirmation model
Its risk logic combines fixed ATR objectives with adaptive context exits
The design is intentionally current-timeframe, bar-close confirmed, and non-repainting
Disclaimer
This strategy is provided for educational and informational purposes only. It is not financial advice, and backtest results do not guarantee future performance. Trading involves risk of loss, and any strategy can underperform or fail in changing market conditions. Always evaluate settings carefully and use proper risk management.
Strategy

Tension Flow Trend [BigBeluga] - Historical RRTension Flow Trend is a high-performance trend-following framework that treats price action like a reactive elastic system. By moving beyond static averages, this indicator introduces "Price Tension"—a sophisticated measurement of how overstretched a trend is relative to its baseline—now enhanced with a live Historical RR (Risk:Reward) backtesting engine.
By combining the ultra-low-lag properties of the Hull Moving Average (HMA) with real-time Z-Score volatility analysis, this indicator visualizes not just the direction of the market, but the mathematical "exhaustion" of every move.
🔵 THE ELASTICITY FRAMEWORK
The Ultra-Responsive HMA Baseline: At the heart of the system is a 50-period Hull Moving Average. Specifically engineered to eliminate the lag found in traditional SMAs, the HMA provides a "true north" that reacts instantly to structural shifts without the usual delay.
Price Tension (Z-Score Engine): The indicator measures the vertical distance between price and the HMA, normalizing it using standard deviation. This Z-Score represents the "Tension" of the trend—showing you exactly when the market has deviated too far from its mean.
Dynamic Transparency Feedback: As price enters an extreme Z-Score range, the trend ribbon’s transparency increases. A bright, solid ribbon indicates compressed, high-probability energy, while a fading ribbon warns that the "elastic band" is stretched to its limit.
🔵 PERFORMANCE & RISK INTELLIGENCE
Automated RR Projection: Upon every "START" signal, the script automatically plots dynamic Risk:Reward boxes. It calculates an ATR-based stop loss and projects a take-profit target based on your custom RR ratio, visualizing the trade's path in real-time.
Rolling Performance Tracker: The indicator features a built-in backtester that tracks the win/loss history of the most recent trades. It calculates your Win Rate based on a rolling sample size, allowing you to see how the strategy is performing under current market conditions.
Signal Cooldown Logic: To eliminate "whipsaw" noise, a configurable cooldown engine ensures that signals only trigger during significant structural shifts. This prevents signal clustering in sideways or choppy markets.
🔵 DUAL-DASHBOARD SYSTEM
Energy Monitor (Bottom-Right): Tracks the numerical Z-Score and categorizes the market status. "Strong" indicates healthy momentum, while "Overextended" warns of an imminent mean-reversion risk.
RR Performance Table (Top-Right): Provides an institutional-grade breakdown of your strategy performance, including total Wins, Losses, and the current Win Rate percentage for the specified trade window.
🔵 STRATEGIC APPLICATION
The Momentum Breakout: Look for "START" labels that appear when the HMA slope aligns with a price crossover. These represent the birth of a new trend cycle where tension is low and expansion is likely.
Managing Trend Exhaustion: When the ribbon begins to fade and the Energy Dashboard hits "Overextended," it is time to tighten stops or take partial profits. High tension usually precedes a sharp snap-back to the baseline.
Confirming with Win Rate: Use the Performance Dashboard to gauge market regime. If the rolling Win Rate is high, the market is respecting the trend envelopes; if it drops, the market may be entering a consolidation phase where you should wait for better alignment.
Mean Reversion Targets: For contrarian traders, the HMA baseline serves as a natural "magnet." When price is significantly overextended, look for price to be pulled back into the HMA "Neutral Zone."
Tension Flow Trend transforms your chart into a map of market stress and opportunity. By visualizing the tension behind every candle and providing real-time performance feedback, it ensures you stay on the right side of the trend while trading with professional-grade risk management. Indicator
