Profitable Key Levels Trading System (v6 - Full Custom) v.2▲ ALTO (Prezzo)
│
│ <-- Livello Rosa (Debole)
│ ▲ o <-- CERCHIO GIALLO (Rimbalzo con Volumi Alti)
│ ╱ ╲ ╱
│ ╱ ╲ ╱
│ ╱ ▼ ╱
│ ╱ ────────────▼───────────────────── <-- Livello Celeste (Forte!)
│╱ ▲
│ │ <-- FRECCIA VERDE "BUY" (Segnale d'Ingresso)
│
│ ~~~~~~~~~~~~~~~~~ EMA 200 (Filtro Trend Arancione) ~~~~~~~~~~~~~~~~~
│
│ (Sotto la EMA cercheremo solo frecce rosse "SELL", sopra solo frecce verdi "BUY")
│
▼ BASSO (Tempo)
Questo strumento trasforma il tuo grafico da una "foresta di candele confuse" a una mappa operativa chiara, dicendoti dove, quando e in che direzione aprire un'operazione.
1. Trova le "Zone Calde" del Prezzo (I Livelli)
Invece di tracciare linee a caso, l'algoritmo analizza fino a 1000 giorni di storico, raggruppa i punti di inversione più importanti e assegna loro uno Score (punteggio).
Livelli Rosa: Zone di rimbalzo recenti o minori.
Livelli Celesti: Fortezze storiche dove il prezzo ha reagito molte volte.
2. Svela le Tracce delle "Mani Forti" (I Cerchi Gialli)
Un livello grafico è utile, ma diventa potentissimo se sai che è stato difeso con grandi volumi. L'indicatore mette un cerchio colorato (es. giallo) esattamente sulla candela in cui i grandi istituzionali sono entrati al mercato, filtrando via il "rumore" dei piccoli trader.
3. Ti tiene dalla parte giusta del mercato (La Media Mobile)
La media mobile personalizzabile (EMA o SMA) funge da guardiano del trend.
Se il mercato sale (prezzo sopra la linea arancione), l'indicatore ti mostra solo segnali di acquisto.
Se il mercato scende (prezzo sotto la linea arancione), ti mostra solo segnali di vendita.
In questo modo eviti di metterti contro i trend più forti.
4. Ti dà il "Trigger" d'Ingresso (Le Frecce)
Non devi più indovinare il momento esatto. Quando il prezzo tocca un livello chiave, fa un rimbalzo volumetrico (cerchio) e si allinea al trend di fondo, l'indicatore stampa una Freccia Verde (BUY) o una Freccia Rossa (SELL) e ti invia un Alert sul telefono.
🎯 Come usarlo operativamente:
Attendi il segnale: Aspetta che compaia una freccia (es. Verde / BUY).
Imposta la protezione (Stop Loss): Posiziona il tuo stop appena sotto il minimo della candela con la freccia.
Punta al target (Take Profit): Chiudi l'operazione quando il prezzo raggiunge il livello chiave successivo (la linea colorata più vicina).
traduci in inglese: ▲ ALTO (Prezzo)
│
│ <-- Livello Rosa (Debole)
│ ▲ o <-- CERCHIO GIALLO (Rimbalzo con Volumi Alti)
│ ╱ ╲ ╱
│ ╱ ╲ ╱
│ ╱ ▼ ╱
│ ╱ ────────────▼───────────────────── <-- Livello Celeste (Forte!)
│╱ ▲
│ │ <-- FRECCIA VERDE "BUY" (Segnale d'Ingresso)
│
│ ~~~~~~~~~~~~~~~~~ EMA 200 (Filtro Trend Arancione) ~~~~~~~~~~~~~~~~~
│
│ (Sotto la EMA cercheremo solo frecce rosse "SELL", sopra solo frecce verdi "BUY")
│
▼ BASSO (Tempo)
Questo strumento trasforma il tuo grafico da una "foresta di candele confuse" a una mappa operativa chiara, dicendoti dove, quando e in che direzione aprire un'operazione.
1. Trova le "Zone Calde" del Prezzo (I Livelli)
Invece di tracciare linee a caso, l'algoritmo analizza fino a 1000 giorni di storico, raggruppa i punti di inversione più importanti e assegna loro uno Score (punteggio).
Livelli Rosa: Zone di rimbalzo recenti o minori.
Livelli Celesti: Fortezze storiche dove il prezzo ha reagito molte volte.
2. Svela le Tracce delle "Mani Forti" (I Cerchi Gialli)
Un livello grafico è utile, ma diventa potentissimo se sai che è stato difeso con grandi volumi. L'indicatore mette un cerchio colorato (es. giallo) esattamente sulla candela in cui i grandi istituzionali sono entrati al mercato, filtrando via il "rumore" dei piccoli trader.
3. Ti tiene dalla parte giusta del mercato (La Media Mobile)
La media mobile personalizzabile (EMA o SMA) funge da guardiano del trend.
Se il mercato sale (prezzo sopra la linea arancione), l'indicatore ti mostra solo segnali di acquisto.
Se il mercato scende (prezzo sotto la linea arancione), ti mostra solo segnali di vendita.
In questo modo eviti di metterti contro i trend più forti.
4. Ti dà il "Trigger" d'Ingresso (Le Frecce)
Non devi più indovinare il momento esatto. Quando il prezzo tocca un livello chiave, fa un rimbalzo volumetrico (cerchio) e si allinea al trend di fondo, l'indicatore stampa una Freccia Verde (BUY) o una Freccia Rossa (SELL) e ti invia un Alert sul telefono.
🎯 Come usarlo operativamente:
Attendi il segnale: Aspetta che compaia una freccia (es. Verde / BUY).
Imposta la protezione (Stop Loss): Posiziona il tuo stop appena sotto il minimo della candela con la freccia.
Punta al target (Take Profit): Chiudi l'operazione quando il prezzo raggiunge il livello chiave successivo (la linea colorata più vicina). Indikator

Indikator

Forza Relativa - Professional Table v2█ OVERVIEW
Questo indicatore calcola e mostra la Forza Relativa (Relative Strength) di un asset rispetto a un benchmark di riferimento e al suo settore di appartenenza (se applicabile). Tutti i calcoli sono basati su giorni solari reali ("Calendar Days"), garantendo un confronto preciso e uniforme delle performance su diversi archi temporali: 1g, 7g, 30g, 60g, 90g e 180g.
A differenza delle tabelle standard, questa versione è stata interamente ottimizzata per il Tema Scuro (Dark Theme) di TradingView, garantendo una leggibilità nitida e professionale in ogni condizione di mercato.
█ CARATTERISTICHE PRINCIPALI
• Adattabilità Asset & Crypto: Lo script rileva automaticamente la classe di asset sul grafico. Se l'asset è una Criptovaluta, imposta come benchmark predefinito Bitcoin (BTC) o Ethereum (ETH) a scelta dell'utente. Se l'asset è un'Azione o ETF, utilizza lo S&P500 (SPY) come benchmark e attiva la colonna dedicata al "Settore".
• Selezione del Settore: Per il mercato azionario, è possibile selezionare manualmente l'ETF settoriale di riferimento (es. XLK per il Tech, XLF per i Finanziari, ecc.) per monitorare se l'asset sta sovraperformando o sottoperformando il proprio settore di appartenenza.
• Calcolo a Giorni Solari (Calendar Days): Le variazioni percentuali non si basano sul semplice conteggio delle candele del grafico corrente (che variano a seconda del timeframe), ma calcolano l'effettiva variazione temporale indietro nel tempo, rendendo l'indicatore ideale sia su grafici Daily che Intraday.
█ OTTIMIZZAZIONE GRAFICA & NITIDEZZA (DARK THEME)
Per risolvere il classico problema di scarsa leggibilità delle tabelle TradingView su sfondi scuri, sono state introdotte le seguenti migliorie:
1. Contrasto Dinamico: Il testo delle celle utilizza una palette di colori e trasparenze che si adatta allo sfondo per risaltare chiaramente senza affaticare la vista.
2. Palette Colori Soft: Sostituiti i verdi e rossi standard (troppo accesi e fastidiosi su sfondo scuro) con un elegante Verde Smeraldo Soft per i rendimenti positivi e un Rosso Corallo Soft per quelli negativi.
3. Griglia Protetta: La tabella presenta bordi grigio-scuri solidi per separare nettamente i dati e le colonne, rendendo l'interfaccia pulita e moderna.
█ PARAMETRI PERSONALIZZABILI (INPUTS)
• Crypto Benchmark: Consente di scegliere tra BTCUSDT ed ETHUSDT quando si analizzano le criptovalute.
• Dimensione Testo Tabella: Modifica la dimensione della tabella per adattarla a schermi di diverse risoluzioni (Tiny, Small, Normal, Large, Huge).
• Posizione Tabella: Permette di posizionare la griglia in qualsiasi angolo del grafico (es. in basso a destra, in alto a sinistra, ecc.) per non coprire i prezzi.
• Settore Manuale: Consente di selezionare l'ETF settoriale SPDR di riferimento per l'asset azionario sotto analisi.
█ NOTE SUL TIMEFRAME
Dato che l'indicatore analizza performance storiche fino a 180 giorni solari fa, si consiglia di utilizzare timeframe come il Giornaliero (1D) o l'Orario (1H/4H). Su timeframe estremamente ridotti (es. 1 o 5 minuti), TradingView potrebbe non avere abbastanza candele storiche caricate per calcolare i periodi più lunghi, mostrando la dicitura "n/a" (non disponibile).
Relative Strength vs Benchmark & Sector (Dark Theme)
█ OVERVIEW
This indicator measures and displays the Relative Strength (RS) of an asset by comparing its performance against a selected benchmark and, when applicable, its sector benchmark.
All calculations are based on actual Calendar Days rather than a simple bar count, ensuring consistent and accurate performance comparisons across the following periods:
1D, 7D, 30D, 60D, 90D, and 180D
The table has been specifically designed and optimized for the TradingView Dark Theme, providing maximum readability, strong contrast, and a professional appearance under all market conditions.
█ KEY FEATURES
• Automatic Asset Detection
The script automatically identifies the type of asset displayed on the chart:
Cryptocurrencies: uses either Bitcoin (BTC) or Ethereum (ETH) as the benchmark, selectable by the user.
Stocks and ETFs: uses SPY (S&P 500 ETF) as the benchmark and automatically enables the Sector comparison column.
• Sector Comparison
For equities, users can manually select the appropriate SPDR sector ETF (XLK, XLF, XLE, XLV, etc.) to determine whether the stock is:
Outperforming its sector
Underperforming its sector
Moving in line with its sector
• Calendar-Day Performance Calculation
Performance measurements are independent of the chart timeframe.
Instead of relying on the number of bars displayed, percentage changes are calculated using actual calendar days, ensuring consistent results across both Daily and Intraday charts.
█ DARK THEME VISUAL OPTIMIZATION
To improve readability on dark backgrounds, several visual enhancements have been implemented:
1. Dynamic Contrast
Text colors and transparency levels have been carefully tuned to provide excellent visibility while minimizing eye strain.
2. Soft Color Palette
Standard colors have been replaced with more balanced tones:
Soft Emerald Green for positive values
Soft Coral Red for negative values
This creates a cleaner appearance and improves readability during extended analysis sessions.
3. High-Definition Grid
The table uses solid dark-gray borders to clearly separate cells, columns, and headers, resulting in a modern and professional layout.
█ CUSTOMIZABLE INPUTS
• Crypto Benchmark
Select the benchmark used for cryptocurrency analysis:
BTCUSDT
ETHUSDT
• Table Text Size
Adjust the table size to fit different screen resolutions:
Tiny
Small
Normal
Large
Huge
• Table Position
Place the table anywhere on the chart:
Top Left
Top Right
Bottom Left
Bottom Right
• Manual Sector Selection
Choose the SPDR sector ETF used as the sector benchmark for relative performance analysis.
█ DATA INTERPRETATION
Positive values indicate that the asset is outperforming its benchmark or sector.
Negative values indicate underperformance, signaling weaker relative strength compared to the benchmark or sector being analyzed.
█ TIMEFRAME NOTES
Since the indicator analyzes historical performance up to 180 calendar days, the following timeframes are recommended:
1D
4H
1H
On very low timeframes (such as 1-minute or 5-minute charts), TradingView may not have enough historical bars loaded to calculate the longest lookback periods. In these cases, some cells may display "n/a" (data not available).
Ideal for quickly identifying assets that are demonstrating superior relative strength versus both the broader market and their respective sector, regardless of the chart timeframe being used.
Indikator

Indikator

ATK/DEF KDJ Rewind ContextRewind KDJ Context is a visual KDJ analysis indicator designed to provide a clearer understanding of momentum structure through the relationship between the K, D, and J lines.
Traditional KDJ analysis often focuses on fixed overbough and oversol levels. This indicator expands the interpretation by analyzing the interaction between KDJ components, including line arrangement, directional changes, momentum development, and structural transitions.
The script transforms KDJ movement into different context states, helping users observe how momentum conditions develop, slow down, weaken, and recover over time.
Instead of treating K, D, and J as isolated values, Rewind KDJ Context focuses on the relationship between the three components and presents their current condition through a structured visual approach.
KDJ Context Framework
▶️ Momentum Push
Identifies conditions where K, D, and J show coordinated upward momentum development.
This context represents a phase where KDJ structure is aligned with increasing momentum activity and stronger directional movement.
⏸️ Momentum Pause
Highlights situations where momentum remains active but begins to slow or entr a temporary balance condition.
This state focuses on changes in momentum speed and the relationship between K, D, and J during a slowing phase.
⏪ Reversal Context
Highlights changes in KDJ structure where J-line movement and the relationship between K and D indicate a possible transition in short-term momentum conditions.
This context focuses on structural changes rather than predicting future pric direction.
⬇️ Weakness Context
Displays conditions where KDJ structure shows reduced momentum strength and weaker directional movement.
This state helps visualize when previous momentum conditions begin losing strength.
🔄 Recovery Context
Highlights situations where KDJ structure begins improving after a weaker phase.
This context observes changes in J-line behavior and KDJ alignment during potential momentum recovery conditions.
⚪ Neutral Context
Represents situations where K, D, and J do not form a strong directional structure and momentum remains relatively balanced.
Main Features
• Customizable KDJ calculation parameters
• Dynamic K, D, and J value visualization
• KDJ line relationship and structure analysis
• Momentum context classification
• Historical context table display
• Recent bar comparison
• Visual markers for important KDJ transitions
• KDJ arrangement monitoring
• Adjustable display range and historical reference position
How It Works
Rewind KDJ Context uses the traditional KDJ calculation method based on RSV, followed by smoothing calculations for the K and D lines.
The J line is derived from the relationship between K and D:
• K line represents the smoothed RSV movement
• D line represents the smoothed K line movement
• J line represents an extended momentum relationship between K and D
The indicator evaluates several aspects of KDJ behavior, including:
• Relative position between K, D, and J
• Directional movement of each component
• Changes in momentum expansion and contraction
• KDJ structural transitions
• Recent historical context
These calculations are organized into visual context states to make KDJ behavior easier to interpret.
Intended Use
Rewind KDJ Context is designed as a technical analysis tool for observing momentum conditions and KDJ structure.
It can be used together with price action analysis, trend evaluation, support and resistance analysis, volatility analysis, and other technical methods to build a broader market view.
The indicator is intended to provide additional context about momentum behavior rather than replace complete market analysis.
Notes
Rewind KDJ Context is based on mathemat calculations derived from historical pric data.
The displayed context states represent current and historical KDJ conditions based on the selected settings and market data available on the chart.
Different assets, timeframes, and market environments may produce different interpretations of the same indicator behavior.
Disclaimer
Rewind KDJ Context is provided for informational and technical analysis purposes only.
This indicator does not provide finacl advice, personalized recommendations, autm trading decisions, or guaranteed results.
The displayed KDJ context states, momentum conditions, and visual markers are generated from mathematical calculations and should not be interpreted as predictions of future pric movements.
Users are responsible for conducting their own analysis, making their own decisions, and applying appropriate risk management methods.
Past market behavior and technical indicator performance do not guaran future outcomes. Indikator

Premium/Discount ML Zones [PickMyTrade]What does it do?
Builds a Premium / Equilibrium / Discount map from a higher-timeframe dealing range, then runs an online logistic regression over every price level inside that map to detect the exact band where the model currently reads a directional edge. Because the range is read from one anchor timeframe, the zones sit at the same prices whether you view the 5m, 1h or Daily chart.
────────────────────────────────────
The intellectual problem
Premium/Discount is a location framework: above the 50% equilibrium of a dealing range price is expensive, below it price is cheap. Two problems show up the moment you try to automate it.
First — the range is usually drawn on whatever chart you are looking at. A 5-minute chart finds 5-minute swings, so it anchors to a micro-range that may be a few points wide. The Daily chart finds a range a hundred times larger. The same price is then simultaneously "premium" on one timeframe and "discount" on another, and the label stops meaning anything. The conventional discipline is to define the range on a higher timeframe and drop down only to execute — never to redraw the range on the execution chart.
Second — location alone is not an edge. Knowing price is in the lower half of a range tells you it is cheap relative to that range. It does not tell you whether cheapness is currently being rewarded. In a strong downtrend every discount print keeps getting cheaper. Location is a filter; something else has to decide whether the location is worth acting on.
This indicator separates those two jobs. The dealing range and its three zones are the map , anchored once on a higher timeframe. A logistic regression trained on the chart's own history is the decision , and it is what marks the actionable band inside the map.
────────────────────────────────────
How the dealing range is anchored
The range is built from confirmed swing highs and lows read from the Dealing Range Timeframe (default Daily) via request.security(..., lookahead=barmerge.lookahead_off) . Each side re-anchors to its most recent confirmed swing, with guards that keep the pair coherent:
if not na(ph) and (na(swingLow) or ph > swingLow) swingHigh := ph if not na(pl) and (na(swingHigh) or pl < swingHigh) swingLow := pl
Those guards are what make the range track the current leg rather than a fixed lookback window. In an uptrend each new higher low pulls the low side up with price, instead of leaving equilibrium pinned to an ancient low that price has long since left behind.
From that range:
Equilibrium — the exact 50% midpoint, (rangeHigh + rangeLow) / 2 Equilibrium band — a neutral fair-value zone of ± Equilibrium Band × range around the midpoint (default ±10%, i.e. the middle 20%). No signals fire inside it. Premium — everything above the band. Discount — everything below it.
Break of structure — when price closes beyond the anchored range, the old range is stale until a new swing confirms. A bearish BOS blocks longs and a bullish BOS blocks shorts, so the model does not fade a breakout while waiting for the range to re-anchor.
────────────────────────────────────
How the logistic regression works
Step 1 — Three z-score normalised features
All three are standardised over the Z-Score Window (default 50) so the model is scale-invariant across instruments and timeframes.
F1 — Position in range : where the close sits between the range low and high, clamped to 0–1. This is the premium/discount coordinate itself. F2 — Dwell time : a rolling time-at-price measure — the fraction of the last N bars that closed within one price band of the current close. High dwell means price has spent real time here; a level touched once in a spike scores low. F3 — Momentum : rate of change over the momentum length, normalised. Distinguishes a discount that is stabilising from one that is still falling.
Step 2 — Online gradient descent with L2 regularization
There is no fixed training window and no retraining pass. Each confirmed bar is labelled from its forward return over the Label Horizon, and the weights take one gradient step per bar, always evaluated on the previous bar's features so no current-bar information leaks into the update:
_pred = f_sigmoid(w0 + w1f1 + w2f2 + w3*f3 ) _label = label_bull ? 1.0 : 0.0 _err = _label - _pred w1 := w1 + i_learn_rate * (_err * f1 - i_l2_lambda * w1)
The - i_l2_lambda * w1 term is weight decay: it pulls weights back toward zero each step, which stops any single feature from running away to an extreme value on a stretch of trending data. The bias term w0 is deliberately left unregularized — it carries the base rate, not a feature relationship.
Step 3 — Posterior
post_bull = f_sigmoid(w0 + w1f1 + w2f2 + w3*f3) post_bear = 1.0 - post_bull
Step 4 — The ML entry zone (what the model detects)
This is the part that does the work. Rather than only scoring the bar in front of it, the model scores every price level inside the discount half and the premium half — sweeping the position feature across the zone while holding dwell and momentum at their current values — and marks the contiguous band where its probability clears the Entry Threshold:
for j = 0 to i_nbins float p = rangeLow + (eq_bot - rangeLow) * j / i_nbins float f1p = ((p - rangeLow) / range_size - pos_mean) / pos_std float pbup = f_sigmoid(base + w1 * f1p) if pbup >= i_posterior_thresh ml_long_lo := na(ml_long_lo) ? p : math.min(ml_long_lo, p) ml_long_hi := na(ml_long_hi) ? p : math.max(ml_long_hi, p)
That band is the ML Buy / Sell Zone drawn on the chart. It is the exact price range in which a signal would fire right now — visible before price arrives there. Its thickness is meaningful: a thin band means only a sliver of the zone clears the threshold, a thick band means the model reads an edge across most of the zone. When nothing clears the threshold, the band disappears entirely rather than showing a level the model does not support.
────────────────────────────────────
Reading the indicator
PREMIUM box (orange) — upper region of the HTF range. Shorts are considered here only. EQUILIBRIUM box (grey) — the fair-value band around the 50% midpoint. Nothing fires here by design. DISCOUNT box (blue) — lower region. Longs are considered here only. ML BUY / SELL ZONE (bright band) — the model-detected band inside the discount/premium region, labelled with the peak probability found in that band. ● circle (blue) — high-conviction long: P(Bull) ≥ 0.85. ▲ triangle (blue) — standard long: P(Bull) ≥ threshold. ● circle (orange) — high-conviction short: P(Bear) ≥ 0.85. ▼ triangle (orange) — standard short: P(Bear) ≥ threshold. Dashed equilibrium line — the exact 50% midpoint. Dashed SL / TP lines — reference levels from the range extreme at ATR × multiplier and the Risk:Reward ratio.
Only the first bar of each signal cluster fires — if conditions stay true for several bars, only the transition bar is marked.
Info table (top-right)
● LIVE (green) — the model has taken ≥ Training Samples Needed gradient steps. ● WARMUP (yellow) — still accumulating; signals suppressed. Zone — Premium / Equilibrium / Discount, or BOS ↑ / BOS ↓ (yellow) when price has broken the range. P(Bull) / P(Bear) — live posterior at the current bar. N Trained — total gradient updates taken.
────────────────────────────────────
Inputs
Dealing Range Dealing Range Timeframe — whose swings define the map (default D). Set it equal to or higher than your execution chart. This is the input that makes the zones identical across timeframes. Swing Left / Right Bars — swing definition on the anchor timeframe (default 3/3). Right Bars is the confirmation delay: the range re-anchors that many anchor-timeframe bars after a swing forms. Equilibrium Band — half-width of the neutral zone as a fraction of range (default 0.10). Set 0 to collapse it to a single line.
Dwell-Time Feature Scan / Dwell Bands (default 20) — price resolution for the entry-zone scan and the dwell band width. Dwell Lookback (default 50).
Logistic Regression Training Samples Needed — gradient updates before signals activate (default 80). Entry Threshold — minimum probability to fire a signal and to light the ML zone (default 0.65). Learning Rate — gradient step size (default 0.05). Higher adapts faster but noisier. L2 Regularization — weight decay (default 0.001). 0 disables it. Label Horizon (default 5), Momentum Length (default 14), Z-Score Window (default 50).
Signal Levels Show SL/TP Lines, ATR Period, SL ATR Buffer (default 1.2), Risk:Reward (default 1.8).
Visual / Display Show Premium/Discount Map, Show ML Entry Zone, Zone Left Extent / Forward Extend, Show Equilibrium Line, Regime Background, zone colours. Zen Mode — hides SL/TP lines and the table; map and ML zone remain.
────────────────────────────────────
Three alerts included
PD ML - Long — discount long fired PD ML - Short — premium short fired PD ML - Any Signal — either direction
────────────────────────────────────
Technical notes
Swing detection on the anchor timeframe needs Swing Right Bars of that timeframe to confirm. With the Daily default that is a three-day confirmation delay before the range re-anchors. This is inherent to non-repainting swing detection, not a tunable away. request.security uses lookahead_off , so historical bars use only confirmed anchor-timeframe values. The developing anchor bar updates in real time, which is expected behaviour for a live higher-timeframe reference. The dwell feature counts closes within one band of the current close over the lookback — a bar-based proxy for time-at-price. It does not use tick or volume-profile data. The entry-zone scan holds dwell and momentum fixed while sweeping position. It answers "if price were at level X, with today's momentum and dwell, what would the model read?" — a counterfactual across location, not a forecast of the path. Logistic regression assumes a monotonic relationship between each feature and the log-odds. Real price behaviour is not always monotonic in position-within-range; the model captures the dominant direction of that relationship, not its curvature.
────────────────────────────────────
Requirements and limitations
The model needs Training Samples Needed gradient steps before signals activate; on short-history charts the table shows WARMUP and nothing fires. Weights are learned per chart and per timeframe — switching symbol or timeframe restarts the learning from zero.
Probabilities are the model's read of patterns in its own training history. They are not a probability of profit, and patterns that historically preceded a directional move may not repeat.
The equilibrium band is deliberately dead space. If you want signals nearer the midpoint, reduce the band toward 0 — but the closer to fair value you trade, the less the premium/discount premise is contributing.
If the Dealing Range Timeframe is left blank or set below your chart's timeframe, the range is computed on the chart timeframe and the cross-timeframe consistency is lost. That is the failure mode this indicator exists to avoid.
The three zones describe location within one dealing range. They carry no information about ranges above them — a Daily discount can sit inside a Weekly premium.
────────────────────────────────────
Risk disclosure
Nothing here forecasts price. The zones describe where price sits inside a measured range; the classifier reports what its training history associates with that location. Use with your own position sizing and risk management. Not financial advice.
Built natively in Pine Script® v6. Online logistic regression trained by per-bar gradient descent with L2 weight decay, a rolling dwell-time feature, and a higher-timeframe swing-anchored dealing range. No external libraries, no data feeds.
Open source — Mozilla Public License 2.0. Indikator

Indikator

Indikator

Indikator

Strategie

Indikator

Indikator

Indikator

Forex Sessions Trackerwww.tradingview.com
Forex Sessions Tracker is a professional and fully customizable TradingView indicator designed to automatically highlight the most important Forex trading sessions directly on the chart, including the Asia Session, London Session, New York Session, and London Close Session. The indicator draws dynamic boxes that expand in real time as price moves, continuously updating the session high and low so traders can easily visualize volatility, liquidity, and key market reactions during each trading period. A customizable timezone option allows the sessions to match any broker or trading preference, while individual session controls make it possible to show or hide specific sessions according to your strategy. The script also includes optional session labels, adjustable border width, custom colors for each session, and a professional glowing box effect that improves visibility without cluttering the chart. Historical session management keeps only the most recent sessions visible, helping maintain a clean workspace while preserving important market structure. This tool is especially useful for Forex, Gold (XAUUSD), and index traders who rely on session-based analysis, breakout trading, liquidity sweeps, ICT concepts, or intraday price action strategies. By clearly separating the major market sessions, Forex Sessions Tracker helps traders identify when liquidity enters the market, monitor session highs and lows, and focus on the periods where significant price movement is most likely to occur. The indicator is intended as a visual market-session tracking tool and works best when combined with your own trading strategy, risk management, and price action analysis.
For more Expert Signals, Market updates & Analysis 👇👇👇
www.tradingview.com Indikator

Calculateur de Lot InteractifBy Yassine
Maximize your trading discipline and eliminate manual math with this professional-grade, interactive risk calculator built entirely in Pine Script v6.
Stop over-leveraging or guessing your lot sizes. With just two clicks directly on your chart, this indicator instantly calculates your exact position size, projects partial take profits, factors in broker commissions, and runs real-time margin diagnostics.
Key Features
🎯 100% Interactive (2-Click Setup): Simply click your Entry Price (EP) and Stop Loss (SL) directly on the screen. Drag the anchor points to adjust your trade in real-time.
📊 Multi-Asset Smart Detection: Automatically detects whether you are trading Forex (Lots), Gold / XAUUSD (Standard MT contracts), Indices/CFDs (Contracts), or Crypto/Stocks (Units), applying the exact contract specifications for flawless math.
💸 Smart Commission Deduction: Enter your broker's commission per lot, and the script automatically downscales your position size. This ensures your maximum loss (SL + Fees) remains strictly at your defined risk percentage (e.g., exactly $500 on a $50k account).
📈 Multi-Stage Take Profits (TP1 & TP2): * TP1: Set a custom RR ratio (e.g., 1:1) and define the % of the position you want to close (e.g., 50% to secure the trade).
TP2: Define your final target.
The dashboard calculates the exact price levels and potential cash gains for each stage.
⚠️ Margin & Leverage Diagnostic: Enter your account’s maximum leverage. The script checks the nominal value of your trade and flashes a red alert (⚠️ INSUFFICIENT LEVERAGE) if the required margin exceeds your available capital.
⚡ Pine Script v6 Optimized: Clean, modern code using persistent variables to prevent chart lag, flickering, and memory leaks. Indikator

Indikator

XI0033 Williams FractalA Williams fractal confirms late by definition: the pattern is complete only after the bars to its right have closed, so the marker always appears in the past. This script keeps the classic fractal template — three- or five-bar — and adds the one thing the classic version cannot show: the bar that is about to become a fractal, before the confirmation arrives.
It draws triangles for confirmed fractal highs and lows, plus one highlighted triangle for the last potential fractal on the live edge. Nothing else: no lines, no levels, no signals.
Confirmed fractals
A fractal high is a bar whose high stands above the highs of its neighbours; a fractal low mirrors that on the lows. The 3-bar mode compares one neighbour on each side, the 5-bar mode two on each side — the original Bill Williams definition. The Periods input sets how many bars back the reference bar sits. Confirmed fractals are painted as muted grey triangles above the highs and below the lows, and once the pattern that produced them is closed, they are history: they do not move and do not disappear.
Confirmed fractal highs and lows in the muted default colour: every triangle marks a bar whose extreme beat its neighbours on both sides, printed only after the pattern completed.
The last potential fractal
This is the addition. One bar to the right of the last confirmable centre there is always a candidate: a bar already higher (or lower) than its closed neighbours, waiting only for the current bar to keep its distance. The script highlights that candidate with an orange triangle — pointing down above a potential high, pointing up below a potential low — so the developing swing is visible before it becomes official.
The highlight exists only on the live bar. It is recalculated tick by tick, disappears the moment price violates the candidate, and is deliberately dropped on the bar's final update, so it never leaves a trace in the chart history. Scroll back and you will find only confirmed fractals.
Left: the orange triangle under the newest low is the last potential fractal. Right, a few bars later: that low now carries a grey confirmed triangle — the preview left no trace — and a new potential fractal already sits above the latest high.
What repaints, and what does not
The potential marker repaints by design — that is its job. It is a live preview that appears, moves and vanishes with the current bar, and it is intentionally not committed to history. Confirmed fractals in the default 3-bar mode are built from closed bars only, so once a triangle prints, it is final. In the 5-bar mode with the default period, the newest confirmation still involves the forming bar's extreme, so it can appear and be withdrawn until that bar closes; after the close it is final. And every confirmed fractal is late by definition — the triangle appears above a bar that is already in the past, because that is what confirmation means.
What is reused, and what is new
The confirmed-fractal logic is the classic Bill Williams fractal template as coded by Mit Nayi, reused open-source with attribution in the source header. What this edit adds: the port to Pine Script v6, and the whole potential-fractal layer — the candidate detection one bar to the right of the confirmable centre, and the barstate mechanism that shows the preview on the live bar only and drops it on the bar's final update, so it never piles up in history.
What it does not do
It gives no signals. A fractal marks a local extreme, and most local extremes get traded through; on their own they are not entries. This is a structural marker — swing logic, liquidity maps and ICT-style analysis use fractals as raw material, and the potential marker only tells you where the next one may appear. The decision stays yours.
The Inputs allow you to set:
Periods: how many bars back the fractal centre sits; the triangles are drawn on that centre bar
3 or 5 Bar Fractal: one or two neighbours compared on each side
Show last potential fractal: the live-edge preview on or off
Potential down and up fractal colours
About the chart
BYBIT:BTCUSDT.P, 5-minute chart. The only script on it is this one, with default settings: muted grey triangles mark confirmed fractal highs and lows across the chart, and the orange triangle at the right edge is the last potential fractal, not yet confirmed. No other indicators, no drawings. Indikator

Strategie

XI0033 WatermarkA watermark earns nothing. It labels a chart: whose it is, what instrument, what timeframe, and what price was doing when the snapshot was taken. If you publish charts, record trades or stream, that label is the difference between a screenshot and a document.
This script prints up to four lines of text over the chart: three free lines and one symbol line. Any line can carry live tokens that resolve to the current symbol, timeframe, date, weekday, clock, price, change against the previous daily, weekly or monthly close, and volume. It draws text and nothing else: no levels, no signals, no analysis.
One template language for every line
Each line is a template. Plain text stays as typed; tokens are replaced with live values:
{ticker} {exchange} {tf} {date} {time} {dow} {price} {chgabs} {chg} {chg:D} {chg:W} {chg:M} {vol}
{chg} is the percent change against the previous daily close — the same number the quote header shows. {chg:W} and {chg:M} measure against the previous weekly and monthly closes. {chgabs} is the daily change in price units, {dow} is the weekday name, {vol} is the current bar's volume compacted to K/M/B and printed as n/a where the instrument has no volume feed. Separators are typed straight into the template, so reordering a line is just reordering its text. An empty template hides the line.
The two free lines under the brand text are plain templates: one prints the daily, weekly and monthly change side by side, the other stamps the date and the exchange clock. What is typed is what resolves; the line at the bottom of the chart is the symbol line running its own template.
The symbol line
The fourth line ships with a default template that mirrors the quote header:
{exchange}:{ticker} · {tf} · {date} · {dow} · {price} · {chgabs} · {chg} · {vol}
It is an ordinary template line: delete a token you do not want, move the ones you keep, retype the separators. Nothing in its order is hardcoded.
Sign colouring, token by token
A Pine table cell holds exactly one text colour. To paint the price green and the weekly change red inside one line, the script slices the symbol line into segments: every {price}, {chgabs} and change token becomes its own cell, coloured by the sign of its own change — {price}, {chgabs} and {chg} follow the daily change, {chg:W} the weekly, {chg:M} the monthly. The text between tokens keeps the line colour. Turn the option off and the line renders as a single cell in a single colour. The one visible cost of the segmented mode is worth naming: cell padding makes the gaps around coloured tokens slightly wider than a plain space.
Sign colouring on: the daily percent carries the daily sign; the weekly percent, marked W and appended at the end of the template, carries its own — one line, two directions, base colour in between.
Nine anchors and offsets that tables do not have
Every line is anchored independently to one of nine chart positions. Lines that land on the same anchor do not overlap: they are collected into one table and stacked in declaration order — Line 1 above Line 2 above Line 3 above the symbol line.
Pine tables expose no pixel offset, so Offset X and Y are built from geometry instead: an empty spacer column sized in percent of chart width pushes a group inward from a left or right edge, and an empty spacer row sized in percent of chart height pushes it away from the top or bottom. X is ignored on a centered anchor and Y on a middle one, because there is no edge to push from. When several lines share an anchor, the group takes the offsets of its first line.
Four lines on four different anchors, each block its own table; the corner blocks are pushed inward from their edges by the spacer offsets.
Every line is yours
Per line: colour, size from 8 to 80, Default or Monospace font, bold, italic. A free line can additionally colour itself as a whole by the sign of the change token it contains. Global: the Positive/Negative pair used by all sign colouring, an extra transparency slider that fades every line on top of its own colour, and a background fill behind the text blocks.
What repaints, and what does not
Nothing is drawn on historical bars, so there is nothing to repaint in the signal sense. The tables are rebuilt on the last bar and every token updates with the live tape — price, changes and volume move tick by tick, which is what a live watermark is for. The previous daily, weekly and monthly closes are requested from the higher timeframes with a one-bar offset, so only completed bars are read and those references stay fixed until their period rolls over. {date}, {time} and {dow} follow the exchange clock, not bar time.
What is actually original here
A chart watermark is public domain — the platform has plenty, and another script that prints a static string would have no reason to exist. Three parts of this one are engineering rather than styling, and the source is open, so they can be read:
A single token engine for all four lines. One substitution pass resolves thirteen tokens, including three change bases — daily, weekly, monthly — measured the way the quote header measures them, so the symbol line and the free lines speak the same language.
Per-token colouring inside one table row. The symbol line is split into cells at token boundaries so each value carries the sign colour of its own change, while single-colour lines sharing the anchor are merged across the full row width and stay centered above the segmented one.
Offsets that Pine tables do not offer. Anchoring, stacking and two-axis fine-tuning are assembled from table geometry — spacer cells sized in percent of the pane — because the platform provides no pixel offset for tables.
What it does not do
It computes nothing tradeable. No levels, no signals, no alerts, no statistics — it reads the same values the quote header already shows and prints them where and how you want them. It is a labelling tool; the trading remains your job.
The Inputs allow you to set:
- Line 1–3: template text, colour, size, font (Default/Monospace), bold, italic, colour by change sign, anchor (vertical and horizontal), Offset X and Y
- Symbol line: show/hide, template text, colour price/change by sign, colour, size, font, bold, italic, anchor, Offset X and Y
- Appearance: Positive and Negative colours, extra transparency, background colour
About the chart
BYBIT:BTCUSDT.P, 5-minute chart. The only script on it is this one, and the three free lines stack at the top center on their default texts — XI0033 with a panda emoji, then the Example and Your text here placeholders. The symbol line sits at the bottom center; its template is trimmed to the exchange, ticker, timeframe, date, weekday and the daily percent change, and sign colouring paints that percent by the sign of the day. No other indicators, no drawings. Indikator

Indikator

Liquidity Sweep + FVG [Leon/RussellTech] v2Liquidity Sweep + FVG Indicator
A multi-confluence day-trading indicator that identifies institutional stop-hunts (liquidity sweeps) followed by displacement Fair Value Gaps, then plans precise entries with automatic stop-loss and take-profit placement.
How It Works
The indicator uses a state machine that progresses through a strict sequence. Every signal must pass through all 7 confluence layers — if any single layer fails, no signal fires. This is what prevents false signals and maintains quality.
State Machine Lifecycle
Idle — The indicator monitors swing pivot highs and lows using the configured lookback period. Up to 4 recent levels are tracked.
Sweep Detected — Price wicks beyond a tracked swing level and (if required) closes back inside. A sweep marker (▲ or ▼) appears on the chart.
Armed — Within the Sweep→FVG Window (10 bars), a valid FVG forms in the sweep direction. The status panel shows "armed (long)" or "armed (short)".
Entry — Within the FVG→Entry Window (24 bars), price retraces into the FVG zone, the entry candle shows momentum, and all filters pass. Signal fires with Entry, SL, and TP drawn.
Tracking — The indicator tracks whether price hits the TP, SL, or times out, then returns to Idle.
The 7 Confluence Layers
Every signal must pass through all seven layers. This multi-confluence approach is what separates this indicator from simple FVG detectors or sweep scanners. Indikator

APEX Contra Flow | ProjectSyndicateAPEX Contra Flow rebuilds the order flow hidden inside every candle and reads it as an auction — then scores, bar by bar, whether that auction has finished and is ready to reverse. It drills into each bar with a lower-timeframe scan, distributes the intrabar volume across price by true overlap, splits it into graded buy/sell pressure, and renders it as a footprint anchored by POC, Delta POC, intrabar VWAP and the Value Area. On top of that it runs one idea from auction theory that conventional profile tools ignore: a market doesn't turn where volume is heavy — it turns where the auction runs out of business. The Contrarian Engine finds the bars where aggression achieved nothing, grades them 0–10, and fades them back toward value.
Most footprint tools describe. This one takes a side.
🌊 Intrabar Footprint Engine — the core. A lower-timeframe scan breaks each chart bar into its internal prints and rebuilds the auction that produced it. Granularity is adjustable (1 Tick / 1S / 5S / 15S / 1M / 5M) or Auto-scaled to your chart, with an automatic fallback resolution — if your plan or symbol won't serve the resolution you asked for, the engine silently drops to one that works instead of drawing a blank chart.
🧮 Overlap-Proportional Allocation — the accuracy differentiator. Conventional intrabar profiles smear each print's volume equally across every row it touches, which fattens the profile and drags the POC toward wide bars. APEX Contra Flow weights every row by the exact price overlap between the intrabar's range and that row. The shape you read is the shape that traded.
⚖️ Graded Buy/Sell Classification — not close >= open. On tick data the engine classifies against bid/ask (at-or-above ask = buy, at-or-below bid = sell, interpolated between). Off tick data it uses a tunable blend of close-location-in-range and body direction. Delta becomes a gradient, not a coin flip — so a bar that closed flat but was bought all the way up no longer reads as neutral.
🎯 POC · Delta POC · Intrabar VWAP — three separate reads on one candle. The Volume POC is where trade concentrated. The Delta POC is where the largest one-sided delta sits — the two diverging is a tell in itself. The intrabar VWAP marks the candle's true average traded price.
🧲 Value Area (VA) — computed by true value-area expansion outward from the POC at your chosen percentage, drawn as a clean outline with everything outside it dimmed back. Fair value framed; the rest fades.
🔺 Diagonal Imbalances & Stacked Runs — every row is tested diagonally: buy at a level against sell one level below, sell against buy one level above. Rows clearing your ratio are marked ◆ and coloured by side. Consecutive runs are counted — stacked imbalance sitting at the extreme is exhaustion evidence, not strength.
🕯️ Excess vs Unfinished Auction — the read almost nothing else surfaces. Thin single prints at a bar's extreme (·) are excess: the auction rejected that price and finished. Heavy volume parked at the extreme is unfinished business — an untested magnet price will likely come back for. One says reversal, the other says return.
🔠 Auction Shape Classification — P / b / D / B — real market-profile logic, applied per candle.
▪️ P — POC in the upper third, thin below: the rally was short covering, not fresh buying. Weak. Fade it.
▪️ b — POC in the lower third, thin above: long liquidation / capitulation. Fade it.
▪️ D — balanced auction, POC mid-range. Rotation back to the middle.
▪️ B — double distribution (two volume clusters split by a thin gap). This is a trending auction — and it vetoes the fade outright. The single most valuable filter in the tool is the one that tells you to stand down.
🏆 0–10 Contrarian Conviction Score — the power-ranking. Each fade candidate earns a live grade from seven weighted, principled factors, every one with a fixed directional sign:
▪️ Effort without result — heavy relative volume and delta that produced no body.
▪️ Trapped delta — delta pushing one way while the candle closes the other. Someone is offside.
▪️ Wick rejection — how violently the extreme was defended.
▪️ Excess — thin tail at the extreme being faded (finished auction).
▪️ Auction shape — P against a high, b against a low.
▪️ CVD divergence — a new price extreme that cumulative delta refused to confirm.
▪️ Stacked imbalance at the extreme — aggression stacking into a wall.
Resolved to a tier: WK → MOD → STRONG → V.STRONG → EXTREME.
🚪 Context Gates — why the signals stay rare. A score alone fires nothing. The bar must also print a new N-bar extreme, stretch a configurable ATR distance beyond its mean, clear a cooldown, and survive the B-shape veto. Fading strength in a trend is how contrarians die; these gates exist to stop it.
🎯 Fade Signals, Targets & Invalidation — one clean FADE ▲ / FADE ▼ label carrying the score. A dotted magnet line projects to the target: the nearest naked POC in the fade direction, or the candle's own POC if none is standing. A tick marks the invalidation extreme. Hover the label for the full read — score, tier, auction shape, value migration, delta, relative volume, POC, VWAP and the LTF actually used.
📍 Naked POC Magnets — high-conviction candles leave their POC extended to the right until price trades back through it, then it's removed. Untested POCs are unfinished business — and they double as the fade target.
📖 Legend Key — a static, self-adapting key (bottom-right by default). It lists only the glyphs you have switched on, and reads your live settings — your imbalance ratio, your VA %, your score threshold — so it can never drift out of sync with the chart.
🎨 Nine Dark-Native Themes — Obsidian (default), Institutional, Aurora, Neon, Phantom, Solar, Ice, Plasma and Mono — every one tuned to read on a black background, plus full custom buy/sell/POC overrides.
🧹 Clean-Chart Discipline — no dashboard, by design. No panel, no stat block, no clutter competing with price. The profile is the interface; the score lives inside the candle that earned it, the reasoning lives in the tooltip. Bar delta, CVD, contrarian score and bar volume stream to the Data Window for anyone who wants the raw series.
🔒 Honest & Non-Repainting Core — fade signals fire on confirmed bars only and never repaint away once printed. No signal is ever hidden, deleted or de-rated to flatter the chart. The footprint of the live, forming candle naturally refreshes as it builds — that is inherent to reconstructing order flow in real time, not a defect — and every closed bar is fixed. The 0–10 score is a descriptive auction framework for ranking attention, not a backtested edge.
🔔 Native Alerts — Fade Long, Fade Short, and Any Fade.
🔧 Fully Customizable — profile basis (Volume / Delta), granularity, rows, bar length, classification method and blend weight, VA %, POC / Delta-POC / VWAP / imbalance / excess toggles, imbalance ratio, min score, extreme lookback, mean length and ATR extension, CVD divergence lookback, cooldown, target length, naked-POC threshold and cap, theme, out-of-value transparency, legend position and size.
🎯 Why this is different — profile tools show you where volume is and leave the conclusion to you. Footprint tools show you delta and leave the conclusion to you. APEX Contra Flow classifies the auction, tells you whether it finished or is still trending, refuses to fade the ones that are trending, and puts a graded 0–10 case for the reversal inside the candle that made it. You read where the auction broke, why it's exhausted, and where it should rotate back to — at a glance.
🚀 Apply to Gold (XAUUSD), Silver, Forex, Crypto, Indices and Futures on any intraday timeframe (volume-bearing symbols).
💡 Cleanest setup: an indicator cannot hide the chart's own candles — right-click the chart → Settings → Symbol → uncheck Body / Borders / Wick to let the footprint stand alone.
🎯 How To Trade It — Two Approaches
Everything hinges on one question the tool answers: has this auction finished, or is it still trending? Finished auctions rotate. Trending auctions run you over.
◾ 1) Fade the finished auction → rotate to value (the core thesis)
Use on STRONG / V.STRONG / EXTREME scores (≥7) where the grade is built on excess, trapped delta and CVD divergence — and the shape is P at a high or b at a low.
▪️ Wait for the FADE ▼ / FADE ▲ to print on the confirmed bar — the gates have already checked the new extreme, the ATR extension and the shape veto.
▪️ Entry: on the signal close, or on a shallow re-test of the faded extreme that fails to make a new one.
▪️ Stop: beyond the invalidation tick at the wick extreme. If price closes decisively through and accepts there, the auction wasn't finished — stand aside or flip to Approach 2.
▪️ Targets: the dotted magnet line — the nearest naked POC, else the candle's POC. The opposite Value-Area edge if rotation extends.
⚖️ The cleanest version: price spikes to a new 10-bar high, stretches beyond its mean, prints a long upper wick on heavy volume with positive delta but closes in the lower half (trapped buyers), the top rows are thin (excess), the POC sits high (P — short covering), and CVD refuses to confirm the new high. Score prints 8.4 EXT. That confluence is the exact move this tool was built to frame.
◾ 2) Stand down — and trade the other side
The tool tells you when not to fade, which is worth as much as the signal.
▪️ Shape = B (double distribution) — the auction is trending and building a second distribution. The veto fires. Do not fade; look for continuation on the pullback into the lower distribution instead.
▪️ No excess, heavy volume at the extreme — unfinished business. Price is likely to return to that price rather than reverse from it.
▪️ Signals fire and immediately fail, repeatedly — one-sided flow is expanding. Trade with it into the next naked POC.
Rule of thumb: ⭐ High score + excess + P/b shape + CVD divergence → expect rotation, fade toward the POC. ⭐ B shape, no excess, or price accepting beyond the level → expect follow-through, trade the break toward the next naked POC.
⚠️ IMPORTANT NOTICE: APEX Contra Flow reconstructs estimated order flow from lower-timeframe data. Intrabar delta, absorption and buy/sell classification are an approximation of true tape, not exchange order-book data — off tick resolution the buy/sell split is inferred from price behaviour, not observed aggression. The 0–10 contrarian score is a descriptive auction framework — NOT a backtested signal and NOT a standalone trade trigger. Fading extremes is inherently a counter-trend activity and carries real risk of repeated stop-outs in a trending market; the shape veto reduces this but cannot eliminate it. The indicator requires a volume-bearing symbol. Always combine it with your own strategy, price-action analysis and risk management. Past behaviour does not guarantee future results. Indikator

