Laughing Grid Radar
// ═══ Row 9: 底部装饰线 ═══
table.cell(panel, 0, 9, "▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄", bgcolor=c_void, text_color=c_neon_pink, text_halign=text.align_center, text_size=size.tiny)
table.merge_cells(panel, 0, 9, 1, 9)
Indikatoren und Strategien
Sector Rotation ULTIMATE: 7 Narrativas IndependientesSector Rotation ULTIMATE: Crypto Narrative Rotation (7 Independent Sectors)
Advanced indicator displaying the relative strength of major crypto sectors through 7 independently normalized lines (0-100):
• Layer1 (ETH, SOL, BNB, TON, etc.) - Pink
• Enterprise (XRP, HBAR, XLM, QNT, VET) - Yellow
• DeFi (UNI, AAVE, MKR, LDO, CRV, etc.) - Cyan
• Memecoins (SHIB, DOGE, PEPE, WIF, FLOKI, BONK) - Green
• AI (TAO, FET, ICP, GRT, etc.) - Orange
• L2 / Scalability (ARB, OP, MATIC, STRK) - Purple
• RWA + Infra (ONDO, LINK) - Brown
Each sector sums the dominance of its top coins (40 total) and is normalized independently so the lines cross constantly, revealing real capital rotations.
- Colored fills to visually highlight the leading sector
- Works perfectly on any timeframe (clean daily data, no intraday noise)
- Ideal for spotting altseason, sector rotations, and entry timing
Use on CRYPTOCAP:TOTAL. The definitive narrative oscillator for 2026!
#Crypto #Altcoins #SectorRotation #DeFi #Memecoins #AI #RWA
Long-term KST (Know Sure Thing)Description
Long-term Know Sure Thing (KST) oscillator, specifically adapted for non-24h markets such as stocks, indices, ETFs and futures.
This version correctly scales the weekly ROC periods based on the actual trading week length and daily session duration of the instrument — making it accurate across different asset classes (European indices, US equities, crypto, etc.).
Key features:
• Fully customizable trading week (5 days for most stock markets, 7 days for crypto/24h markets)
• Customizable daily session length (8.5h for FTSE MIB/DAX, 6.5h for US equities, 24h for crypto/forex)
• Automatically adjusts bar count per week on any chart timeframe (including Weekly)
• Classic Martin Pring KST parameters (10/13/15/20 ROC weeks, 10/13/15/20 SMA weeks, 1-2-3-4 weighting)
• Includes signal line (SMA of KST) and visual fill between KST and signal (green/red)
What is the Long-term KST used for?
The KST (Know Sure Thing) is a momentum oscillator created by Martin Pring to detect major trend changes, confirm the primary trend direction, and identify significant reversals in medium- to long-term cycles (weeks to months).
Main practical uses:
• Major trend reversals: KST crossing above/below signal line
• Primary trend confirmation: KST above/below zero line
• Classic divergences: Price vs KST divergences often precede important tops/bottoms
• Cycle identification: Helps spot the end of multi-month corrections or the start of new bull/bear phases
• Trend-following filter: Stay long when KST > 0 and rising, stay short when KST < 0 and falling
It is especially powerful on major indices (FTSE MIB, DAX, SPX, NDX, RUT, CAC40, Nikkei…) because it captures institutional money flow with fewer, higher-quality signals compared to faster oscillators.
Best used on:
• Daily, 4H, Weekly charts
• European indices (FTSE MIB, DAX, IBEX…)
• US indices/ETFs (SPX, NDX, RUT…)
• Crypto pairs (set week_length=7, session_duration=24h)
Enjoy trading the big-picture momentum!
Supertrend 14-3 with Auto Fibthis strategy use the supertrend with the Auto fib levels for market analysis
Supertrend By GemScope Supertrend by GemScope – Strategy Summary
This is an **automated trading strategy (Pine Script v5)** based on the **Supertrend indicator**, enhanced with **EMA filtering**, **percentage-based stop loss**, and **visual trade analytics**.
---
### 🔹 Core Strategy Logic
* Uses **Supertrend (ATR-based)** to detect market trend direction
* Trades **trend reversals and confirmations**
* Works on **both long and short positions**, or restricted to one side
---
### 🔹 Trade Direction Options
* **Both Long & Short**
* **Long Only**
* **Short Only**
---
### 🔹 Entry Conditions
#### 🟢 Long Entry
* Supertrend flips to **bullish**
* OR price crosses **above EMA 200**
* Long trades are allowed by settings
* If enabled: **price must be above EMA 200**
* Supertrend must confirm **uptrend**
#### 🔴 Short Entry
* Supertrend flips to **bearish**
* Short trades are allowed by settings
---
### 🔹 Position Sizing
* Trade size is defined in **USD**
* Quantity is calculated automatically based on market price
* Quantity rounding is user-configurable
---
### 🔹 Stop Loss (Risk Management)
* **Fixed percentage stop loss**
* Automatically placed after entry
* Works for both long and short positions
* No take-profit levels (trend-based exits instead)
---
### 🔹 Exit Logic
* **Short positions close** when:
* Supertrend turns bullish
* Price moves above EMA 200
* **Long positions close** when:
* Supertrend gives a short signal
---
### 🔹 Trend Protection
* Optional protection to **avoid closing shorts prematurely below EMA 200**
* EMA 200 acts as a **trend filter and support/resistance**
---
### 🔹 Visual Features
* **EMA 200** plotted on chart
* **Supertrend line** with color-coded direction
* Real-time **entry & P&L labels** displayed on the right side
* Indicator dashboard (RSI, MACD, ADX, ATR) shown in a table
---
### 🔹 Indicator Table Purpose
* Shows **market strength and bias**
* Helps identify whether **long or short positions are favored**
* Uses:
* RSI (momentum)
* MACD (trend direction)
* ADX (trend strength)
* ATR (volatility)
---
### 🔹 Overall Objective
This strategy is designed to:
* Trade **strong trends**
* Filter false signals using EMA 200
* Control risk with **strict percentage stop loss**
* Provide **clear visual feedback** for decision-making
GemScope Signals## 📊 GemScope Signals – Strategy Summary
This is an **automated trading strategy (Pine Script v5)** designed to trade market trends using a **custom GemScope oscillator**, **EMA trend filter**, **risk control**, and **multi-level take profit system**.
---
### 🔹 Trading Modes
* **Long Only**
* **Short Only**
* **Both Long & Short**
---
### 🔹 Entry Logic
**Long Trades**
* No active long position
* Entry allowed (not in cool-down after stop loss)
* GemScope shows **bullish trend (bull > bear)**
* If EMA filter is enabled: **price must be above EMA 200**
**Short Trades**
* No active short position
* Entry allowed
* GemScope gives **bearish signal (bull < bear)**
---
### 🔹 Exit Logic
* Positions close on **opposite GemScope signals**
* Short positions also close when:
* EMA filter is enabled
* Price moves above EMA
* Trend turns bullish
---
### 🔹 Stop Loss System
* **Percentage-based stop loss** for both long and short trades
* After a stop loss:
* New entries are blocked
* Trading resumes only after a fixed number of candles (cool-down)
---
### 🔹 Take Profit System (Partial Exits)
* Up to **three take-profit levels (TP1, TP2, TP3)**
* Each TP has:
* Independent price distance (%)
* Independent position size to close (%)
* Helps lock profits gradually while keeping runners open
---
### 🔹 Trend & Visuals
* Candles turn **green in bullish trend** and **red in bearish trend**
* **EMA 200** is plotted for trend confirmation
* Chart signals:
* **“G”** → Long signal
* **“S”** → Short signal
---
### 🔹 Risk & Money Management
* Uses **100% of account equity per trade**
* **No pyramiding** (one trade at a time)
* Built-in protection against over-trading after losses
---
### 🔹 Overall Purpose
The strategy aims to:
* Trade only in **confirmed trends**
* Reduce false entries using EMA filtering
* Protect capital with stop loss and cool-down
* Maximize profits using **structured partial exits**
Next-Gen Market Signal Dashboard Key Features:
Trend Detection: EMA50 and EMA200 highlight bullish and bearish trends with subtle background coloring.
Momentum Indicators: RSI, MACD, and Stochastic Oscillator confirm signal strength and market momentum.
Volatility Filter: ATR ensures signals are only triggered during active market conditions.
Visual Signals: Animated triangles and colored backgrounds for LONG (green) and SHORT (red) signals.
Take Profit / Stop Loss: Automatic, elegant TP and SL lines to guide trades.
Compact Multi-Indicator Panel: Displays RSI, MACD, Stochastic, and ATR with color-coded strength indicators.
Mini-Guide: Integrated panel explanations help quickly interpret signals without confusion.
Alerts: Built-in alerts for all LONG and SHORT signals.
RSI Divergence Strategy BTCRSI Divergence Strategy | Clean
Type: Backtestable strategy
Logic: Uses divergences between price and RSI to generate signals.
LONG: Price makes a lower low, RSI makes a higher low → bullish divergence
SHORT: Price makes a higher high, RSI makes a lower high → bearish divergence
TP / SL: Automatic, based on configurable percentage and Risk/Reward ratio.
Display:
RSI visible in a separate panel
LONG/SHORT signals indicated by small triangles in the RSI panel
Goal: Identify price reversals using relative strength (RSI) and backtest precise trades.
Market time opens @NeoNztime opens marked out new york session , london session, asia session and highs and lows of each one
Ichimoku MTF Heatmap W/ adj alert placement W and D cloud ALERTShows green FLAG 50 bars back when Daily and Weekly Cloud metrics are ACTIVE.
Pivot Edge ProOverview
Smart Pivot Analytics is a highly accurate technical analysis tool designed to identify and validate significant price levels. Unlike standard pivot indicators that only mark recent highs, this tool backtests each identified pivot against thousands of historical candlesticks to calculate its real-world “success rate.”
Key Features
Historical Backtesting: The indicator scans up to 4,900 historical columns to find every instance where price interacted with a specific pivot level.
Strength Score (%): Each level is assigned a percentage score based on its reversal rate. It calculates how many times the price has successfully reached and rejected the level, providing a statistical “hit rate.”
Dynamic Hit Counter: Displays the exact number of times a level has been tested (hit), helping traders distinguish between new levels and established “old” levels.
Smart Filtering: To keep the chart clean, the indicator automatically filters out weak levels and prevents “clutter” by merging levels that are too close together.
Infinite Left Projection: Lines extend left to infinity, allowing traders to see the historical significance of a level across the entire price history at a glance.
How to Trade with It
Red Levels (High Power > 75%): These are “Top Reaction Zones”. Expect a strong price rejection or significant breakout when these levels are tested.
Orange Levels (Medium Power): Suitable for profit targets or as secondary confirmation for entering a trade.
Encounter: Use these levels in conjunction with your existing strategy. When a high power pivot aligns with your entry signal, the probability of a successful trade increases significantly.
Technical Parameters
Lookback Period: Defines how far back in history the script calculates power.
Touch Radius: The "sensitivity" of the level (how close the price has to get to be considered a "hit").
Minimum Strength: A filter to show only the most reliable levels.
Sector Flow AnalysisSector Flow Analysis - Track market leadership and rotation across 11 major sector ETFs with real-time performance rankings.
Key Features:
Monitors all 11 S&P sector ETFs (XLK, XLF, XLI, XLU, XLV, XLP, XLY, XLB, XLRE, XLC, XLE)
Configurable lookback period (5-60 days) for performance calculation
Color-coded risk indicators: 🟢 Risk-On sectors leading (bullish), 🟠 Risk-Off sectors leading (defensive), 🟡 Neutral sectors
Display top N sectors (1-11) to declutter your chart
Fully customizable positioning, text size, and color
Clean, minimal table overlay that won't obstruct your chart
Use Cases:
Identify sector rotation patterns and market leadership changes
Gauge market sentiment (risk-on vs risk-off behavior)
Find opportunities by tracking which sectors are gaining/losing momentum
Confirm trend strength when your stock's sector is leading
Perfect companion to comprehensive market analysis tools for a complete picture of sector dynamics.
Engulfing Strategy Core Concept:
This is a price action trading strategy that identifies high-probability trade setups by combining multi-timeframe engulfing patterns with Current Market Price (CMP) validation.
How It Works:
H4 Setup Zone (Primary Timeframe)
Identifies Bullish or Bearish Engulfing patterns on the 4-hour timeframe
When detected, marks a zone at the high and low of the engulfed candle
This zone represents the initial setup area
M30 Trade Control Zone (Confirmation Timeframe)
Looks for Engulfing patterns on the 30-minute timeframe
These patterns must form within or near the H4 setup zone
Acts as a confirmation that the setup is valid
CMP Validation (Current Market Price)
Monitors where price is currently trading relative to the zones
Validates whether the pattern is still active or has been invalidated
Helps determine entry timing and stop loss placement
Trade Setup:
Bullish Setup: Red candle engulfed by green candles → Zone marked at red candle's high/low → Wait for M30 confirmation → Enter when CMP validates the pattern
Bearish Setup: Green candle engulfed by red candles → Zone marked at green candle's high/low → Wait for M30 confirmation → Enter when CMP validates the pattern
UT Bot + Hull MA Close-Cross Confirm (Strategy)UT Bot + Hull MA Close-Cross Confirm (Strategy)
This strategy combines the classic UT Bot ATR trailing stop with a Hull Moving Average (HMA) close-cross confirmation to reduce false signals and improve trade quality.
The system works in two stages:
UT Bot Signal Detection
A volatility-adjusted ATR trailing stop identifies potential trend shifts using a 1-period EMA crossover. This provides early buy and sell signals based on momentum and volatility.
Hull MA Close-Cross Confirmation
UT Bot signals are only confirmed once price closes across the Hull Moving Average. If a UT signal occurs on the wrong side of the Hull MA, the strategy waits until a valid close-cross occurs before triggering an entry. This confirmation step helps filter chop and late-trend reversals.
Key Features
Non-repainting logic (uses bar-close confirmation)
Futures-friendly design (fixed contracts, point-based TP/SL)
Supports Long, Short, or Both directions
Built-in Take Profit & Stop Loss
Configurable Hull MA type (HMA / EHMA / THMA)
Optional Heikin Ashi signal source
Clean Buy/Sell alerts for automation and webhook execution
Trade Logic Summary
Long Entry:
UT Bot buy signal + confirmed close above Hull MA
Short Entry:
UT Bot sell signal + confirmed close below Hull MA
Exit:
Fixed Take Profit or Stop Loss (user-defined in points)
Alerts & Automation
The strategy includes dedicated Buy Alert and Sell Alert conditions designed for webhook automation (e.g., trade logging, execution engines, or external dashboards). Alerts trigger only on confirmed bar closes, matching backtest behavior.
Intended Use
This strategy is designed for futures markets (e.g., MNQ, ES, GC) and performs best on intraday timeframes. Session filters, risk rules, and trade management can be handled externally if desired.
Disclaimer
This script is provided for educational and research purposes only and is not financial advice. Always test thoroughly and use proper risk management.
Clock&Flow: Elements of Cycle Analysis 1st partClock&Flow – Elements of Cycle Analysis (ECA) | Complete Suite
Elements of Cycle Analysis (ECA) is an advanced cyclic analysis suite designed to interpret the market through time, structure, strength, and energy, combining cycles, volatility, and participation into a single operational framework.
The suite consists of two complementary modules:
🔹 ECA 1 – Cycles, Structure, and Volatility (Overlay: True)
ECA 1 is dedicated to the structural and temporal analysis of the market.
Cyclic SMAs (Cyclic Ratio) Moving averages are calibrated according to nominal cycles and timeframes to monitor multiple cycles simultaneously (from the lower cycle to the upper cycles). Crossovers between fast and slow SMAs certify the closing or transition of the cycle related to the faster SMA. The specific cycle is identified in the Info Table at the bottom right (for 15m - 1h - 2h - 1D timeframes). You can select the number of cycles to observe and the asset type to apply them to:
Index: Standard quotes (e.g., Cash sessions).
Future: Extended quotes (24h).
50-200: Classic institutional references for the medium-long term.
ATR-based Dynamic Cyclic Channels The channels represent a lower cycle and its upper counterpart; their width is determined by the observed timeframe and calculated based on average volatility (ATR). Volatility is not treated as noise but as a structural component of the cycle, essential for contextualizing excesses, compressions, and expansions.
Info Table and Quick Guide Dynamic tables automatically link SMAs, timeframes, and time cycles, providing an immediate reading of the current cyclic context.
Time Bands (Weekly / Daily) Temporal visualization helps identify cyclic pivots and rhythm transitions.
🔹 ECA 2 – Market Excesses, Strength, and Energy
ECA 2 analyzes how the market moves within the cyclic structure.
Excesses and Divergences (Cyclic Stochastic) An oscillator calibrated on the same cyclic ratio as the suite. Crossovers between the lower cycle (blue) and upper cycle (red) signal potential phase changes. In areas of excess, divergences often confirm the closing and restart of a cycle.
Directional Movement System (DMS) The ADX measures the strength of the movement, while +DI and -DI indicate direction. A simultaneous crossover of ADX, +DI, and -DI signals imminent acceleration, even before the strength is fully expressed.
Market Pulse – Real Market Energy The Market Pulse measures the amount of real energy moving through the market by relating three factors:
Price Velocity
Normalized Volume
Volatility (ATR relative to price)
These three factors are combined multiplicatively: if one is missing, the impulse weakens. The zero line represents a state of energy equilibrium; values above or below indicate a real imbalance (bullish or bearish). Note: Market Pulse is not a classic oscillator and should not be interpreted as overbought or oversold; it is used to evaluate the energetic quality of a movement.
Operational Convergence
The maximum operational effectiveness of the ECA suite is achieved when all modules converge on the same market phase.
When cyclic timing, volatility, price structure, trend strength, and movement energy align, the context signals a high-probability operational phase. The system is applicable to any timeframe or asset because it is not bound by dogmatic or subjective interpretations of technical or fundamental analysis; instead, it leverages what is actually happening in the market. Major chart patterns and Volume Profile (technically not includable in this specific suite) provide further confirmation.
Under these conditions, the signal does not originate from a single indicator but from the consistency of the entire system: time, volatility, and energy moving in the same direction.
Entries should always be accompanied by proper risk management.
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
Clock&Flow – Elements of Cycle Analysis (ECA) | Suite Completa
Elements of Cycle Analysis (ECA) è una suite avanzata di analisi ciclica progettata per leggere il mercato attraverso tempo, struttura, forza ed energia, combinando cicli, volatilità e partecipazione in un unico framework operativo.
La suite è composta da due moduli complementari:
🔹 ECA 1 – Cicli, Struttura e Volatilità (overlay true)
ECA 1 è dedicato all’analisi strutturale e temporale del mercato.
SMA cicliche (ratio ciclica)
Le medie mobili sono calibrate in funzione dei cicli nominali e del timeframe per monitorare più cicli simultaneamente (dal ciclo inferiore fino ai cicli superiori).
Gli incroci tra SMA veloci e lente certificano la chiusura o transizione del ciclo correlato alla SMA più veloce. Il ciclo in questione è segnalato nella info table in basso a destra (per i time frame 15’ - 1h - 2h - 1D) Puoi selezionare il numero dei cicli da osservare e su quali asset applicarle (Index = quotazioni standard / Future = quotazioni estese / 50-200 i classici riferimenti istituzionali per il medio-lungo periodo
Canali ciclici dinamici basati su ATR
I canali rappresentano un ciclo inferiore e il suo superiore, l’ampiezza è data dal time frame osservato e calcolata sulla volatilità media (ATR).
La volatilità non è trattata come rumore, ma come componente strutturale del ciclo, utile per contestualizzare eccessi, compressioni ed espansioni.
Info Table e Quick Guide
Tabelle dinamiche collegano automaticamente SMA, timeframe e cicli temporali, fornendo una lettura immediata del contesto ciclico in corso.
Time Bands (Weekly / Daily)
La visualizzazione temporale aiuta a individuare pivot ciclici e transizioni di ritmo.
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
🔹 ECA 2 – Eccessi, Forza ed Energia del Mercato
ECA 2 analizza come il mercato si muove all’interno della struttura ciclica.
Eccessi e divergenze (Stochastic ciclico)
Oscillatore calibrato sulla stessa ratio ciclica della suite.
Gli incroci tra ciclo inferiore (blu) e superiore (rosso) segnalano potenziali cambi di fase; in area di eccesso, le divergenze certificano spesso la chiusura e ripartenza del ciclo.
Directional Movement System (DMS)
L’ADX misura la forza del movimento, mentre +DI e –DI ne indicano la direzione.
L’incrocio simultaneo di ADX, +DI e –DI segnala un’accelerazione imminente, anche in assenza di forza già espressa.
Market Pulse – Energia reale del mercato
Il Market Pulse misura quanta energia reale sta attraversando il mercato mettendo in relazione:
velocità del prezzo
volume normalizzato
volatilità (ATR rapportato al prezzo)
I tre fattori sono combinati in modo moltiplicativo: se uno manca, l’impulso si indebolisce.
La linea dello zero rappresenta una condizione di equilibrio energetico; valori sopra o sotto indicano uno sbilanciamento reale, rialzista o ribassista.
Il Market Pulse non è un oscillatore classico e non va interpretato in termini di ipercomprato o ipervenduto: serve a valutare la qualità energetica del movimento.
La massima efficacia operativa della suite ECA si ottiene quando tutti i moduli convergono sulla stessa fase di mercato.
Quando tempi ciclici, volatilità, struttura del prezzo, forza del trend ed energia del movimento risultano allineati, il contesto segnala una fase ad alta probabilità operativa.
È applicabile su qualunque time frame o asset perché non è vincolato a dogmatiche e soggettive interpretazioni di analisi tecnica - fondamentale ma sfrutta ciò che realmente sta accadendo sul mercato.
I principali pattern grafici e il Volume Profile (in questa suite tecnicamente non inseribili) forniscono ulteriori conferme e/o indicazioni.
In queste condizioni il segnale non nasce da un singolo indicatore, ma dalla coerenza dell’intero sistema: tempo, volatilità ed energia si muovono nella stessa direzione.
Gli ingressi vanno sempre accompagnati da una corretta gestione del rischio.
CryptoFlux Dynamo [JOAT]CryptoFlux Dynamo: Velocity Scalping Strategy
This Pine Script v6 strategy is designed for cryptocurrency markets operating on 5-minute and faster timeframes. It combines volatility regime detection, multi-path signal confirmation, and adaptive risk management to identify momentum-based trading opportunities in perpetual futures markets.
Core Design Principles
The strategy addresses three challenges specific to cryptocurrency trading:
24/7 market operation without session boundaries requires continuous monitoring and execution logic
Volatility regimes shift rapidly, demanding adaptive stop and target calculations
Tick-level responsiveness is critical for capturing momentum moves before they complete
Strategy Architecture
1. Signal Generation Stack
The strategy uses multiple technical indicators calibrated for cryptocurrency momentum:
MACD with parameters 8/21/5 (fast/slow/signal) optimized for crypto acceleration phases
EMA ribbon using 8/21/34 periods with slope analysis to assess trend structure
Volume impulse detection combining SMA baseline, standard deviation, and z-score filtering
RSI (21 period) and MFI (21 period) for momentum confirmation
Bollinger Bands and Keltner Channels for squeeze detection
2. Volatility Regime Classification
The strategy normalizes ATR as a percentage of price and classifies market conditions into three regimes:
Compression (< 0.8% ATR): Reduced position sizing, tighter stops (1.05x ATR), lower profit targets (1.6x ATR)
Expansion (0.8% - 1.6% ATR): Standard risk parameters, balanced risk-reward (1.55x stop, 2.05x target)
Velocity (> 1.6% ATR): Wider stops (2.1x ATR), amplified targets (2.8x ATR), tighter trailing offsets
ATR is calculated over 21 periods and smoothed with a 13-period EMA to reduce noise from wicks.
3. Multi-Path Entry System
Four independent signal pathways contribute to a composite strength score (0-100):
Trend Break (30 points): Requires EMA ribbon alignment, positive slope, and structure breakout above/below recent highs/lows
Momentum Surge (30 points): MACD histogram exceeds adaptive baseline, MACD line crosses signal, RSI/MFI above/below thresholds, with volume impulse confirmation
Squeeze Release (25 points): Bollinger Bands compress inside Keltner Channels, then release with momentum bias
Micro Pullback (15 points): Shallow retracements within trend structure that reset without breaking support/resistance
Additional scoring modifiers:
Volume impulse: +5 points when present, -5 when absent
Regime bonus: +5 in velocity, -2 in compression
Cycle bias: +5 when aligned, -5 when counter-trend
Trades only execute when the composite score reaches the minimum threshold (default: 55) and all filters agree.
4. Risk Management Framework
Position sizing is calculated from:
RiskCapital = Equity × (riskPerTradePct / 100)
StopDistance = ATR × StopMultiplier(regime)
Quantity = min(RiskCapital / StopDistance, MaxExposure / Price)
The strategy includes:
Risk per trade: 0.65% of equity (configurable)
Maximum exposure: 12% of equity (configurable)
Regime-adaptive stop and target multipliers
Adaptive trailing stops based on ATR and regime
Kill switch that disables new entries after 6.5% drawdown
Momentum fail-safe exits when MACD polarity flips or ribbon structure breaks
5. Additional Filters
Cycle Oscillator : Measures price deviation from 55-period EMA. Requires cycle bias alignment (default: ±0.15%) before entry
BTC Dominance Filter : Optional filter using CRYPTOCAP:BTC.D to reduce long entries during risk-off periods (rising dominance) and short entries during risk-on periods
Session Filter : Optional time-based restriction (disabled by default for 24/7 operation)
Strategy Parameters
All default values used in backtesting:
Core Controls
Enable Short Structure: true
Restrict to Session Window: false
Execution Session: 0000-2359:1234567 (24/7)
Allow Same-Bar Re-Entry: true
Optimization Constants
MACD Fast Length: 8
MACD Slow Length: 21
MACD Signal Length: 5
EMA Fast: 8
EMA Mid: 21
EMA Slow: 34
EMA Slope Lookback: 8
Structure Break Window: 9
Regime Intelligence
ATR Length: 21
Volatility Soothing: 13
Low Vol Regime Threshold: 0.8% ATR
High Vol Regime Threshold: 1.6% ATR
Cycle Bias Length: 55
Cycle Bias Threshold: 0.15%
BTC Dominance Feed: CRYPTOCAP:BTC.D
BTC Dominance Confirmation: true
Signal Pathways
Volume Baseline Length: 34
Volume Impulse Multiplier: 1.15
Volume Z-Score Threshold: 0.5
MACD Histogram Smoothing: 5
MACD Histogram Sensitivity: 1.15
RSI Length: 21
RSI Momentum Trigger: 55
MFI Length: 21
MFI Momentum Trigger: 55
Squeeze Length: 20
Bollinger Multiplier: 1.5
Keltner Multiplier: 1.8
Squeeze Release Momentum Gate: 1.0
Micro Pullback Depth: 7
Minimum Composite Signal Strength: 55
Risk Architecture
Risk Allocation per Trade: 0.65%
Max Exposure: 12% of Equity
Base Risk/Reward Anchor: 1.8
Stop Multiplier • Low Regime: 1.05
Stop Multiplier • Medium Regime: 1.55
Stop Multiplier • High Regime: 2.1
Take Profit Multiplier • Low Regime: 1.6
Take Profit Multiplier • Medium Regime: 2.05
Take Profit Multiplier • High Regime: 2.8
Adaptive Trailing Engine: true
Trailing Offset Multiplier: 0.9
Quantity Granularity: 0.001
Kill Switch Drawdown: 6.5%
Strategy Settings
Initial Capital: $100,000
Commission: 0.04% (0.04 commission_value)
Slippage: 1 tick
Pyramiding: 1 (no position stacking)
calc_on_every_tick: true
calc_on_order_fills: true
Visualization Features
The strategy includes:
EMA ribbon overlay (8/21/34) with customizable colors
Regime-tinted background (compression: indigo, expansion: purple, velocity: magenta)
Dynamic bar coloring based on signal strength divergence
Signal labels for entry points
On-chart dashboard displaying regime, ATR%, signal strength, position status, stops, targets, and risk metrics
Recommended Usage
Timeframes
The strategy is optimized for 5-minute charts. It can operate on 3-minute and 1-minute timeframes for faster scalping, or 15-minute for swing confirmation. When using higher timeframes, consider:
Increasing structure lookback windows
Raising RSI trigger thresholds above 58 to filter noise
Extending volume baseline length
Markets
Designed for high-liquidity cryptocurrency perpetual futures:
BTC/USDT, BTC/USD perpetuals
ETH perpetuals
Major L1 tokens with sufficient volume
For thinner order books, increase volume impulse multiplier and adjust quantity granularity to match exchange minimums.
Limitations and Compromises
Backtesting Considerations
TradingView strategy backtesting does not replicate broker execution. Actual fills, slippage, and commissions may differ
The strategy uses calc_on_every_tick=true and calc_on_order_fills=true to reduce bar-close distortions, but real execution still depends on broker infrastructure
At least 200 historical bars are required to stabilize regime classification, volume baselines, and cycle context
Market Structure Dependencies
BTC dominance feed ( CRYPTOCAP:BTC.D ) may lag during low-liquidity periods or weekends. Consider disabling the filter if data quality degrades
Volume impulse detection assumes consistent order book depth. During extreme volatility or exchange issues, volume signatures may be unreliable
Regime classification based on ATR percentage assumes normal volatility distributions. During black swan events, regime thresholds may not adapt quickly enough
Parameter Sensitivity
Default parameters are tuned for BTC/ETH perpetuals on 5-minute charts. Different assets or timeframes require recalibration
The composite signal strength threshold (55) balances selectivity vs. opportunity. Higher values reduce false signals but may miss valid setups
Risk per trade (0.65%) and max exposure (12%) are conservative defaults. Aggressive scaling increases drawdown risk
Execution Constraints
Same-bar re-entry requires broker support for rapid order placement
Quantity granularity must match exchange contract minimums
Kill switch drawdown (6.5%) may trigger during normal volatility cycles, requiring manual reset
Performance Expectations
This strategy is a framework for momentum-based cryptocurrency trading. Performance depends on:
Market conditions (trending vs. ranging)
Exchange execution quality
Parameter calibration for specific assets
Risk management discipline
Backtest results shown in publications reflect specific market conditions and parameter sets. Past performance does not indicate future results. Always forward test with paper trading or broker simulation before deploying live capital.
Code Structure
The strategy is organized into functional sections:
Configuration groups for parameter organization
Helper functions for position sizing and normalization
Core indicator calculations (MACD, EMA, ATR, RSI, MFI, volume analytics)
Regime classification logic
Multi-path signal generation and composite scoring
Entry/exit orchestration with risk management
Visualization layer with dashboard and chart elements
The source code is open and can be modified to suit your trading requirements. Everyone is encouraged to understand the logic before deploying and to test thoroughly in their target markets.
Modification Guidelines
When adapting this strategy:
Document any parameter changes in your publication
Test modifications across different market regimes
Validate position sizing logic for your exchange's contract specifications
Consider exchange-specific limitations (funding rates, liquidation mechanics, order types)
Conclusion
This strategy provides a structured approach to cryptocurrency momentum trading with regime awareness and adaptive risk controls. It is not a guaranteed profit system, but rather a framework that requires understanding, testing, and ongoing calibration to market conditions.
You should thoroughly understand the logic, test extensively in their target markets, and manage risk appropriately. The strategy's effectiveness depends on proper parameter tuning, reliable execution infrastructure, and disciplined risk management.
Disclaimer
This script and its documentation are for educational and informational purposes only. They do not constitute financial advice, investment recommendations, or trading advice of any kind. Trading cryptocurrencies and derivatives involves substantial risk of loss and is not suitable for all investors. Past performance, whether real or indicated by backtesting, does not guarantee future results.
This strategy is provided "as is" without any warranties or guarantees of profitability
You should not rely solely on this strategy for making trading decisions
Always conduct your own research and analysis before making any financial decisions
Consider consulting with a qualified financial advisor before engaging in trading activities
The authors and contributors are not responsible for any losses incurred from using this strategy
Cryptocurrency trading can result in the loss of your entire investment
Only trade with capital you can afford to lose
Use this strategy at your own risk. The responsibility for any trading decisions and their consequences lies entirely with you.
WN 5-20-50 SMA Setup (Discrete Lines = SL TP) Multiple Entries Pretty Simple Script as I got this idea from a YouTuber that showed us how to use AI to make TradingView Indicators.
When the 5 day Simple Moving Average Goes Above the 20 day Simple Moving Average it issues a BUY Signal when the Trend itself is over the 50 day Simple Moving Average.
When the 5 day Simple Moving Average Goes Below the 20 day Simple Moving Average it issues a SELL Signal when the Trend itself is under the 50 day Simple Moving Average.
The Green Cloud Represents price over the 50 day Simple Moving Average. BUY signals will only show up in the green cloud.
The Red Cloud Represents price under the 50 day Simple Moving Average. SELL signals will only show up in the green cloud.
The lines represent Stop Loss and two Take Profit Levels. Take Profit 1 is 1.5x the stop loss and Take Profit 2 is 3x the Stop Loss.
This version of the Script has multiple Trend signals for entries so you can scale into a trade when the Trend is being aggressive.
VWAP + RVOL (Merged):
📊 VWAP + RVOL (Merged)
VWAP + RVOL (Merged) is a professional intraday trading indicator that combines:
Session VWAP to define institutional direction and fair value
True Intraday Relative Volume (RVOL) to measure real-time volume strength compared to the same minute over previous days
The script is specifically designed for U.S. equities and performs best in:
Premarket momentum
Opening Range Breakout (ORB)
VWAP pullbacks
Scalping & day trading
🔍 What does this indicator provide?
1️⃣ True Intraday RVOL
Calculates minute-accurate relative volume, comparing current volume to the same minute across a user-defined number of prior days
Correctly handles sessions crossing midnight (after-hours & premarket)
Displays RVOL in a separate pane for clean, noise-free analysis
Default RVOL reference levels:
0.5 → Weak volume
1.0 → Normal volume
1.5 → Strong volume
2.0 → Unusual / institutional activity
2️⃣ Session VWAP
True session-based VWAP
Identifies institutional fair value
Acts as a primary directional filter:
Above VWAP → Bullish bias
Below VWAP → Bearish bias
✅ Practical Trading Use
Long Setup:
Price above VWAP
RVOL ≥ 1.5
Light pullback or VWAP retest
Confirmation candle with increasing volume
Avoid trades when:
Price below VWAP
RVOL < 1.0
⚙️ Settings
RVOL Lookback Days – Number of days used for RVOL comparison (default: 5)
RVOL Reference Lines – Toggle RVOL levels on/off
VWAP Source – Price source for VWAP calculation
Hide VWAP on 1D+ – Optional VWAP hiding on higher timeframes
📌 Important Notes
Designed for intraday timeframes only (≥ 1 minute and < 1 day)
Requires volume data from the data provider
Not intended for daily or higher timeframes
🎯 Who is this indicator for?
Momentum traders
Day traders & scalpers
ORB and VWAP pullback strategies
Traders seeking volume confirmation before entry
⚠️ Disclaimer
This indicator is a decision-support tool, not a trading recommendation.
Always apply proper risk management.






















