A13: Micro MAP Scalping StrategyA13: Micro MAP Scalping Strategy — Institutional Breakout Scalper (Pine Script v6 – Protected Source)
A completely original, professional scalping strategy developed from scratch over several months of research and live-market testing. The system is built around institutional breakout zones with a unique multi-stage validation process, strict confirmation requirements, and sophisticated risk management — all designed specifically for 1–15 minute timeframes.
Why this implementation is original and the source code is protected
The entire logic — from breakout detection to entry confirmation, multi-filter stop-loss engines, and dynamic position sizing — was built independently without relying on any existing public libraries, built-ins, or open-source code beyond standard Pine functions. The proprietary validation rules, ATR-scaled gap filtering, and layered confirmation system required extensive original development to achieve consistent performance in real-market conditions. Protecting the source code is necessary to preserve the unique edge that distinguishes this system from standard or publicly available implementations.
Core concepts and methodology (fully transparent — no code revealed)
1. Institutional Breakout Zone Detection
• Real-time identification of high-probability zones using a custom ATR-based minimum gap filter
• Zones are only considered valid when accompanied by clear price displacement and volume confirmation
• No reliance on standard Fair Value Gap or order block libraries — completely custom validation
2. Strict Dual Confirmation Entry Logic
• Entry requires one of two precise conditions:
— Confirmed pullback retest of the validated breakout zone, or
— Clean inside-bar formation fully contained within the zone
• Both conditions must align with the directional bias of the breakout
3. Five Independent Stop-Loss Engines
• ATR-based (default and recommended)
• Swing Low/High levels
• Pivot Point structure
• Trailing Stop with ATR offset
• Fixed percentage
• Every engine includes minimum and maximum stop-loss filters to prevent unrealistic risk during extreme volatility
4. Professional Risk & Position Sizing Engine
• Fixed percentage risk per trade (default 1%)
• Optional compounding mode for growing accounts
• Real-time calculation based on exact stop distance and current equity
• Full integration with leverage settings
5. Multi-Layer Filtering System
• Multi-timeframe EMA filter (default 60-period, fully customizable timeframe)
• Complete trading session control with UTC offset support
• Date range filtering for strategy deployment control
• Consecutive loss protection (optional multi-stop filter)
• Minimum/maximum stop-loss filters to eliminate low-probability setups
6. Real-Time Performance Dashboard
• Live display of win rate, net profit, maximum drawdown, total trades
• Consecutive win/loss streak tracking
• Current position size and average entry price
• All statistics visible directly on chart
Backtesting settings used in the published chart
• Symbol: BTC/USD
• Timeframe: 15-minute
• Initial capital: $10,000
• Risk per trade: 1%
• Commission: 0.04% (realistic for major brokers)
• Slippage: enabled
• Sample size: 200+ trades
These are the exact default Properties settings of the strategy.
The strategy is completely free to add and use on your charts.
#Scalping #Breakout #Intraday #Institutional #RiskManagement #ProfessionalStrategy
"the strat" için komut dosyalarını ara
BTC Fear & Greed Incremental StrategyIMPORTANT: READ SETUP GUIDE BELOW OR IT WON'T WORK
# BTC Fear & Greed Incremental Strategy — TradeMaster AI (Pure BTC Stack)
## Strategy Overview
This advanced Bitcoin accumulation strategy is designed for long-term hodlers who want to systematically take profits during greed cycles and accumulate during fear periods, while preserving their core BTC position. Unlike traditional strategies that start with cash, this approach begins with a specified BTC allocation, making it perfect for existing Bitcoin holders who want to optimize their stack management.
## Key Features
### 🎯 **Pure BTC Stack Mode**
- Start with any amount of BTC (configurable)
- Strategy manages your existing stack, not new purchases
- Perfect for hodlers who want to optimize without timing markets
### 📊 **Fear & Greed Integration**
- Uses market sentiment data to drive buy/sell decisions
- Configurable thresholds for greed (selling) and fear (buying) triggers
- Automatic validation to ensure proper 0-100 scale data source
### 🐂 **Bull Year Optimization**
- Smart quarterly selling during bull market years (2017, 2021, 2025)
- Q1: 1% sells, Q2: 2% sells, Q3/Q4: 5% sells (configurable)
- **NO SELLING** during non-bull years - pure accumulation mode
- Preserves BTC during early bull phases, maximizes profits at peaks
### 🐻 **Bear Market Intelligence**
- Multi-regime detection: Bull, Early Bear, Deep Bear, Early Bull
- Different buying strategies based on market conditions
- Enhanced buying during deep bear markets with configurable multipliers
- Visual regime backgrounds for easy market condition identification
### 🛡️ **Risk Management**
- Minimum BTC allocation floor (prevents selling entire stack)
- Configurable position sizing for all trades
- Multiple safety checks and validation
### 📈 **Advanced Visualization**
- Clean 0-100 scale with 2 decimal precision
- Three main indicators: BTC Allocation %, Fear & Greed Index, BTC Holdings
- Real-time portfolio tracking with cash position display
- Enhanced info table showing all key metrics
## How to Use
### **Step 1: Setup**
1. Add the strategy to your BTC/USD chart (daily timeframe recommended)
2. **CRITICAL**: In settings, change the "Fear & Greed Source" from "close" to a proper 0-100 Fear & Greed indicator
---------------
I recommend Crypto Fear & Greed Index by TIA_Technology indicator
When selecting source with this indicator, look for "Crypto Fear and Greed Index:Index"
---------------
3. Set your "Starting BTC Quantity" to match your actual holdings
4. Configure your preferred "Start Date" (when you want the strategy to begin)
### **Step 2: Configure Bull Year Logic**
- Enable "Bull Year Logic" (default: enabled)
- Adjust quarterly sell percentages:
- Q1 (Jan-Mar): 1% (conservative early bull)
- Q2 (Apr-Jun): 2% (moderate mid bull)
- Q3/Q4 (Jul-Dec): 5% (aggressive peak targeting)
- Add future bull years to the list as needed
### **Step 3: Fine-tune Thresholds**
- **Greed Threshold**: 80 (sell when F&G > 80)
- **Fear Threshold**: 20 (buy when F&G < 20 in bull markets)
- **Deep Bear Fear Threshold**: 25 (enhanced buying in bear markets)
- Adjust based on your risk tolerance
### **Step 4: Risk Management**
- Set "Minimum BTC Allocation %" (default 20%) - prevents selling entire stack
- Configure sell/buy percentages based on your position size
- Enable bear market filters for enhanced timing
### **Step 5: Monitor Performance**
- **Orange Line**: Your BTC allocation percentage (target: fluctuate between 20-100%)
- **Blue Line**: Actual BTC holdings (should preserve core position)
- **Pink Line**: Fear & Greed Index (drives all decisions)
- **Table**: Real-time portfolio metrics including cash position
## Reading the Indicators
### **BTC Allocation Percentage (Orange Line)**
- **100%**: All portfolio in BTC, no cash available for buying
- **80%**: 80% BTC, 20% cash ready for fear buying
- **20%**: Minimum allocation, maximum cash position
### **Trading Signals**
- **Green Buy Signals**: Appear during fear periods with available cash
- **Red Sell Signals**: Appear during greed periods in bull years only
- **No Signals**: Either allocation limits reached or non-bull year
## Strategy Logic
### **Bull Years (2017, 2021, 2025)**
- Q1: Conservative 1% sells (preserve stack for later)
- Q2: Moderate 2% sells (gradual profit taking)
- Q3/Q4: Aggressive 5% sells (peak targeting)
- Fear buying active (accumulate on dips)
### **Non-Bull Years**
- **Zero selling** - pure accumulation mode
- Enhanced fear buying during bear markets
- Focus on rebuilding stack for next bull cycle
## Important Notes
- **This is not financial advice** - backtest thoroughly before use
- Designed for **long-term holders** (4+ year cycles)
- **Requires proper Fear & Greed data source** - validate in settings
- Best used on **daily timeframe** for major trend following
- **Cash calculations**: Use allocation % and BTC holdings to calculate available cash: `Cash = (Total Portfolio × (1 - Allocation%/100))`
## Risk Disclaimer
This strategy involves active trading and position management. Past performance does not guarantee future results. Always do your own research and never invest more than you can afford to lose. The strategy is designed for educational purposes and long-term Bitcoin accumulation thesis.
---
*Developed by Sol_Crypto for the Bitcoin community. Happy stacking! 🚀*
Strategy: HMA 50 + Supertrend SniperHMA 50 + Supertrend Confluence Strategy (Trend Following with Noise Filtering)
Description:
Introduction and Concept This strategy is designed to solve a common problem in trend-following trading: Lag vs. False Signals. Standard Moving Averages often lag too much, while price action indicators can generate false signals during choppy markets. This script combines the speed of the Hull Moving Average (HMA) with the volatility-based filtering of the Supertrend indicator to create a robust "Confluence System."
The primary goal of this script is not just to overlay two indicators, but to enforce a strict rule where a trade is only taken when Momentum (HMA) and Volatility Direction (Supertrend) are in perfect agreement.
Why this combination? (The Logic Behind the Mashup)
Hull Moving Average (HMA 50): We use the HMA because it significantly reduces lag compared to SMA or EMA by using weighted calculations. It acts as our primary Trend Direction detector. However, HMA can be too sensitive and "whipsaw" during sideways markets.
Supertrend (ATR-based): We use the Supertrend (Factor 3.0, Period 10) as our Volatility Filter. It uses Average True Range (ATR) to determine the significant trend boundary.
How it Works (Methodology) The strategy uses a boolean logic system to filter out low-quality trades:
Bullish Confluence: The HMA must be rising (Slope > 0) AND the Close Price must be above the Supertrend line (Uptrend).
Bearish Confluence: The HMA must be falling (Slope < 0) AND the Close Price must be below the Supertrend line (Downtrend).
The "Choppy Zone" (Noise Filter): This is a unique feature of this script. If the HMA indicates one direction (e.g., Rising) but the Supertrend indicates the opposite (e.g., Downtrend), the market is considered "Choppy" or indecisive. In this state, the script paints the candles or HMA line Gray and exits all positions (optional setting) to preserve capital.
Visual Guide & Signals To make the script easy to interpret for traders who do not read Pine Script, I have implemented specific visual cues:
Green Cross (+): Indicates a LONG entry signal. Both HMA and Supertrend align bullishly.
Red Cross (X): Indicates a SHORT entry signal. Both HMA and Supertrend align bearishly.
Thick Line (HMA): The main line changes color based on the trend.
Green: Bullish Confluence.
Red: Bearish Confluence.
Gray: Divergence/Choppy (No Trade Zone).
Thin Step Line: This is the Supertrend line, serving as your dynamic Trailing Stop Loss.
Strategy Settings
HMA Length: Default is 50 (Mid-term trend).
ATR Factor/Period: Default is 3.0/10 (Standard for trend catching).
Exit on Choppy: A toggle switch allowing users to decide whether to hold through noise or exit immediately when indicators disagree.
Risk Warning This strategy performs best in trending markets (Forex, Crypto, Indices). Like all trend-following systems, it may experience drawdown during prolonged accumulation/distribution phases. Please backtest with your specific asset before using it with real capital.
Hanzo Strategy - Volume & Smart Money📊 HANZO STRATEGY - Complete Description
## 🎯 Strategy Overview
The **Hanzo Strategy** is an advanced institutional trading system that combines Volume Profile analysis, Smart Money Concepts, and Price Action patterns to identify high-probability trade setups. This strategy is specifically designed for trading Gold (XAUUSD), NAS100, and US30 on the 15-minute timeframe.
---
## 🧠 Core Trading Philosophy
The Hanzo Strategy operates on the principle that **institutional money leaves footprints** in the market through:
- Volume accumulation at key price levels
- Liquidity sweeps and stop hunts
- Order block formations
- Strategic wick rejections at support/resistance
By identifying these institutional behaviors and combining them with precise volume analysis, the strategy aims to trade **with** the smart money, not against it.
---
## 🔑 Key Components
### 1️⃣ **Fixed Range Volume Profile (FRVP)**
- **What it does:** Analyzes the last 2 days of price action and calculates where the most volume traded
- **Point of Control (POC):** The price level with the highest trading volume - acts as a magnet for price
- **How we use it:** Price tends to revert to POC. When price is far from POC and starts moving toward it, we prepare for entries
- **Visual:** Yellow cross line on the chart marking the POC
### 2️⃣ **Wick Cluster Detection**
- **What it does:** Automatically identifies price levels where multiple candle wicks have rejected (2-6+ wicks)
- **Why it matters:** Multiple rejections at the same level indicate strong institutional support/resistance
- **Upper wick clusters:** Resistance zones where price was rejected downward
- **Lower wick clusters:** Support zones where price was rejected upward
- **Visual:** Dashed lines (red for resistance, green for support)
### 3️⃣ **Session Volatility Boxes**
- **London Session (8:00-16:00 UTC+3):** Captures European market volatility range
- **New York Session (13:30-20:00 UTC+3):** Captures US market volatility range
- **How we use it:** These ranges often act as support/resistance for the rest of the day
- **Visual:** Blue box for London, Orange box for New York
### 4️⃣ **Smart Money Zones**
**Order Blocks:**
- Strong institutional areas where banks and hedge funds placed large orders
- **Bullish Order Block:** Area where smart money bought heavily before a strong upward move
- **Bearish Order Block:** Area where smart money sold heavily before a strong downward move
- **Visual:** Green/Red filled boxes with "Bull OB" or "Bear OB" labels
**Liquidity Sweeps:**
- Price breaks above recent high or below recent low, then quickly reverses
- This is a "stop hunt" - institutions triggering retail stops before moving in the real direction
- **Bullish Sweep:** Price dips below support, grabs stops, then reverses up
- **Bearish Sweep:** Price pops above resistance, grabs stops, then reverses down
- **Visual:** Triangle markers (green up = bullish, red down = bearish)
### 5️⃣ **Engulfing Pattern Recognition**
- **Bullish Engulfing:** Large green candle fully engulfs the previous red candle - shows strong buying pressure
- **Bearish Engulfing:** Large red candle fully engulfs the previous green candle - shows strong selling pressure
- **How we use it:** Confirmation signal when combined with other factors
- **Visual:** Small circles below/above candles
### 6️⃣ **Trend Bias Indicator**
- Dynamically calculates market bias based on price position relative to POC
- **Bullish:** Price > 0.2% above POC
- **Neutral:** Price within 0.2% of POC
- **Bearish:** Price > 0.2% below POC
- **Visual:** Label at top of chart showing current bias
---
## 📈 Entry Signal Logic
The strategy generates **LONG** and **SHORT** signals based on confluence of multiple factors:
### 🟢 LONG ENTRY CONDITIONS:
1. **POC Break:** Price crosses above POC from below + Trend Bias is Bullish
**OR**
2. **Support Bounce:** Price touches a lower wick cluster + Bullish Engulfing pattern forms
3. **Additional Filter:** Trend Bias must NOT be Bearish
### 🔴 SHORT ENTRY CONDITIONS:
1. **POC Break:** Price crosses below POC from above + Trend Bias is Bearish
**OR**
2. **Resistance Rejection:** Price touches an upper wick cluster + Bearish Engulfing pattern forms
3. **Additional Filter:** Trend Bias must NOT be Bullish
---
## 🎯 Risk Management
### Stop Loss:
- **Calculation:** 2 × ATR(14) from entry price
- **Logic:** Uses Average True Range to adapt to current market volatility
- **Example:** If ATR = 10 points, stop loss is 20 points away
### Take Profit:
- **Calculation:** 3 × ATR(14) from entry price
- **Risk:Reward Ratio:** 1:1.5 (risking 2 ATR to make 3 ATR)
- **Example:** If ATR = 10 points, take profit is 30 points away
### Position Sizing:
- **Default:** 2% of account equity per trade
- **Adjustable:** Can be modified in strategy settings
---
## ⚙️ Strategy Settings & Customization
### Volume Profile Settings:
- **Lookback Days:** How many days to analyze (default: 2)
- **Profile Rows:** Resolution of volume calculation (default: 24)
- **POC Distance Threshold:** Minimum distance from POC for "far from POC" status (default: 0.3%)
### Wick Cluster Settings:
- **Min Wicks for Cluster:** How many wicks needed to form a cluster (default: 3)
- **Lookback Bars:** How far back to search for wicks (default: 50)
- **Tolerance %:** How close wicks must be to cluster together (default: 0.15%)
### Session Settings:
- **London Session:** 08:00-16:00 (adjustable)
- **New York Session:** 13:30-20:00 (adjustable)
- **UTC Offset:** Timezone adjustment (default: +3)
### Smart Money Settings:
- **Order Block Lookback:** How far back to search for order blocks (default: 20)
- **Toggle On/Off:** Can enable/disable order blocks and liquidity sweeps independently
---
## 📊 Performance Metrics Display
The strategy includes a real-time **Information Table** (top-right corner) showing:
| Metric | Description |
|--------|-------------|
| **Trend Bias** | Current market direction (Bullish/Neutral/Bearish) |
| **POC Price** | Current Point of Control price level |
| **Distance from POC** | How far current price is from POC (%) |
| **ATR (14)** | Current volatility measurement |
| **High Wick Clusters** | Number of resistance clusters detected |
| **Low Wick Clusters** | Number of support clusters detected |
| **Current Signal** | Active signal (LONG/SHORT/None) |
---
## 🚨 Alert System
The strategy can send alerts for:
1. **LONG Signal Triggered** - When all conditions met for long entry
2. **SHORT Signal Triggered** - When all conditions met for short entry
3. **Price Touching Support Cluster** - Warning that price at key support
4. **Price Touching Resistance Cluster** - Warning that price at key resistance
**Alert Frequency:** Once per bar (prevents spam)
---
## 📅 Best Trading Timeframes & Instruments
### ✅ Recommended Timeframes:
- **Primary Entry:** 15-minute chart
- **Trend Confirmation:** 30-minute or 1-hour chart
- **Higher Timeframe Filter:** 4-hour for major trend direction
### ✅ Recommended Instruments:
1. **Gold (XAUUSD)** - High volatility, respects key levels well
2. **NAS100 (US Tech 100)** - Strong trends, good liquidity
3. **US30 (Dow Jones)** - Reliable institutional participation
4. **EUR/USD, GBP/USD** - Can work on major forex pairs with adjustments
### ⏰ Best Trading Sessions:
- **London Open (08:00-12:00 UTC+3)** - High volatility, clear directional moves
- **New York Open (13:30-17:00 UTC+3)** - Strongest moves, highest volume
- **Overlap (13:30-16:00 UTC+3)** - Best liquidity and movement
### ⚠️ Avoid Trading:
- Asian session (low volatility)
- Major news events (first 15 minutes after high-impact news)
- Sundays and holidays (low liquidity)
---
## 💡 Pro Trading Tips
### 1. **Multiple Timeframe Confirmation**
- Check 1-hour chart for overall trend before taking 15-minute signals
- Only take LONG signals if 1-hour is bullish
- Only take SHORT signals if 1-hour is bearish
### 2. **POC Strategy**
- Best entries occur when price returns to POC after being far away
- Wait for POC touch + confirmation pattern (engulfing, order block)
- POC acts as support in uptrends, resistance in downtrends
### 3. **Wick Cluster Strategy**
- Strongest signals occur when wick clusters align with POC
- Look for 4+ wicks at the same level for highest probability
- Recent clusters (formed in last 2 days) are stronger than old ones
### 4. **Order Block Strategy**
- Fresh order blocks (just formed) are more powerful
- Wait for price to return to order block zone before entering
- Best when order block + wick cluster occur at same level
### 5. **London/NY Box Strategy**
- If price breaks above session high → look for LONG pullback entries
- If price breaks below session low → look for SHORT pullback entries
- Price often returns to session mid-point before continuing
### 6. **Risk Management Rules**
- **Never risk more than 2% per trade**
- **Don't trade more than 3 positions simultaneously**
- **If 2 losses in a row, reduce size to 1% or stop for the day**
- **Move stop to breakeven after 1:1 profit reached**
### 7. **High-Probability Setups**
Look for **CONFLUENCE** - the more factors aligned, the better:
✅ **BEST LONG SETUP:**
- Price at lower wick cluster (support)
- Price at/near POC
- Bullish order block present
- Bullish engulfing pattern forms
- Trend Bias = Bullish
- 1-hour chart = uptrend
✅ **BEST SHORT SETUP:**
- Price at upper wick cluster (resistance)
- Price at/near POC
- Bearish order block present
- Bearish engulfing pattern forms
- Trend Bias = Bearish
- 1-hour chart = downtrend
---
## 📈 Performance Expectations
### Typical Win Rate:
- **Conservative Trading (high confluence only):** 55-65% win rate
- **Moderate Trading (good setups):** 45-55% win rate
- **Aggressive Trading (all signals):** 35-45% win rate
### Typical Risk:Reward:
- **Average R:R:** 1:1.5 (with 2 ATR stop and 3 ATR target)
- **Breakeven adjusted:** Often improves to 1:2+ when stop moved to BE
### Monthly Trade Frequency (15M chart):
- **Gold:** 60-100 signals per month
- **NAS100:** 50-80 signals per month
- **US30:** 40-70 signals per month
---
## 🎓 Strategy Philosophy Summary
The Hanzo Strategy is built on three core principles:
1. **Follow the Volume** - Trade where institutions are active
2. **Respect the Levels** - Key support/resistance zones matter
3. **Confirm with Price Action** - Wait for confirmation before entering
This is NOT a holy grail - it requires:
- ✅ Discipline to wait for proper setups
- ✅ Patience to let trades play out
- ✅ Risk management to protect capital
- ✅ Emotional control to handle losses
---
## 🛠️ How to Use This Strategy
### Step 1: Initial Setup
1. Add strategy to 15-minute chart
2. Check that all components are visible (POC, clusters, boxes, etc.)
3. Adjust colors if needed for your chart theme
### Step 2: Daily Routine
1. **Pre-Market (before 8:00 AM):**
- Check POC location
- Note wick clusters from previous days
- Mark London/NY session boxes from yesterday
2. **London Session (8:00-16:00):**
- Watch for POC interactions
- Monitor for order blocks forming
- Wait for confluence setups
3. **NY Session (13:30-20:00):**
- Highest activity period
- Best signal quality
- More aggressive entries allowed
### Step 3: Trade Execution
1. Wait for signal label (LONG or SHORT) to appear
2. Check confluence factors (minimum 3)
3. Enter immediately or on next candle
4. Set stop loss at 2 × ATR from entry
5. Set take profit at 3 × ATR from entry
6. Move stop to breakeven at +1.5 ATR profit
### Step 4: Trade Management
- **Don't move stop closer** (let trade breathe)
- **Can trail stop** after 2:1 profit reached
- **Can take partial profits** at 1.5:1 and let rest run
- **Journal every trade** for future improvement
---
## ⚠️ Important Disclaimers
1. **Past performance does not guarantee future results**
2. **This strategy involves risk** - only trade with money you can afford to lose
3. **Backtest thoroughly** on your specific instruments before live trading
4. **Start small** - test with minimum position sizes first
5. **Market conditions change** - what works today may not work tomorrow
6. **Use proper risk management** - this is the #1 key to long-term success
---
## 🎯 Quick Reference Checklist
Before taking any trade, ask yourself:
- ✅ Is there a clear LONG or SHORT signal?
- ✅ Are we in London or NY session?
- ✅ Is price at/near POC or wick cluster?
- ✅ Is trend bias aligned with my direction?
- ✅ Is there an order block or engulfing pattern?
- ✅ Is my risk:reward at least 1:1.5?
- ✅ Am I risking no more than 2% of my account?
**If 5+ are YES → Take the trade!**
**If 3 or fewer YES → Skip and wait for better setup!**
---
## 🚀 Final Words
The Hanzo Strategy is a professional-grade trading system that combines institutional analysis with precise technical execution. Success comes not from taking every signal, but from taking only the **highest probability setups** with proper risk management.
**Trade smart. Trade safe. Trade like an institution.**
📊 **Good luck and profitable trading!** 📊
Elliott Wave Full Fractal System CleanElliott Wave: Full Fractal System (Automated)
This script is a complete Fractal Trading System that automates Elliott Wave analysis. It moves beyond simple wave counting by combining multi-degree wave detection (Primary, Intermediate, Minor) with an automated "Sniper" entry strategy based on high-probability Wave 4 pullbacks.
1. Idea of the Script This tool acts as an educational Elliott Wave assistant that automatically:
Detects Swings: Uses a pivot engine (ZigZag-like logic) to identify key market structure.
Identifies Impulses: Scans for valid 1–5 motive waves across multiple timeframes.
Visualizes Corrections: Detects and labels A-B-C corrective phases after an impulse.
Executes Strategy: Adds a strategy layer on the Intermediate degree to backtest optimal entry zones.
2. How it Works: The "Fractal Sniper" Strategy The script applies strict algorithmic logic to Elliott Wave Theory. It analyzes the Intermediate (Green) degree to generate signals:
Step 1: The Setup (Wave 3 Identification) The script scans for a valid Wave 3 impulse. It ensures Wave 3 is not the shortest and the structure respects fractal rules.
Step 2: The "Wait" Phase (Target Zone) Once Wave 3 is confirmed, the script projects a Box (Green for Long, Red for Short). You will see a label: WAIT FOR DIP. Logic: We wait for price to retrace to the 50% Fibonacci level (The Golden Zone). We do not chase the top of Wave 3.
Step 3: The Trigger ("Sniper" Entry) A trade is triggered only when price touches the specific entry zone while maintaining structure. Signal: Sniper Long 🚀 or Sniper Short 🔻.
Step 4: Automated Risk Management
Stop Loss (SL): Placed at the extremum of Wave 1 (Theory: Wave 4 cannot overlap Wave 1).
Take Profit (TP): Placed at the 1.618 Fibonacci Extension of Wave 5.
3. 📊 Visual Legend (Fractal Degrees) The script analyzes three timeframes simultaneously. Use this guide to read the chart:
🔵 Blue (Primary Degree): Macro Trend. Marked with Circles (①, ②...). Use this for overall market bias.
🟢 Green (Intermediate Degree): The Trading Layer. Marked with Parentheses ((1), (2)...). All Strategy Signals are generated from this degree.
🔴 Red (Minor Degree): Micro Structure. Marked with Roman Numerals (i, ii...). Useful for seeing the sub-waves inside larger moves.
4. 📉 A-B-C Corrections (Visual Only) The script automatically detects and labels corrective phases (A, B, C) following a 5-wave impulse.
Function: These labels indicate that the trend is correcting or resting.
Note: The "Strategy" (Buy/Sell logic) ignores these A-B-C labels. It sees the correction and draws it for your awareness, but it does not risk money on counter-trend moves.
5. ⚠️ CRITICAL NOTE ON BACKTESTING & LAG This strategy uses ta.pivothigh and ta.pivotlow to identify wave structures.
The Lag: Pivot points are lagging indicators. A pivot is only mathematically confirmed X bars after the peak or valley has occurred.
The Backtest: While the labels are drawn historically on the correct bars, the strategy logic strictly waits for the pivot confirmation before generating a signal. This prevents "repainting" in live trading, but users must understand that the signal occurs after the pivot is locked in.
6. Settings Included
Degrees: Customizable lookback lengths for Primary, Intermediate, and Minor waves.
Strict Rules: Toggle to enforce standard Elliott rules (e.g., No Overlap).
Realistic Simulation: Commission and slippage are enabled in the strategy settings to provide realistic results.
Disclaimer: This script is for educational and research purposes only. It applies strict algorithmic logic to Elliott Wave Theory, but wave counting is inherently subjective. Past performance does not guarantee future results.
The Oracle: Dip & Top Adaptive Sniper [Hakan Yorganci]█ OVERVIEW
The Oracle: Dip & Top Adaptive Sniper is a precision-focused trend trading strategy designed to solve the biggest problem in swing trading: Timing.
Most trend-following strategies chase price ("FOMO"), buying when the asset is already overextended. The Oracle takes a different approach. It adopts a "Sniper" mentality: it identifies a strong macro trend but patiently waits for a Mean Reversion (pullback) to execute an entry at a discounted price.
By combining the structural strength of Moving Averages (SMA 50/200) with the momentum precision of RSI and the volatility filtering of ADX, this script filters out noise and targets high-probability setups.
█ HOW IT WORKS
This strategy operates on a strictly algorithmic protocol known as "The Yorganci Protocol," which involves three distinct phases: Filter, Target, and Execute.
1. The Macro Filter (Trend Identification)
* SMA 200 Rule: By default, the strategy only scans for buy signals when the price is trading above the 200-period Simple Moving Average. This ensures we are always trading in the direction of the long-term bull market.
* Adaptive Switch: A new feature allows users to toggle the Only Buy Above SMA 200? filter OFF. This enables the strategy to hunt for oversold bounces (dead cat bounces) even during bearish or neutral market structures.
2. The Volatility Filter (ADX Integration)
* Sideways Protection: One of the main weaknesses of moving average strategies is "whipsaw" losses during choppy, ranging markets.
* Solution: The Oracle utilizes the ADX (Average Directional Index). It will BLOCK any trade entry if the ADX is below the threshold (Default: 20). This ensures capital is only deployed when a genuine trend is present.
3. The Sniper Entry (Buying the Dip)
* Instead of buying on breakout strength (e.g., RSI > 60), The Oracle waits for the RSI Moving Average to dip into the "Value Zone" (Default: 45) and cross back up. This technique allows for tighter stops and higher Risk/Reward ratios compared to traditional breakout systems.
█ EXIT STRATEGY
The Oracle employs a dynamic dual-exit mechanism to maximize gains and protect capital:
* Take Profit (The Peak): The strategy monitors RSI heat. When the RSI Moving Average breaches the Overbought Threshold (Default: 75), it signals a "Take Profit", securing gains near the local top before a potential reversal.
* Stop Loss (Trend Invalidated): If the market structure fails and the price closes below the 50-period SMA, the position is immediately closed to prevent deep drawdowns.
█ SETTINGS & CONFIGURATION
* Moving Averages: Fully customizable lengths for Support (SMA 50) and Trend (SMA 200).
* Trend Filter: Checkbox to enable/disable the "Bull Market Only" rule.
* RSI Thresholds:
* Sniper Buy Level: Adjustable (Default: 45). Lower values = Deeper dips, fewer trades.
* Peak Sell Level: Adjustable (Default: 75). Higher values = Longer holds, potentially higher profit.
* ADX Filter: Checkbox to enable/disable volatility filtering.
█ BEST PRACTICES
* Timeframe: Designed primarily for 4H (4-Hour) charts for swing trading. It can also be used on 1H for more frequent signals.
* Assets: Highly effective on trending assets such as Bitcoin (BTC), Ethereum (ETH), and high-volume Altcoins.
* Risk Warning: This strategy is designed for "Long Only" spot or leverage trading. Always use proper risk management.
█ CREDITS
* Original Concept: Inspired by the foundational work of Murat Besiroglu (@muratkbesiroglu).
* Algorithm Development & Enhancements: Developed by Hakan Yorganci (@hknyrgnc).
* Modifications include: Integration of ADX filters, Mean Reversion entry logic (RSI Dip), and Dynamic Peak Profit taking.
ETH INFINITY TREND [1H]: The Institutional Anti-Crash AlgorithmSTOP TRADING AGAINST THE TREND. AUTOMATE YOUR SUCCESS.
Are you tired of strategies that make big gains one month and give it all back the next? Are you looking for an algorithm capable of beating the market while strictly protecting your capital during Crashes?
Discover ETH Infinity Trend , the H1 Swing Trading strategy designed for consistency, safety, and long-term performance.
This is not a nervous scalping bot eaten alive by fees. It is an intelligent Trend Following system, calibrated to capture major Ethereum directional moves while staying liquid (Cash) when the market becomes dangerous.
🏆 WHY IS THIS STRATEGY UNIQUE?
✅ "Bulletproof" History (2017-2025) Unlike the market, which suffered massive losses in 2018 (-80%) and 2022 (-65%), this algorithm successfully protected capital during EVERY major bearish phase.
✅ Bull Run Outperformance The algorithm doesn't just follow; it accelerates gains during parabolic phases (like 2021 and 2025) by staying in position as long as the bullish structure remains intact.
✅ Zero Stress / Zero Overtrading The strategy is patient. It filters out market "noise" to take only high-probability moves. No more stress from holding open positions during crashes.
⚙️ THE "SMART TREND" ENGINE (Proprietary Logic)
This script uses a combination of 3 algorithmic engines to secure your entries. Exact settings are protected to ensure a competitive advantage for members:
Adaptive Trend Engine: Detects flow direction with a wide safety factor to avoid "scam wicks" and stop hunts typical of crypto exchanges. Institutional Long-Term Filter: We only trade in the direction of big investment funds. If the Macro trend is bearish, the algorithm forces a Cash (USDT) position to preserve capital. Dynamic Momentum Filter: The algorithm stays inactive during flat markets (Ranging) to avoid grinding down capital with fees. It only enters if the movement has genuine impulsive strength.
📊 CERTIFIED PERFORMANCE (Historical Backtests)
The numbers speak for themselves. Here is how the strategy behaves under extreme market conditions:
🟢 Current Profitability (2025 YTD): +91% While the classic market (Buy & Hold) shows about +55%, the algorithm massively outperforms by avoiding intermediate corrections.
🛡️ Crash Resistance (2018 Bear Market): +29% This is the most important statistic. In 2018, Ethereum lost -82% of its value. Most traders were wiped out. This strategy not only protected capital but finished the year in profit.
💎 Zero Negative Years (2017-2025) Over a complete 8-year history, including two major market cycles, the strategy has never closed a year with a loss.
📉 RISK MANAGEMENT
Profit Factor: > 2.0 (For every $1 lost, the strategy earns more than $2). Controlled Drawdown: The strategy cuts losing positions quickly using a dynamic Trailing Stop, keeping equity drawdown far below that of the market. Fees Included: All results include transaction fees (Taker) and slippage estimates.
🤖 READY FOR AUTOMATION
This script is turnkey ready to be connected to bots via Webhooks (3Commas, Alertatron, or Custom Python Bot on Vultr/AWS).
No Repainting: Signals are fixed at candle close. What you see is what executes. Clear Signals: Buy (Long) and Exit alerts are fully configurable. Zero Leverage Needed: The strategy is designed to be profitable on Spot or 1x Futures.
🔒 ACCESS & INVITATION
This script is available via Invite Only to guarantee exclusivity and preserve signal quality.
👉 HOW TO GET ACCESS? Send me a private message here on TradingView to inquire about access conditions.
Disclaimer: Past performance is not indicative of future results. Cryptocurrency trading involves risk. Only invest what you can afford to lose.
Trendshift [CHE] StrategyTrendshift Strategy — First-Shift Structural Regime Trading
Profitfactor 2,603
Summary
Trendshift Strategy implements a structural regime-shift trading model built around the earliest confirmed change in directional structure. It identifies major swing highs and lows, validates breakouts through optional ATR-based conviction, and reacts only to the first confirmed shift in each direction. After a regime reversal, the strategy constructs a premium and discount band between the breakout candle and the previous opposite swing. This band is used as contextual bias and may optionally inform stop placement and position sizing.
The strategy focuses on clear, interpretable structural events rather than continuous signal generation. By limiting entries to the first valid shift, it reduces false recycles and allows the structural state to stabilize before a new trade occurs. All signals operate on closed-bar logic, and the strategy avoids higher-timeframe calls to stabilize execution behavior.
Motivation: Why this design?
Many structure-based systems repeatedly trigger as price fluctuates around prior highs and lows. This often leads to multiple flips during volatile or choppy conditions. Trendshift Strategy addresses this problem by restricting execution to the first confirmed structural event in each direction. ATR-based filters help differentiate genuine structural breaks from noise, while the contextual band ensures that the breakout is meaningful in relation to recent volatility.
The design aims to represent a minimalistic structural trading framework focused on regime turns rather than continuous trend signaling. This reduces chart noise and clarifies where the market transitions from one regime to another.
What’s different vs. standard approaches?
Baseline reference
Typical swing-based structure indicators report every break above or below recent swing points.
Architecture differences
First-shift-only regime logic that blocks repeated signals until direction reverses
ATR-filtered validation to avoid weak or momentum-less breaks
Premium and discount bands derived from breakout structure
Optional band-driven stop placement
Optional band-dependent position-sizing factor
Regime timeout system to neutralize structure after extended inactivity
Persistent-state architecture to prevent re-triggering
Practical effect
Only the earliest actionable structure change is traded
Fewer but higher-quality signals
Premium/discount tint assists contextual evaluation
Stops and sizing can be aligned with structural context rather than arbitrary volatility measures
Improved chart interpretability due to reduced marker frequency
How it works (technical)
The algorithm evaluates symmetric swing points using a fixed bar window. When a swing forms, its value and bar index are stored as persistent state. A structural shift occurs when price closes beyond the most recent major swing on the opposite side. If ATR filtering is enabled, the breakout must exceed a volatility-scaled distance to prevent micro-breaks from firing.
Once a valid shift is confirmed, the regime is updated to bullish or bearish. The script records the breakout level, the opposite swing, and derives a band between them. This band is checked for minimum size relative to ATR to avoid unrealistic contexts.
The first shift in a new direction generates both the strategy entry and a visual marker. Additional shifts in the same direction are suppressed until a reversal occurs. If a timeout is enabled, the regime resets after a specified number of bars without structural change, optionally clearing the band.
Stop placement, if enabled, uses either the opposite or same band edge depending on configuration. Position size is computed from account percentage and may optionally scale with the price-span-to-ATR relationship.
Parameter Guide
Market Structure
Swing length (default 5): Controls swing sensitivity. Lower values increase responsiveness.
Use ATR filter (default true): Requires breakouts to show momentum relative to ATR. Reduces false shifts.
ATR length (default 14): Volatility estimation for breakout and band validation.
Break ATR multiplier (default 1.0): Required breakout strength relative to ATR.
Premium/Discount Framework
Enable framework (default true): Activates premium/discount evaluation.
Persist band on timeout (default true): Keeps structural band after timeout.
Min band ATR mult (default 0.5): Rejects narrow bands.
Regime timeout bars (default 500): Neutralizes regime after inactivity.
Invert colors (default false): Color scheme toggle.
Visuals
Show zone tint (default true): Background shade in premium or discount region.
Show shift markers (default true): Display first-shift markers.
Execution and Risk
Risk per trade percent (default 1.0): Determines position size as account percentage.
Use band for size (default false): Scales size relative to band width behavior.
Flat on opposite shift (default true): Forces reversal behavior.
Use stop at band (default false): Stop anchored to band edges.
Stop band side: Chooses which band edge is used for stop generation.
Reading & Interpretation
A green background indicates discount conditions within the structural band; red indicates premium conditions. A green triangle below price marks the first bullish structural shift after a bearish regime. A red triangle above price marks the first bearish structural shift after a bullish regime.
When stops are active, the opposite band edge typically defines the protective level. Band width relative to ATR indicates how significant a structural change is: wider bands imply stronger volatility structure, while narrow bands may be suppressed by the minimum-size filter.
Practical Workflows & Combinations
Trend following: Use first-shift entries as initial regime confirmation. Add higher-timeframe trend filters for additional context.
Swing trading: Combine with simple liquidity or fair-value-gap concepts to refine entries.
Bias mapping: Use higher timeframes for structural regime and lower timeframes for execution within the premium/discount context.
Exit management: When using stops, consider ATR-scaling or multi-stage profit targets. When not using stops, reversals become the primary exit.
Behavior, Constraints & Performance
The strategy uses only confirmed swings and closed-bar logic, avoiding intrabar repaint. Pivot-based swings inherently appear after the pivot window completes, which is standard behavior. No higher-timeframe calls are used, preventing HTF-related repaint issues.
Persistent variables track regime and structural levels, minimizing recomputation. The maximum bars back setting is five-thousand. The design avoids loops and arrays, keeping performance stable.
Known limitations include limited signal density during consolidations, delayed swing confirmation, and sensitivity to extreme gaps that stretch band logic. ATR filtering mitigates some of these effects but does not eliminate them entirely.
Sensible Defaults & Quick Tuning
Fewer but stronger entries: Increase swing length or ATR breakout multiplier.
More responsive entries: Reduce swing length to capture earlier shifts.
More active band behavior: Lower the minimum band ATR threshold.
Stricter stop logic: Use the opposite band edge for stop placement.
Volatile markets: Increase ATR length slightly to stabilize behavior.
What this indicator is—and isn’t
Trendshift Strategy is a structural-regime trading engine that evaluates major directional shifts. It is not a complete trading system and does not include take-profit logic or prediction features. It does not attempt to forecast future price movement and should be used alongside broader market structure, volatility context, and disciplined risk management.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
EVS BTC V1Overview
The "EVS BTC V1" is a momentum-based trading strategy designed for Bitcoin (BTC) or similar volatile assets on TradingView. It combines Exponential Moving Averages (EMAs) for trend direction, volume confirmation to filter for strong moves, and an optional Relative Strength Index (RSI) filter to avoid overextended entries. The strategy uses a trailing stop for exits to lock in profits dynamically. It's set up for backtesting with an initial capital of $10,000, risking 10% of equity per trade, and accounting for 0.1% commissions.This is a crossover strategy: it goes long on bullish EMA crossovers with high volume (and RSI not overbought) and short on bearish crossunders (with high volume and RSI not oversold). It's overlayed on the main price chart for easy visualization.Key Parameters (User-Adjustable)Fast EMA Period: 9 (default) – Shorter-term trend line.
Slow EMA Period: 21 (default) – Longer-term trend line.
Volume Multiplier: 1.5 (default) – Requires volume to be 1.5x the 20-period average for signal validation.
Use RSI Filter?: Enabled (default) – Optional toggle to apply RSI conditions.
RSI Period: 14 (default), with overbought threshold at 70 and oversold at 30.
Trailing Stop Profit: 50 points (default) – Activates trailing once this profit level is hit.
Trailing Stop Offset: 20 points (default) – Distance from the high/low to trail the stop-loss.
Indicators UsedEMAs: 9-period (fast, blue line) and 21-period (slow, red line) on close prices.
Volume Filter: Compares current volume to a 20-period SMA; signals only trigger if volume exceeds the average by the multiplier (highlighted in yellow bars).
RSI: 14-period on close; plotted in purple on a sub-panel if enabled, with dashed horizontal lines at 70 (overbought) and 30 (oversold).
Entry RulesEntries are triggered only when all conditions align on a bar close:Direction
Conditions
Long (Buy)
- Fast EMA crosses over Slow EMA (bullish trend shift).
- Volume is "high" (> 1.5x 20-period avg).
- RSI < 70 (not overbought; skipped if filter disabled).
Short (Sell)
- Fast EMA crosses under Slow EMA (bearish trend shift).
- Volume is "high" (> 1.5x 20-period avg).
- RSI > 30 (not oversold; skipped if filter disabled).
On entry: Places a market order using 10% of current equity.
Alerts: Fires a one-time alert per bar (e.g., "Long Signal: EMA Crossover + High Volume!").
Exit RulesNo fixed take-profit or stop-loss on entry.
Uses a trailing stop for both long and short positions:Trails the stop-loss 20 points below the highest high (for longs) or 20 points above the lowest low (for shorts), but only activates after 50 points of unrealized profit.
This allows winners to run while protecting gains dynamically.
Positions close automatically on opposite signals or trailing stop hits (no pyramiding; only one position per direction at a time).
VisualizationMain Chart: Blue fast EMA and red slow EMA lines. Green background tint on long signals, red on short signals.
Volume Sub-Panel: Gray columns for normal volume, yellow for high-volume bars; zero line for reference.
RSI Sub-Panel (if enabled): Purple RSI line with overbought/oversold dashed lines.
Strengths and ConsiderationsStrengths: Simple, trend-following with volume to avoid weak signals; RSI adds mean-reversion protection; trailing stops suit trending markets like BTC.
Risks: Whipsaws in sideways markets (EMA crossovers can false-signal); volume filter may miss low-volume breakouts; trailing parameters (50/20 points) assume a specific price scale (e.g., BTC/USD in dollars—adjust for other pairs).
Best For: Higher timeframes (e.g., 1H or 4H) on volatile crypto pairs. Backtest on historical data to tune parameters.
Superior-Range Bound Renko - Strategy - 11-29-25 - SignalLynxSuperior-Range Bound Renko Strategy with Advanced Risk Management Template
Signal Lynx | Free Scripts supporting Automation for the Night-Shift Nation 🌙
1. Overview
Welcome to Superior-Range Bound Renko (RBR) — a volatility-aware, structure-respecting swing-trading system built on top of a full Risk Management (RM) Template from Signal Lynx.
Instead of relying on static lookbacks (like “14-period RSI”) or plain MA crosses, Superior RBR:
Adapts its range definition to market volatility in real time
Emulates Renko Bricks on a standard, time-based chart (no Renko chart type required)
Uses a stack of Laguerre Filters to detect genuine impulse vs. noise
Adds an Adaptive SuperTrend powered by a small k-means-style clustering routine on volatility
Under the hood, this script also includes the full Signal Lynx Risk Management Engine:
A state machine that separates “Signal” from “Execution”
Layered exit tools: Stop Loss, Trailing Stop, Staged Take Profit, Advanced Adaptive Trailing Stop (AATS), and an RSI-style stop (RSIS)
Designed for non-repainting behavior on closed candles by basing execution-critical logic on previous-bar data
We are publishing this as an open-source template so traders and developers can leverage a professional-grade RM engine while integrating their own signal logic if they wish.
2. Quick Action Guide (TL;DR)
Best Timeframe:
4 Hours (H4) and above. This is a high-conviction swing-trading system, not a scalper.
Best Assets:
Volatile instruments that still respect market structure:
Bitcoin, Ethereum, Gold (XAUUSD), high-volatility Forex pairs (e.g., GBPJPY), indices with clean ranges.
Strategy Type:
Volatility-Adaptive Trend Following + Impulse Detection.
It hunts for genuine expansion out of ranges, not tiny mean-reversion nibbles.
Key Feature:
Renko Emulation on time-based candles.
We mathematically model Renko Bricks and overlay them on your standard chart to define:
“Equilibrium” zones (inside the brick structure)
“Breakout / impulse” zones (when price AND the impulse line depart from the bricks)
Repainting:
Designed to be non-repainting on closed candles.
All RM execution logic uses confirmed historical data (no future bars, no security() lookahead). Intrabar flicker during formation is allowed, but once a bar closes the engine’s decisions are stable.
Core Toggles & Filters:
Enable Longs and Shorts independently
Optional Weekend filter (block trades on Saturday/Sunday)
Per-module toggles: Stop Loss, Trailing Stop, Staged Take Profits, AATS, RSIS
3. Detailed Report: How It Works
A. The Strategy Logic: Superior RBR
Superior RBR builds its entry signal from multiple mathematical layers working together.
1) Adaptive Lookback (Volatility Normalization)
Instead of a fixed 100-bar or 200-bar range, the script:
Computes ATR-based volatility over a user-defined period.
Normalizes that volatility relative to its recent min/max.
Maps the normalized value into a dynamic lookback window between a minimum and maximum (e.g., 4 to 100 bars).
High Volatility:
The lookback shrinks, so the system reacts faster to explosive moves.
Low Volatility:
The lookback expands, so the system sees a “bigger picture” and filters out chop.
All the core “Range High/Low” and “Range Close High/Low” boundaries are built on top of this adaptive window.
2) Range Construction & Quick Ranges
The engine constructs several nested ranges:
Outer Range:
rangeHighFinal – dynamic highest high
rangeLowFinal – dynamic lowest low
Inner Close Range:
rangeCloseHighFinal – highest close
rangeCloseLowFinal – lowest close
Quick Ranges:
“Half-length” variants of those, used to detect more responsive changes in structure and volatility.
These ranges define:
The macro box price is trading inside
Shorter-term “pressure zones” where price is coiling before expansion
3) Renko Emulation (The Bricks)
Rather than using the Renko chart type (which discards time), this script emulates Renko behavior on your normal candles:
A “brick size” is defined either:
As a standard percentage move, or
As a volatility-driven (ATR) brick, optionally inhibited by a minimum standard size
The engine tracks a base value and derives:
brickUpper – top of the emulated brick
brickLower – bottom of the emulated brick
When price moves sufficiently beyond those levels, the brick “shifts”, and the directional memory (renkoDir) updates:
renkoDir = +2 when bricks are advancing upward
renkoDir = -2 when bricks are stepping downward
You can think of this as a synthetic Renko tape overlaid on time-based candles:
Inside the brick: equilibrium / consolidation
Breaking away from the brick: momentum / expansion
4) Impulse Tracking with Laguerre Filters
The script uses multiple Laguerre Filters to smooth price and brick-derived data without traditional lag.
Key filters include:
LagF_1 / LagF_W: Based on brick upper/lower baselines
LagF_Q: Based on HLCC4 (high + low + 2×close)/4
LagF_Y / LagF_P: Complex averages combining brick structures and range averages
LagF_V (Primary Impulse Line):
A smooth, high-level impulse line derived from a blend of the above plus the outer ranges
Conceptually:
When the impulse line pushes away from the brick structure and continues in one direction, an impulse move is underway.
When its direction flips and begins to roll over, the impulse is fading, hinting at mean reversion back into the range.
5) Fib-Based Structure & Swaps
The system also layers in Fib levels derived from the adaptive ranges:
Standard levels (12%, 23.6%, 38.2%, 50%, 61%, 76.8%, 88%) from the main range
A secondary “swap” set derived from close-range dynamics (fib12Swap, fib23Swap, etc.)
These Fibs are used to:
Bucket price into structural zones (below 12, between 23–38, etc.)
Detect breakouts when price and Laguerre move beyond key Fib thresholds
Drive zSwap logic (where a secondary Fib set becomes the active structure once certain conditions are met)
6) Adaptive SuperTrend with K-Means-Style Volatility Clustering
Under the hood, the script uses a small k-means-style clustering routine on ATR:
ATR is measured over a fixed period
The range of ATR values is split into Low, Medium, High volatility centroids
Current ATR is assigned to the nearest centroid (cluster)
From that, a SuperTrend variant (STK) is computed with dynamic sensitivity:
In quiet markets, SuperTrend can afford to be tighter
In wild markets, it widens appropriately to avoid constant whipsaw
This SuperTrend-based oscillator (LagF_K and its signals) is then combined with the brick and Laguerre stack to confirm valid trend regimes.
7) Final Baseline Signals (+2 / -2)
The “brain” of Superior RBR lives in the Baseline & Signal Generation block:
Two composite signals are built: B1 and B2:
They combine:
Fib breakouts
Renko direction (renkoDir)
Expansion direction (expansionQuickDir)
Multiple Laguerre alignments (LagF_Q, LagF_W, LagF_Y, LagF_Z, LagF_P, LagF_V)
They also factor in whether Fib structures are expanding or contracting.
A user toggle selects the “Baseline” signal:
finalSig = B2 (default) or B1 (alternate baseline)
finalSig is then filtered through the RM state machine and only when everything aligns, we emit:
+2 = Long / Buy signal
-2 = Short / Sell signal
0 = No new trade
Those +2 / -2 values are what feed the Risk Management Engine.
B. The Risk Management (RM) Engine
This script features the Signal Lynx Risk Management Engine, a proprietary state machine built to separate Signal from Execution.
Instead of firing orders directly on indicator conditions, we:
Convert the raw signal into a clean integer (Fin = +2 / -2 / 0)
Feed it into a Trade State Machine that understands:
Are we flat?
Are we in a long or short?
Are we in a closing sequence?
Should we permit re-entry now or wait?
Logic Injection / Template Concept:
The RM engine expects a simple integer:
+2 → Buy
-2 → Sell
Everything else (0) is “no new trade”
This makes the script a template:
You can remove the Superior RBR block
Drop in your own logic (RSI, MACD, price action, etc.)
As long as you output +2 or -2 into the same signal channel, the RM engine can drive all exits and state transitions.
Aggressive vs Conservative Modes:
The input AgressiveRM (Aggressive RM) governs how we interpret signals:
Conservative Mode (Aggressive RM = false):
Uses a more filtered internal signal (AF) to open trades
Effectively waits for a clean trend flip / confirmation before new entries
Minimizes whipsaw at the cost of fewer trades
Aggressive Mode (Aggressive RM = true):
Reacts directly to the fresh alert (AO) pulses
Allows faster re-entries in the same direction after RM-based exits
Still respects your pyramiding setting; this script ships with pyramiding = 0 by default, so it will not stack multiple positions unless you change that parameter in the strategy() call.
The state machine enforces discipline on top of your signal logic, reducing double-fires and signal spam.
C. Advanced Exit Protocols (Layered Defense)
The exit side is where this template really shines. Instead of a single “take profit or stop loss,” it uses multiple, cooperating layers.
1) Hard Stop Loss
A classic percentage-based Stop Loss (SL) relative to the entry price.
Acts as a final “catastrophic protection” layer for unexpected moves.
2) Standard Trailing Stop
A percentage-based Trailing Stop (TS) that:
Activates only after price has moved a certain percentage in your favor (tsActivation)
Then trails price by a configurable percentage (ts)
This is a straightforward, battle-tested trailing mechanism.
3) Staged Take Profits (Three Levels)
The script supports three staged Take Profit levels (TP1, TP2, TP3):
Each stage has:
Activation percentage (how far price must move in your favor)
Trailing amount for that stage
Position percentage to close
Example setup:
TP1:
Activate at +10%
Trailing 5%
Close 10% of the position
TP2:
Activate at +20%
Trailing 10%
Close another 10%
TP3:
Activate at +30%
Trailing 5%
Close the remaining 80% (“runner”)
You can tailor these quantities for partial scaling out vs. letting a core position ride.
4) Advanced Adaptive Trailing Stop (AATS)
AATS is a sophisticated volatility- and structure-aware stop:
Uses Hirashima Sugita style levels (HSRS) to model “floors” and “ceilings” of price:
Dungeon → Lower floors → Mid → Upper floors → Penthouse
These levels classify where current price sits within a long-term distribution.
Combines HSRS with Bollinger-style envelopes and EMAs to determine:
Is price extended far into the upper structure?
Is it compressed near the lower ranges?
From this, it computes an adaptive factor that controls how tight or loose the trailing level (aATS / bATS) should be:
High Volatility / Penthouse areas:
Stop loosens to avoid getting wicked out by inevitable spikes.
Low Volatility / compressed structure:
Stop tightens to lock in and protect profit.
AATS is designed to be the “smart last line” that responds to context instead of a single fixed percentage.
5) RSI-Style Stop (RSIS)
On top of AATS, the script includes a RSI-like regime filter:
A McGinley Dynamic mean of price plus ATR bands creates a dynamic channel.
Crosses above the top band and below the lower band change a directional state.
When enabled (UseRSIS):
RSIS can confirm or veto AATS closes:
For longs: A shift to bearish RSIS can force exits sooner.
For shorts: A shift to bullish RSIS can do the same.
This extra layer helps avoid over-reactive stops in strong trends while still respecting a regime change when it happens.
D. Repainting Protection
Many strategies look incredible in the Strategy Tester but fail in live trading because they rely on intrabar values or future-knowledge functions.
This template is built with closed-candle realism in mind:
The Risk Management logic explicitly uses previous bar data (open , high , low , close ) for the key decisions on:
Trailing stop updates
TP triggers
SL hits
RM state transitions
No security() lookahead or future-bar access is used.
This means:
Backtest behavior is designed to match what you can actually get with TradingView alerts and live automation.
Signals may “flicker” intrabar while the candle is forming (as with any strategy), but on closed candles, the RM decisions are stable and non-repainting.
4. For Developers & Modders
We strongly encourage you to mod this script.
To plug your own strategy into the RM engine:
Look for the section titled:
// BASELINE & SIGNAL GENERATION
You will see composite logic building B1 and B2, and then selecting:
baseSig = B2
altSig = B1
finalSig = sigSwap ? baseSig : altSig
You can replace the content used to generate baseSig / altSig with your own logic, for example:
RSI crosses
MACD histogram flips
Candle pattern detectors
External condition flags
Requirements are simple:
Your final logic must output:
2 → Buy signal
-2 → Sell signal
0 → No new trade
That output flows into the RM engine via finalSig → AlertOpen → state machine → Fin.
Once you wire your signals into finalSig, the entire Risk Management system (Stops, TPs, AATS, RSIS, re-entry logic, weekend filters, long/short toggles) becomes available for your custom strategy without re-inventing the wheel.
This makes Superior RBR not just a strategy, but a reference architecture for serious Pine dev work.
5. About Signal Lynx
Automation for the Night-Shift Nation 🌙
Signal Lynx focuses on helping traders and developers bridge the gap between indicator logic and real-world automation. The same RM engine you see here powers multiple internal systems and templates, including other public scripts like the Super-AO Strategy with Advanced Risk Management.
We provide this code open source under the Mozilla Public License 2.0 (MPL-2.0) to:
Demonstrate how Adaptive Logic and structured Risk Management can outperform static, one-layer indicators
Give Pine Script users a battle-tested RM backbone they can reuse, remix, and extend
If you are looking to automate your TradingView strategies, route signals to exchanges, or simply want safer, smarter strategy structures, please keep Signal Lynx in your search.
License: Mozilla Public License 2.0 (Open Source).
If you make beneficial modifications, please consider releasing them back to the community so everyone can benefit.
Ratchet Exit Trend Strategy with VIX FilterThis strategy is a trend-following system designed specifically for volatile markets. Instead of focusing solely on the "perfect entry," this script emphasizes intelligent trade management using a custom **"Ratchet Exit System."**
Additionally, it integrates a volatility filter based on the CBOE Volatility Index (VIX) to minimize risk during extreme market phases.
### 🎯 The Concept: Ratchet Exit
The "Ratchet" system operates like a mechanical ratchet tool: the Stop Loss can only move in one direction (up, for long trades) and "locks" into specific stages. The goal is to give the trade "room to breathe" initially to avoid being stopped out by noise, then aggressively reduce risk as the trade moves into profit.
The exit logic moves through 3 distinct phases:
1. **Phase 0 (Initial Risk):** At the start of the trade, a wide Stop Loss is set (Default: 10%) to tolerate normal market volatility.
2. **Phase 1 (Risk Reduction):** Once the trade reaches a specific floating profit (Default: +10%), the Stop Loss is raised and "pinned" to a fixed value (Default: -8% from entry). This drastically reduces risk while keeping the trade alive.
3. **Phase 2 (Trailing Mode):** If the trend extends to a higher profit zone (Default: +15%), the Stop switches to a dynamic Trailing Mode. It follows the **Highest High** at a fixed percentage distance (Default: 8%).
### 🛡️ VIX Filter & Panic Exit
High volatility is often the enemy of trend-following strategies.
* **Entry Filter:** The system will not enter new positions if the VIX is above a user-defined threshold (Default: 32). This helps avoid entering "falling knife" markets.
* **Panic Exit:** If the VIX spikes above the threshold (32) while a trade is open, the position is closed immediately to protect capital (Emergency Exit).
### 📈 Entry Signals
The strategy trades **LONG only** and uses Simple Moving Averages (SMAs) to identify trends:
* **Golden Cross:** SMA 25 crosses over SMA 50.
* **3-Bar Breakouts:** A confirmation logic where the price must close above the SMA 50, 100, or 200 for 3 consecutive bars.
### ⚙️ Settings (Inputs)
All parameters are fully customizable via the settings menu:
* **SMAs:** Lengths for the trend indicators (Default: 25, 50, 100, 200).
* **VIX Filter:** Toggle the filter on/off and adjust the panic threshold.
* **Ratchet Settings:** Percentages for Initial Stop, Trigger Levels for Stages 1 & 2, and the Trailing Distance.
### ⚠️ Technical Note & Risk Warning
This script uses `request.security` to fetch VIX data. Please ensure you understand the risks associated with trading leveraged or volatile assets. Past performance is not indicative of future results.
[iQ]PRO Quant GANN FOURIER VZO RANGE+🔮 PRO Quant GANN FOURIER VZO RANGE+
A Highly Adaptive and Proprietary Quantitative Strategy for Precision Market Analysis
This is the official description for the PRO Quant GANN FOURIER VZO RANGE+ strategy, a sophisticated, closed-source system engineered for high-level market engagement. This tool integrates multiple independent quantitative models into a single, cohesive Ensemble Signal, providing an edge through robust, multi-dimensional analysis.
🔬 Core Quantitative Architecture
The strategy is built on the convergence of several powerful, state-of-the-art analytical components, each designed to capture a distinct facet of market dynamics:
Proprietary Gann Swing Models: We utilize a dual-approach to Gann analysis.
Array–Based Gann Swing: A proprietary implementation leveraging advanced Pine Script array structures for dynamic tracking of significant price pivots and structure shifts. This component continuously monitors market momentum and potential areas of interest, including proprietary "ChoCh" (Change of Character) detection—a highly sensitive mechanism for identifying early trend inflection points. This core mechanism provides a high-frequency structural view of the market.
Composite Multi-Timeframe Gann Swing: This model synthesizes traditional swing analysis across two distinct timeframes to filter noise and confirm structural trends, ensuring the system operates with conviction against the backdrop of a higher-level market perspective.
VZO/VSA (Volume Zone Oscillator/Volume Spread Analysis) Hybrid: This module is engineered to analyze the crucial relationship between price momentum and volume flow, specifically using a Volume Zone Oscillator (VZO) approach integrated with Volume Spread Analysis (VSA) principles. It is designed to identify underlying accumulation and distribution activity with a unique dual-timeframe composite for enhanced signal quality.
Trend and Statistical Component: A dedicated module assesses the statistical bias and slope of the aggregated market movement, providing a crucial check against overextension and ensuring alignment with the underlying price regression trajectory.
⚖️ The Ensemble Signal and Trade Logic
All independent signals—Gann Array, Composite Gann, VZO/VSA, and Trend—are processed through a Weighted Ensemble Logic.
Weighted Voting: Each component's signal is assigned a customizable weight (input parameters wGannComp, wVZO, etc.) to reflect its relative importance in the current market environment.
Threshold-Based Decision: The weighted average of all signals results in an Ensemble Signal. Only when this signal decisively exceeds a customizable Signal Threshold does the system generate a Final Signal for trade execution. This rigor is key to filtering lower-conviction setups.
The strategy's execution logic is designed to open and close positions dynamically based on the Final Signal, maintaining maximum control with a default position size of 15% of equity per trade. A dedicated toggle allows for aggressive position management to "stay in" trades longer under specific conditions identified by the proprietary swing models.
⚙️ Strategic Advantages and Exclusivity
This strategy is marked by its extreme adaptability, incorporating features such as:
Higher Timeframe Synthesis: Crucial components utilize multi-timeframe confirmation to validate signals.
Price Smoothing: An optional, light-touch EMA smoothing is applied to the input price data to enhance signal clarity and reduce spurious whipsaws.
Due to the proprietary nature and complexity of the underlying swing detection algorithms and array management, the source code is kept strictly closed-source. This ensures the continued analytical edge and integrity of the model for our exclusive community.
OG INDICATOR TO MESS AROUND WITH, USE RIGHT, AND ENJOY. PRO STRATS COMING TOO
NFA.
MKNiQ
Grok/Claude Turtle Trend Pro Strategy Turtle Trend Pro Strategy: A Modern Implementation of the Legendary Turtle Trading System
Historical Background: The Original Turtle Experiment
In 1983, legendary commodities trader Richard Dennis made a bet with his partner William Eckhardt: could successful trading be taught, or was it an innate skill? To settle the debate, Dennis recruited and trained a group of novices—whom he called "Turtles" (inspired by turtle farms he'd visited in Singapore)—teaching them a complete mechanical trading system. The results were remarkable: over the next four years, the Turtles reportedly earned over $175 million, proving that systematic, rule-based trading could be taught and replicated.
The strategy you've shared is a faithful modern adaptation of those original Turtle rules, enhanced with contemporary technical filters.
Core Turtle Principles Preserved in This Strategy
1. Donchian Channel Breakouts (The Heart of Turtle Trading)
The original Turtles used Donchian Channels—a simple concept where you track the highest high and lowest low over a specific lookback period. This strategy implements both original Turtle systems:
System 1 (Default): 20-period entry breakout, 15-period exit
System 2 (Optional): 55-period entry breakout, 20-period exit
The logic is elegantly simple:
Go long when price breaks above the highest high of the last 20 (or 55) periods
Go short when price breaks below the lowest low of the last 20 (or 55) periods
This captures the Turtle philosophy of trend-following through momentum breakouts—the idea that markets trending strongly in one direction tend to continue.
2. ATR-Based Position Sizing and Stops
The Turtles were pioneers in using Average True Range (ATR) for risk management. This strategy preserves that approach:
Stop Loss: Set at 2× ATR from entry (the original Turtle rule)
ATR Period : 20 days (matching the original)
The ATR stop adapts to market volatility—wider stops in volatile markets, tighter stops in calm ones—preventing premature exits while still protecting capital.
3. Opposite Channel Exit
Rather than using arbitrary profit targets, the Turtles exited positions when price broke the opposite channel:
Exit longs when price breaks below the 15-period (or 20-period) low
Exit shorts when price breaks above the 15-period (or 20-period) high
This allows winning trades to run while providing a systematic exit that doesn't rely on prediction.
Modern Enhancements Beyond the Original System
While the core mechanics remain true to 1983, this strategy adds sophisticated filters the original Turtles didn't have access to:
Trend Filter (200 EMA)
Only takes long trades when price is above the 200-period moving average (and the MA is sloping up), and vice versa for shorts. This aligns trades with the major trend, reducing whipsaws in choppy markets. Set of off by default and fully adjustable in settings.
ADX Filter (Trend Strength)
The Average Directional Index ensures trades are only taken when the market is actually trending (ADX > 20 threshold). The original Turtles suffered significant drawdowns in ranging markets—this filter addresses that weakness.
Optional RSI Filter
Adds overbought/oversold confirmation to entries, though this is disabled by default to stay closer to the original system.
Volume Confirmation
Optional requirement for volume surges on breakouts, adding conviction to signals.
The Strategy's Risk Management Framework
Parameter Setting Turtle Origin Position Size 10% of equity. Turtles used volatility-adjusted sizing.
Stop Loss2× ATR.
Original Turtle rule Commission 0.075%. Modern crypto exchange rate.
Pyramiding Disabled.
Turtles did pyramid, but simplified here.
Visual Elements and Regime Detection
The strategy includes a "Neural Fusion Pro" styled display that would make the original Turtles jealous:
Color-coded Donchian Channels: Green (bullish), Red (bearish), Yellow (neutral)
Trend Strength Meter: Combines ADX, price vs. MA distance, channel position, and DI spread
Regime Classification : Automatically identifies Bull, Bear, or Neutral market conditions
Information Panel: Real-time display of all key metrics
Why Turtle Trading Still Works
The genius of the Turtle system lies in its mechanical discipline. It removes emotion from trading by providing explicit rules for:
What to trade (anything with sufficient liquidity and volatility)
When to enter (channel breakouts)
How much to trade (volatility-adjusted position sizing)
When to exit (opposite breakout or ATR stop)
This strategy faithfully preserves that mechanical approach while adding modern filters to improve the win rate in today's markets.
Full Regime Engine – Trend / Mean Revert / No-Trade🚀 Full Regime Engine Strategy: Trend / Mean Revert / No-Trade
This comprehensive strategy, named the Full Regime Engine, is designed to adapt its trading logic based on prevailing market conditions, classifying the market into three distinct regimes: Trend, Mean Reversion (MR), and No-Trade. It uses a combination of Average True Range (ATR) volatility ratio and the Average Directional Index (ADX) to determine the current regime, ensuring the appropriate entry and exit logic is applied.
⚙️ How the Regime Engine Works
The strategy uses two core indicators to define the market regime:
Volatility Ratio (ATR / SMA of ATR):
High Volatility Ratio (above highVolThr) suggests an active, potentially trending market.
Low Volatility Ratio (below lowVolThr) suggests a calmer, mean-reverting environment.
Average Directional Index (ADX):
High ADX (above adxTrendMin) confirms the strength of a potential trend.
Low ADX (below adxChopMax) confirms a weak, non-directional, or choppy market suitable for mean reversion.
The regimes are defined as follows:
🟢 Trend Regime: High Volatility Ratio AND High ADX.
🔵 Mean Reversion (MR) Regime: Low Volatility Ratio AND Low ADX.
⚫ No-Trade Regime: Any other condition, including outside of the defined session/time filters.
🎯 Entry and Exit Logic by Regime
The strategy employs a different entry and exit approach for each active regime:
1. Trend Regime (Pullback Entries)
Definition: The trend is established using a cross of Fast and Slow EMAs (emaFastLen and emaSlowLen).
Entry Signal: A pullback entry, where the price momentarily touches the Fast EMA and then closes back in the direction of the trend.
Long: low <= Fast EMA and close > Fast EMA (during a bullish trend).
Short: high >= Fast EMA and close < Fast EMA (during a bearish trend).
Risk Management: Uses a wider Stop Loss (slTrend) and Take Profit (tpTrend) based on ATR multiples, reflecting the expectation of larger moves in a trending market.
2. Mean Reversion Regime (VWAP Deviation Fades)
Definition: Trades the fade of extreme price movements back towards the Volume-Weighted Average Price (VWAP).
Entry Signal: Price is significantly deviated from VWAP (measured in ATR multiples mrDevATR) and shows a reversal candle.
Long (Fade Short): Price is far below VWAP (devZ < -mrDevATR) and the current candle is bullish (close > open).
Short (Fade Long): Price is far above VWAP (devZ > mrDevATR) and the current candle is bearish (close < open).
Risk Management: Uses a tighter Stop Loss (slMR) and Take Profit (tpMR) based on ATR multiples, suitable for capturing smaller moves near the mean.
⏱️ Time-Based Filters
The strategy includes robust time filters to only trade during periods with higher liquidity and predictable activity:
RTH Session Filter: Trades only within the defined "Regular Trading Hours" session (sessionStr).
Midday Filter: Optionally avoids the typically slow and choppy midday trading hours (11:00–13:00).
📊 Visuals & Customization
Background Colors: The chart background automatically colors to display the current regime: Green for Trend, Blue for Mean Revert, and Gray for No-Trade.
Plot Shapes: Distinct shapes and labels mark the raw entry signals for both Trend (Triangles) and Mean Reversion (Circles).
ATR Exits: Plots the dynamically calculated Stop Loss (Red) and Take Profit (Green) lines based on the trade's entry mode (Trend or MR).
💡 Note: This is a comprehensive engine that requires careful optimization of the input parameters for your specific instrument and timeframe. Start with the default settings and adjust the regime thresholds (ATR Ratio and ADX) and the risk/reward multiples (SL/TP) to suit your trading style.
Dual MTF Confirmed Trend Strategy (5m Entry / 15m MACD & RSI) v1That is a detailed Dual Multi-Timeframe (MTF) Confirmed Trend Strategy written in Pine Script for TradingView. The core idea of this strategy is to only take entry signals on a faster timeframe (5-minute) when the trend is strongly confirmed on a slower, higher timeframe (15-minute). This aims to reduce false signals and trade in the direction of the dominant trend. Here is an explanation of how the strategy works, broken down by section:
1. 5-Minute Entry Filters 🚀This section calculates several indicators on the current 5-minute chart to identify potential trade setups. A position is only considered if all 5-minute conditions align.
Supertrend: A trend-following indicator based on Average True Range (ATR).
Long Condition: The closing price must be above the Supertrend line.
Short Condition: The closing price must be below the Supertrend line.
Gann Hi-Lo (GHL): A trend indicator using Simple Moving Averages (SMA) of the high and low prices. GHL Line: Switches between the SMA of the Highs and the SMA of the Lows based on price action.
Long Condition: The closing price must be above the GHL line.
Short Condition: The closing price must be below the GHL line.
Exponential Moving Averages (EMAs): It uses a 50-period EMA and a 100-period EMA to confirm the short-term trend direction.
Long Condition: The closing price must be above both the 50 EMA and the 100 EMA.
Short Condition: The closing price must be below both the 50 EMA and the 100 EMA.
2. 15-Minute MTF Confirmation Filters ⏳This is the crucial step where the strategy verifies the trend on the slower, 15-minute timeframe using the request security function. This step acts as a gatekeeper to ensure the 5-minute trade aligns with the larger trend.
MACD Histogram (12, 26, 9): The difference between the MACD Line and the Signal Line.
Long Confirmation: The 15m MACD Histogram must be greater than 0 (MACD line is above the Signal line, indicating bullish momentum).
Short Confirmation: The 15m MACD Histogram must be less than 0 (MACD line is below the Signal line, indicating bearish momentum).
RSI (Relative Strength Index) (14): A momentum oscillator. The 50 level is often used to determine the general market trend.
Long Confirmation: The 15m RSI must be greater than 50 (indicating stronger bullish momentum).
Short Confirmation: The 15m RSI must be less than 50 (indicating stronger bearish momentum).
The Total 15m Confirmation is only true if both the MACD and the RSI confirmation signals align.
3. Trade Orders (Entry Logic) ⚖️
The strategy only executes a trade when the 5-minute entry conditions are met AND the 15-minute confirmation conditions are met.
Final Long Condition:
5m Conditions (Supertrend, GHL, EMA alignment) AND
15m Confirmation (MACD Hist > 0 AND RSI > 50)
Final Short Condition:
5m Conditions (Supertrend, GHL, EMA alignment) AND
15m Confirmation (MACD Hist < 0 AND RSI < 50)
When a trade signal is generated, the strategy:
Closes any opposite position (e.g., closes a "Short" trade if a "Long" signal appears).
Enters the new position (e.g., enters a "Long" trade).
This is designed as a reversal strategy where a new entry automatically closes the previous opposing trade.
In Summary
The strategy operates on a principle of Trend Alignment:
5-Minute Chart: Is used for Signal Timing (when exactly to enter the market).
15-Minute Chart: Is used for Trend Validation (is the overall market momentum supporting the signal?).
It's an attempt to capture short-term moves (5m signals) that are backed by strong medium-term momentum (15m confirmation), thereby aiming for higher probability trades.
This is not investment advice; it is recommended to perform optimization and backtesting for the assets intended for implementation.
Multi-Mode Grid StrategyGrid Strategy (SIMPLE)
█ Overview
This script is a system trading tool designed to generate cash flow from market volatility without relying on short-term directional predictions. It operates on the principle of Grid Trading , creating a mesh of buy and sell orders within a user-defined price range.
The strategy automates the process of "buying the dip" and "selling the bounce" repeatedly. It is most effective in sideways markets or during accumulation phases where the price oscillates within a specific channel.
█ TRADING MINDSET & SETUP GUIDE
To use this tool effectively, you must shift your perspective from "Sniper" (trying to hit the perfect entry) to "Manager" (managing a zone). Here is the required mindset for setting up this strategy:
Shift from Prediction to Range Definition
Don't ask: "Will the price go up or down tomorrow?"
Ask instead: "What is the price range the asset is unlikely to break out of in the coming weeks?"
Your primary job is to define the Grid Top Price (Ceiling) and Grid Bottom Price (Floor). As long as the price stays within this "Arena," the strategy will continue to execute trades.
Embrace Volatility as Fuel
For a trend follower, chop/sideways action is a nightmare. For a Grid Trader, it is fuel. Every time the price crosses a grid line down, it builds inventory. Every time it crosses back up, it realizes profit. You want the price to wiggle as much as possible within your defined boundaries.
Capital Allocation & Survivability
The biggest risk in grid trading is the price crashing below your Grid Bottom Price .
Mindset Check: Before launching, assume the price WILL drop to your bottom price immediately. Can your account handle that drawdown?
The script includes leverage and capital percentage inputs to help you size your position correctly. Never allocate 100% of your capital to a tight range without understanding the liquidation risk.
█ HOW IT WORKS
Grid Construction:
The script divides the space between your Upper Border and Lower Border into specific levels based on the Grid Quantity .
- Arithmetic: Equal spacing between lines (Standard).
- Geometric: Spacing based on mathematical ratios (useful for wider ranges).
Execution Logic:
- Entry: When price crosses below a grid line, a Long position is opened.
- Exit: When price bounces back up by a specific number of grid levels (defined by "Distance of TP"), the specific position is closed for a profit.
Time & Backtesting:
You can set specific Start and End Times . This allows you to backtest how the grid would have performed during specific historical volatility events before deploying it on live markets.
█ VISUALIZATION DASHBOARD
To keep you informed without cluttering the chart, the script features an information table at the bottom right:
Cash Out: Total realized profit booked into the account.
Open Position: How many grid levels are currently active (holding bags) vs. total levels.
Open Trade: The current floating P/L of held positions (Unrealized).
Max Drawdown: The deepest drawdown the strategy experienced during the test period.
RISK DISCLAIMER
Grid trading involves significant risk, particularly in strong trending markets that break out of your range against your position. This strategy does not use a stop-loss per trade; it relies on the user defining a safe "Bottom Price" and allocating capital accordingly. Past performance in backtesting does not guarantee future results. This script is a tool for execution and analysis, not financial advice.
Stratégie SMC V18.2 (BTC/EUR FINAL R3 - Tendance)This strategy is an automated implementation of Smart Money Concepts (SMC), designed to operate on the Bitcoin/Euro (BTC/EUR) chart using the 15-minute Timeframe (M15).It focuses on identifying high-probability zones (Order Blocks) after a confirmed Break of Structure (BOS) and a Liquidity Sweep, utilizing an H1/EMA 200 trend filter to only execute trades in the direction of the dominant market flow.Risk management is strict: every trade uses a fixed Risk-to-Reward Ratio (R:R) of 1:3.🧱 Core Logic Components
1. Trend Filter (H1/EMA 200)Objective: To avoid counter-trend entries, which has allowed the success rate to increase to nearly $65\%$ in backtests.Mechanism: A $200$-period EMA is plotted on a higher timeframe (Default: H1/60 minutes).Long (Buy): Entry is only permitted if the current price (M15) is above the trend EMA.Short (Sell): Entry is only permitted if the current price (M15) is below the trend EMA.
2. Order Block (OB) DetectionA potential Order Block is identified on the previous candle if it is
accompanied by an inefficiency (FVG - Fair Value Gap).
3. Advanced SMC ValidationBOS (Break of Structure): A recent BOS must be confirmed by breaking the swing high/low defined by the swing length (Default: 4 M15 candles).Liquidity (Liquidity Sweep): The Order Block zone must have swept recent liquidity (defined by the Liquidity Search Length) within a certain tolerance (Default: $0.1\%$).Point of Interest: The OB must form in a premium zone (for shorts) or a discount zone (for longs) relative to the current swing range (above or below the $50\%$ level of the range).
4. Execution and Risk ManagementEntry: The trade is triggered when the price touches the active Order Block (mitigation).Stop Loss (SL): The SL is fixed at the low of the OB (for longs) or the high of the OB (for shorts).Take Profit (TP): The TP is strictly set at a level corresponding to 3 times the SL distance (R:R 1:3).Lot Sizing: The trade quantity is calculated to risk a fixed amount (Default: 2.00 Euros) per transaction, capped by a Lot Max and Lot Min defined by the user.
Input Parameters (Optimized for BTC/EUR M15)Users can adjust these parameters to modify sensitivity and risk profile. The default values are those optimized for the high-performing backtest (Profit Factor $> 3$).ParameterDescriptionDefault Value (M15)Long. Swing (BOS)Candle length used to define the swing (and thus the BOS).4Long. Recherche Liq.Number of candles to scan to confirm a liquidity sweep.7Tolérance Liq. (%)Price tolerance to validate the liquidity sweep (as a percentage of price).0.1Timeframe TendanceChart timeframe used for the EMA filter (e.g., 60 = H1).60 (H1)Longueur EMA TendancePeriods used for the trend EMA.200Lot Max (Quantité Max BTC)Maximum quantity of BTC the strategy is allowed to trade.0.01Lot Min Réel (Exigence Broker)Minimum quantity required by the broker/exchange.0.00001
Long-Term Strategy: 1-Year Breakout + 6-Month ExitDescripción (Description): (Copia y pega todo lo que está dentro del recuadro de abajo)
Description
This is a long-term trend-following strategy designed to capture major market moves while filtering out short-term noise. It is based on the classic principle of "buying strength" (Breakouts) and allowing profits to run, while cutting losses when the medium-term trend reverses.
How it Works (Logic)
1. Entry Condition (Long Only): The strategy looks for a significant display of strength. It enters a Long position only when two conditions are met simultaneously:
Price Breakout: The closing price exceeds the highest high of the last 252 trading days (approximately 1 year). This ensures we are entering during a strong momentum phase.
Trend Filter: The SuperTrend indicator (Settings: ATR 10, Factor 3.0) must be bullish. This acts as a confirmation filter to avoid false breakouts in choppy markets.
2. Exit Condition: The strategy uses a trailing stop based on price action, not a fixed percentage.
It closes the position when the price closes below the lowest low of the last 126 trading days (approximately 6 months).
This wide exit allows the trade to "breathe" during normal market corrections without exiting the position prematurely.
Settings & Risk Management
Capital Usage: The script is configured to use 10% of equity per trade to reflect realistic risk management (compounding).
Commissions: Included at 0.1% to simulate real trading costs.
Slippage: Included (3 ticks) to account for market execution variability.
Best Use: This strategy is intended for higher timeframes (Daily or Weekly) on trending assets like Indices, Crypto, or Commodities.
CSS_LFU_v0.1Overview:
A multi-factor, market-adaptive swing strategy designed for intraday and short-term crypto trading. It synthesizes momentum, volatility, and trend signals into a unified composite score over a configurable lookback window. The strategy leverages a modular, signal-weighted approach to ensure robust entry timing while remaining compatible with human-in-the-loop validation and algorithmic execution.
Core Modules:
AJFFRSI (RSX-based Momentum): Measures smoothed price momentum with noise-reduction filters to detect crossovers relative to the QQE trailing stop.
QQE (Quantitative Qualitative Easing RSI): A modified RSI with a dynamic trailing stop that adapts to short-term volatility, identifying exhaustion and potential reversal points.
Keltner Channel Zones: Determines overextension relative to trend, providing buy/sell zones based on ATR-banded EMA.
WaveTrend Oscillator: Confirms short-term swings and market direction through smoothed oscillator cross signals.
Rolling Composite Score: Aggregates module signals over a unified lookback (e.g., 144 bars) to normalize noise and capture consistent trends.
Signal Logic:
Each module outputs a discrete score (+1 / 0 / -1).
The rolling composite score sums all module scores over the lookback period.
Long positions trigger when the rolling score meets or exceeds the long threshold.
Short positions trigger when the rolling score meets or falls below the short threshold.
Multi-dimensional signal aggregation reduces false positives from single indicators.
Rolling lookback ensures score normalization across different volatility regimes.
Highly modular: easy to adapt modules or weights to different instruments or timeframes.
Fully compatible with automated execution pipelines, including custom exchange screener bots.
Use Case:
Ideal for quant-driven altcoin or multi-asset strategies where high-frequency validation is critical and sequential module weighting enhances trend flip detection.
EMA Trend Pro [Hedging & Fixed Risk]
This strategy is a comprehensive trend-following system designed to capture significant market movements while strictly managing risk. It combines multiple Exponential Moving Averages (EMAs) for trend identification, ADX for trend strength filtering, and Volume confirmation to reduce false signals.
Key Features:
Hedging Mode Compatible: The script is designed to handle Long and Short positions independently. This is ideal for markets where trends can reverse quickly or for traders who prefer hedging logic (requires hedging=true in strategy settings).
Professional Risk Management: Unlike standard strategies that use fixed contract sizes, this script calculates Position Size based on Risk. You can define a fixed risk per trade (e.g., 1% of equity or $100 fixed risk). The script automatically adjusts the lot size based on the Stop Loss distance (ATR).
Multi-Stage Take Profit: The strategy scales out positions at 3 different levels (TP1, TP2, TP3) to lock in profits while letting the remaining position ride the trend.
Strategy Logic:
Trend Identification:
Long Entry: EMA 7 > EMA 14 > EMA 21 > EMA 144 (Bullish Alignment).
Short Entry: EMA 7 < EMA 14 < EMA 21 < EMA 144 (Bearish Alignment).
Filters:
ADX Filter: Entries are only taken if ADX (14) > Threshold (default 20) to ensure the market is trending, avoiding chopping ranging markets.
Volume Filter: Current volume must exceed the 20-period SMA volume by 10% to confirm momentum.
Exits & Trade Management:
Stop Loss: Dynamic SL based on ATR (e.g., 1.8x ATR).
Breakeven: Once TP1 is hit, the Stop Loss is automatically moved to Breakeven to protect capital.
Take Profits:
TP1: 1x Risk Distance (30% pos)
TP2: 2x Risk Distance (50% pos)
TP3: 3x Risk Distance (Remaining pos)
Settings Guide:
Risk Type: Choose between "Percent" (of equity) or "Fixed Amount" (USD).
Risk Value: Input your desired risk (e.g., 1.0 for 1% risk).
Fee %: Set your exchange's Taker fee (e.g., 0.05 or 0.06) for accurate backtesting.
ADX Threshold: Adjust to filter out noise (Higher = Stricter trend requirement).
Disclaimer: This script is for educational and backtesting purposes only. Past performance does not guarantee future results. Please use proper risk management.
AlosAlgo V2 (BETA)— V2 BETA —
V2 – 2025-11-21 (Update)
• Rebuilt the core signal engine to remove repainting – higher-timeframe Heikin Ashi / Renko now use confirmed bars only for more stable signals & alerts.
• Added Trend Filter MA so longs are only taken above the MA and shorts only below (optional).
• Added MACD momentum filter and Price Action filter (Higher Low for longs, Lower High for shorts) to cut a lot of chop.
• Introduced a loss-streak “circuit breaker” – after X consecutive losing trades the strategy pauses for a set number of bars.
• New TP/SL engine with 2 modes: ATR-based or Fixed % moves, with 4 staged TPs plus an optional runner and break-even SL after TP2.
• Cleaned up TP/SL lines & labels so levels are fixed per trade and easier to read.
• General refactor for more realistic backtests, better live behaviour and easier parameter tuning compared to V1.
ABOUT
AlosAlgo V2 is a multi-timeframe trend + momentum strategy designed for BTC and other high-liquidity markets. It takes directional bias from a higher timeframe, then filters that bias with volatility, momentum and simple price-action structure before it ever opens a trade.
Purely rule-based, no AI / Bayesian / ML.
Core idea
– Use higher-timeframe structure for direction.
– Only trade when trend, momentum and basic price action agree.
– Manage exits with multiple TPs, an optional runner and a hard SL so risk is defined from the start.
Setups
Two main engines:
• Open/Close – Higher-timeframe Heikin Ashi body direction (close vs open) as the core trend signal.
• Renko – ATR-based Renko feed with EMA cross (fast vs slow) as the core trend signal.
Classic sideways filters (ATR + RSI) can be layered on top if you want to only trade in trending or ranging conditions.
Filters added in V2
• Trend Filter MA – Longs only above the MA, shorts only below (length configurable).
• Momentum Filter – Optional MACD filter; only takes longs when MACD is bullish and shorts when MACD is bearish.
• Price Action Filter – Optional HL/LH logic using pivots: longs after a Higher Low, shorts after a Lower High.
• Loss-Streak Circuit Breaker – After N losing trades in a row, the strategy pauses entries for a set number of bars to avoid bad regimes / tilt.
Risk & exits
Two TP/SL modes:
• ATR mode – SL and TP1–TP4 based on ATR at entry (stopFactor / profitFactor).
• Fixed % mode – SL and TP1–TP4 defined as % moves from entry.
On entry the strategy:
• Opens a single position.
• Places 4 staged TPs (TP1–TP4) with user-defined % sizing.
• Optionally leaves a “runner” managed only by SL and trend changes.
• Can move SL to break-even automatically after TP2 (toggle).
All TP/SL levels are locked at entry and drawn on the chart with labels so you can see exactly what the trade is trying to do.
Non-repainting behaviour
V2 is refactored to avoid the repainting behaviour that V1 used. Higher-timeframe and Renko data are taken from confirmed bars only, and entries are based on state (e.g. > / <) instead of repaint-prone crosses. Backtests are much closer to what you’ll see live, and alerts line up with executed trades more reliably.
How to use (suggested defaults)
• Setup: Open/Close
• TPSType: Fixed %
• Trend Filter: ON
• Momentum Filter: ON
• Price Action Filter: ON
• Sideways Filter: No Filtering
Then tweak TP/SL distances and filters per asset + timeframe, and forward-test before sizing up.
Disclaimer
This is not financial advice, not a guarantee of profit and not a “set and forget” money printer. Always forward-test, paper trade and tune risk before using real capital or automation. Markets change – this is a tool, not a promise.
MTF Scalper - alemicihanMulti-Timeframe Scalper Strategy: Aligning the Big Picture for Quick Gains
This article presents a robust futures trading strategy designed for high-frequency scalping in the crypto market. It’s built on the principle of minimizing risk by ensuring that short-term entries are always aligned with the dominant, higher-timeframe trend.
The Core Concept: Alignment is Key
A Balanced Trend Follower approach, now refined for rapid scalping, uses a Multi-Timeframe (MTF) confirmation system to filter out market noise and increase the probability of a successful trade.
The strategy operates on a Low Timeframe (LTF) chart (e.g., 3m, 5m, or 15m) but only executes trades if the direction is validated by three Higher Timeframes (HTF).
ComponentPurposeFunctionHTF (D, 4h, 1h) EMA => Trend Confirmation =>Checks if the current price is above/below all three Exponential Moving Averages (EMA 20). This provides a strong directional bias.
LTF (5m) Stochastic RSI => Momentum Entry => Generates the actual buy/sell signal by spotting a swift crossover, indicating fresh momentum in the direction of the confirmed HTF trend.
How The Signal Is Generated
Trend Alignment: The system first confirms the trend. If the price is trading above the Daily, 4-Hour, and 1-Hour EMAs, the market is deemed to be in a Strong LONG Trend. Only LONG signals are permitted.
Momentum Trigger: Once the trend is confirmed, a Long Signal is generated only when the Stochastic K-Line crosses above the D-Line, indicating a momentum shift (a pullback ending) towards the main trend direction.
Short Signal: The inverse logic applies to the Short Trend confirmation and entry signal.
Mandatory Risk Management: ATR-Based Exit
Given the high leverage nature of futures and scalping, static Stop-Loss (SL) and Take-Profit (TP) levels are inefficient. This strategy uses the Average True Range (ATR) indicator to dynamically set profit and loss targets based on current market volatility.
Stop Loss (SL): Set dynamically at 1.5 x ATR below (for long) or above (for short) the entry price. This gives the trade enough room to breathe without risking excessive capital.
Take Profit (TP): Set dynamically at 3.0 x ATR, establishing a robust Risk-to-Reward Ratio of 1:2.
Final Thoughts on Testing
This sophisticated approach combines the reliability of MTF analysis with the speed of momentum indicators. However, data analysis is key. Backtesting these parameters (EMA, ATR Multipliers, RSI/Stochastic lengths) on your chosen asset (like BTC/USDT or ETH/USDT) and timeframe is crucial to achieving optimal performance.
Dami's HMA Strategy"Dami's HMA Strategy: Dynamic Crossover with Momentum Filter"
Key Points to Include:
Foundation: The strategy is based on the Hull Moving Average (HMA), noted for its speed and reduced lag, making it ideal for identifying trend inflection points early.
Enhanced Logic: Unlike a simple moving average crossover, this strategy incorporates a momentum filter. A signal is only triggered if the HMA crossover coincides with a candle moving in the direction of the new trend (bullish candle for Long, bearish candle for Short). This aims to confirm the impulse and avoid false entries during consolidation periods or 'weak' crossovers.
100% Market Coverage System: It is a continuous reversal system. Every new signal (Long or Short) closes the opposite position, ensuring the trader is always positioned in the direction indicated by the HMA.
Complementary Visualization: It includes the 8-Period High/Low Bands (Dami's Bands) to provide visual context of the recent price range, although they do not affect trading orders.
Adjustment and Optimization: The HMA length (hma_len=9 by default) is the key parameter to optimize based on the specific pair and timeframe. Higher values will generate fewer signals and be slower, while lower values (like the current 9) make it more sensitive.






