INJ DCA Long Strategy [3Commas & QuantPilot]INJ DCA Long Strategy
🔷 What it does:
This is a long-only DCA (Dollar-Cost Averaging) strategy for INJ / USDT that opens a position only in deep-oversold conditions and then averages down on a fixed safety-order ladder. A base order fires when 4h RSI(14) drops below 28; if price keeps falling, five averaging orders add to the position at fixed deviations from the base entry, each larger than the last. The full position is closed at a fixed take-profit above the blended average entry. There is no trailing exit and no stop loss — the position is structurally bounded by the five-order ladder.
- Single entry filter: 4h RSI(14) below 28 (deep oversold).
- Five averaging orders at fixed deviations (−2%, −5%, −9.5%, −16%, −25%) with 1.8× size scaling per rung.
- Fixed take-profit (9%) on the blended average entry; no trailing, no stop loss.
- Every fill and close emits a webhook-ready JSON alert payload for a DCA Bot.
🔷 The one change that mattered — Take Profit tuning:
This strategy started from a baseline configuration with a 3% fixed take-profit. Running the same script, on the same market, over the same period through the QuantPilot Pine Script optimizer, the take-profit parameter was swept and the best-performing value landed at 9%. Nothing else was touched — same RSI entry, same five-order ladder, same deviations, same 1.8× sizing, same fees. Only the Take Profit input changed from 3% to 9%.
- Baseline (Take Profit 3%): Net +6,888.76 USDT (+6.89%), Max Drawdown 4.39%, 84 closed trades, 71.43% profitable, Profit Factor 4.925.
- Optimized (Take Profit 9%): Net +15,830.72 USDT (+15.83%), Max Drawdown 5.65%, 90 closed trades, 82.22% profitable, Profit Factor 17.886.
Widening the target lets each recovery run further before the position is banked, capturing the fuller mean-reversion bounce instead of exiting on the first small pop. The trade-off is a modestly higher drawdown (4.39% → 5.65%) and longer average hold time. The published defaults use the optimized 9% value; the baseline metrics are shown here purely so the effect of the single parameter change is transparent.
🔷 Who is it for:
- Swing traders accumulating INJ on deep RSI flushes rather than chasing momentum.
- Bot operators who want a chart-driven signal source with base / safety-order / close webhook JSON ready to drive a DCA Bot.
- Traders comfortable with martingale-style averaging who size their capital to the worst-case ladder fill.
- Range / mean-reversion traders who prefer mechanical oversold entries over discretionary timing.
🔷 How does it work:
Entry (Base Order): On each closed 4h bar the strategy reads RSI(14). When RSI falls below 28 and there is no open position, it opens the base order at market (or limit, optionally) and dispatches the entry webhook.
Averaging Orders: Once in a position, the strategy watches price relative to the original base entry. The five safety orders are armed at fixed deviations from that base entry — not cumulatively — at −2%, −5%, −9.5%, −16%, and −25%. As each threshold is crossed on bar close, the corresponding averaging order fires. Order sizes scale 1.8× per rung ($900 → $1,620 → $2,916 → $5,249 → $9,448 from a $500 base), pulling the blended average entry down toward the latest fill.
Exit (Take Profit): While in a position, the strategy computes a take-profit price 9% above the current average entry. When price closes at or above that level, the entire position is closed at market and the close webhook fires. There is no trailing and no stop loss.
Capital Bounds: Total deployed capital cannot exceed the base order plus the five safety orders. Once all five averaging orders are filled, no further adds occur — the position simply waits for the take-profit. This ladder cap is the strategy's primary risk control.
🔷 Why it's unique:
- Optimizer-Tuned Exit: The 9% take-profit is not an arbitrary round number — it is the value the QuantPilot Pine Script optimizer selected as best-performing on the historical sample, with every other parameter held constant.
- Deep-Oversold-Only Entries: A single, strict RSI(14) < 28 filter on 4h keeps the strategy out of the market in normal conditions and only commits capital after a meaningful flush.
- Fixed-Deviation Martingale Ladder: Safety orders are placed at fixed percentages from the base entry with deliberate 1.8× size scaling, so each rung has progressively more influence on the average — a transparent, fully-specified averaging schedule rather than an opaque adaptive grid.
- Full Webhook Chain: Base order, each safety order, and the close all emit dedicated JSON payloads, driving a DCA Bot end-to-end with no glue layer.
🔷 Considerations Before Using the Strategy:
Optimization / Overfitting Risk: The 9% take-profit was selected by sweeping the parameter over the same historical window shown in the results. A value that was best in-sample is not guaranteed to be best out-of-sample — this is the standard caveat for any optimized parameter. Treat the optimized metrics as the ceiling of what this configuration achieved historically, not as a forward expectation, and re-validate on fresh data before committing capital.
Trade Volume — Below the Statistical Floor: The optimized configuration produced 90 closed trades over ~30 months (84 on the baseline). Both are below the ~100-trade threshold often used as a floor for statistical relevance, so treat the win rate and the high profit factor as indicative rather than conclusive. The strict RSI < 28 filter is what keeps the trade count low.
Martingale Tail Risk: Order sizes scale 1.8× per rung, so the deepest fills are by far the largest. If INJ trends hard below the −25% AO5 level without recovering to take-profit, the position sits fully loaded with no further adds and no stop — unrealized loss can grow until price reverts. A wider 9% target also means positions are held longer, so the grid can sit loaded through deeper dips before the exit is reached.
No Stop Loss Justification: There is no exit on adverse moves. Per-order risk is bounded by the fixed ladder allocation; aggregate exposure is capped at base + five AOs (≈ $20,633 on the default $100k account, ~20.6% of equity). Size the base/AO inputs down to match the worst-case exposure you are willing to hold.
Fees: The default commission (0.06% per trade) should be matched to your exchange's actual taker fees.
Demo Testing: Always demo-test before going live. Past results do not guarantee future performance, particularly for martingale-style averaging strategies whose risk profile is dominated by rare deep drawdowns.
🔷 STRATEGY PROPERTIES
Symbol: BYBIT:INJUSDT.P (Perpetual) — strategy is portable to any INJ / USDT pair.
Timeframe: 4H (RSI sampled on 4h).
Test Period: January 1, 2024 — July 16, 2026 (~30 months).
Initial Capital: 100,000 USDT.
Base Order Size: 500 USDT.
Averaging Orders: 5, at −2% / −5% / −9.5% / −16% / −25% from base entry.
AO Sizing: 1.8× per rung — 900 / 1,620 / 2,916 / 5,249 / 9,448 USDT.
Max Deployed Capital: ≈ 20,633 USDT (~20.6% of equity, all AOs filled).
Commission: 0.06% per trade.
Slippage: 3 ticks.
Entry Filter: 4h RSI(14) below 28.
Take Profit: 9% above average entry (optimizer-tuned from a 3% baseline).
Stop Loss: None — ladder allocation is the structural risk cap.
Trailing: None.
Strategy: Long Only.
🔷 STRATEGY RESULTS (Optimized — Take Profit 9%)
⚠️ Remember, past results do not guarantee future performance.
Net Profit: +15,830.72 USDT (+15.83%)
Max Equity Drawdown: 6,426.47 USDT (5.65%)
Total Closed Trades: 90
Percent Profitable: 82.22% (74 / 90)
Profit Factor: 17.886
🔷 STRATEGY RESULTS (Baseline — Take Profit 3%, for comparison)
Net Profit: +6,888.76 USDT (+6.89%)
Max Equity Drawdown: 4,429.13 USDT (4.39%)
Total Closed Trades: 84
Percent Profitable: 71.43% (60 / 84)
Profit Factor: 4.925
🔷 How to Use It:
🔸 Adjust Settings: Open the strategy inputs and confirm the RSI level (28), the five AO deviations and sizes, and the Take Profit (default 9%) match your risk profile. Scale the base/AO sizes down for lower exposure.
🔸 Results Review: Run a full-period backtest and confirm Max Drawdown stays within your personal risk band — note the optimized configuration reached 5.65%. Keep in mind the 90-trade sample is below the ~100-trade floor for statistical confidence, and the high profit factor reflects that small, optimized sample.
🔸 Create alerts to trigger the DCA Bot: Add one alert on the strategy using "Any alert() function call". Paste your DCA Bot's webhook URL into the alert's Webhook field, and fill the Bot ID, Email Token, and Pair inputs on the script. The base order, each safety order, and the close will each emit a dedicated JSON payload.
🔷 INDICATOR SETTINGS
Base Order Size: Capital committed on the first (base) entry.
AO Deviations: Fixed percentage distances from the base entry where each safety order fires.
AO Sizes: Capital per safety order (1.8× scaling by default).
RSI Timeframe / Length / Level: Oversold filter for the base entry (default 4h, 14, below 28).
Take Profit (%): Distance above average entry where the full position closes (default 9%, optimizer-tuned).
Bot ID / Email Token / Pair: Webhook fields injected into every alert payload.
Visualization: Toggle the AO ladder, fill labels, avg/TP lines, and status table.
Brand Watermark: Configurable text, position, size, and transparency.
👨🏻💻💭 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 TradingView 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. Strategie
