Trendanalyse
Mirror Blocks: StrategyMirror Blocks is an educational structural-wave model built around a unique concept:
the interaction of mirrored weighted moving averages (โblocksโ) that reflect shifts in market structure as price transitions between layered symmetry zones.
Rather than attempting to โpredictโ markets, the Mirror Blocks framework visualizes how price behaves when it expands away from, contracts toward, or flips across stacked WMA structures. These mirrored layers form a wave-like block system that highlights transitional zones in a clean, mechanical way.
This strategy version allows you to study how these structural transitions behave in different environments and on different timeframes.
The goal is understanding wave structure, not generating signals.
How It Works
Mirror Blocks builds three mirrored layers:
Top Block (Structural High Symmetry)
Base Block (Neutral Wave)
Bottom Block (Structural Low Symmetry)
The relative position of these blocks โ and how price interacts with them โ helps visualize:
Compression and expansion
Reversal zones
Wave stability
Momentum transitions
Structure flips
A structure is considered bullish-stack aligned when:
Top > Base > Bottom
and bearish-stack aligned when:
Bottom > Base > Top
These formations create the core of the Mirror Blocks wave engine.
What the Strategy Version Adds
This version includes:
Long Only, Short Only, or Long & Short modes
Adjustable symmetry distance (Mirror Distance)
Configurable WMA smoothing length
Optional trend filter using fast/slow MA comparison
ENTER / EXIT / LONG / SHORT labels for structural transitions
Fixed stop-loss controls for research
A clean, transparent structure with no hidden components
It is optimized for educational chart study, not automated signals.
Intended Purpose
Mirror Blocks is meant to help traders:
Study structural transitions
Understand symmetry-based wave models
Explore how price interacts with mirrored layers
Examine reversals and expansions from a mechanical perspective
Conduct long and short backtesting for research
Develop a deeper sense of market rhythm
This is not a prediction model.
It is a visual and structural framework for understanding movement.
Backtesting Disclaimer
Backtest results can vary depending on:
Slippage settings
Commission settings
Timeframe
Asset volatility
Structural sensitivity parameters
Past performance does not guarantee future results.
Use this as a research tool only.
Warnings & Compliance
This script is educational.
It is not financial advice.
It does not provide signals.
It does not promise profitability.
The purpose is to help visualize structure, not predict price.
The strategy features are simply here to help users study how structural transitions behave under various conditions.
License
Released under the Michael Culpepper Gratitude License (2025).
Use and modify freely for education and research with attribution.
No resale.
No promises of profitability.
Purpose is understanding, not signals.
SG Capital Group trade assistantThe SG Capital Group Trade Assistant is designed to bring clarity and structure to your charts by automatically highlighting the most important market timings and daily transitions. It marks the start of each trading day and visually identifies key session moments, including the New York market open and your own customized session end time. The indicator also displays the days of the week directly on the chart, with adjustable text size and formatting to match your personal preference. All elements stay out of the way of price action, keeping your chart clean while still giving you immediate context. This tool helps traders maintain focus, understand market rhythm more intuitively, and streamline their analysis without distractions.
Hash Momentum Strategy# Hash Momentum Strategy
## ๐ Overview
The **Hash Momentum Strategy** is a professional-grade momentum trading system designed to capture strong directional price movements with precision timing and intelligent risk management. Unlike traditional EMA crossover strategies, this system uses momentum acceleration as its primary signal, resulting in earlier entries and better risk-to-reward ratios.
---
## โก What Makes This Strategy Unique
### 1. Momentum-Based Entry System
Most strategies rely on lagging indicators like moving average crossovers. This strategy captures momentum *acceleration* - entering when price movement is gaining strength, not after the move has already happened.
### 2. Programmable Risk-to-Reward
Set your exact R:R ratio (1:2, 1:2.5, 1:3, etc.) and the strategy automatically calculates stop loss and take profit levels. No more guessing or manual calculations.
### 3. Smart Partial Profit Taking
Lock in profits at multiple stages:
- **First TP**: Take 50% off at 2R
- **Second TP**: Take 40% off at 2.5R
- **Final TP**: Let 10% ride to maximum target
This approach locks in gains while letting winners run.
### 4. Dynamic Momentum Threshold
Uses ATR (Average True Range) multiplied by your threshold setting to adapt to market volatility. Volatile markets = higher threshold. Quiet markets = lower threshold.
### 5. Trade Cooldown System
Prevents overtrading and revenge trading by enforcing a cooldown period between trades. Configurable from 1-24 bars.
### 6. Optional Session & Weekend Filters
Filter trades by Tokyo, London, and New York sessions. Optional weekend-off toggle to avoid low-liquidity periods.
---
## ๐ฏ How It Works
### Signal Generation
**STEP 1: Calculate Momentum**
- Momentum = Current Price - Price
- Check if Momentum > ATR ร Threshold Multiplier
- Momentum must be accelerating (positive change in momentum)
**STEP 2: Confirm with EMA Trend Filter**
- Long: Price must be above EMA
- Short: Price must be below EMA
**STEP 3: Check Filters**
- Not in cooldown period
- Valid session (if enabled)
- Not weekend (if enabled)
**STEP 4: ENTRY SIGNAL TRIGGERED**
### Risk Management Example
**Example Long Trade:**
- Entry: $100
- Stop Loss: $97.80 (2.2% risk)
- Risk Amount: $2.20
**Take Profit Levels:**
- TP1: $104.40 (2R = $4.40) โ Close 50%
- TP2: $105.50 (2.5R = $5.50) โ Close 40%
- Final: $105.50 (2.5R) โ Close remaining 10%
---
## โ๏ธ Settings Guide
### Core Strategy
**Momentum Length** (Default: 13)
Number of bars for momentum calculation. Higher = stronger but fewer signals.
**Momentum Threshold** (Default: 2.25)
ATR multiplier. Higher = only trade biggest moves.
**Use EMA Trend Filter** (Default: ON)
Only long above EMA, short below EMA.
**EMA Length** (Default: 28)
Period for trend-confirming EMA.
### Filters
**Use Trading Session Filter** (Default: OFF)
Restrict trading to specific sessions.
**Tokyo Session** (Default: OFF)
Trade during Asian hours (00:00-09:00 JST).
**London Session** (Default: OFF)
Trade during European hours (08:00-17:00 GMT).
**New York Session** (Default: OFF)
Trade during US hours (08:00-17:00 EST).
**Weekend Off** (Default: OFF)
Disable trading on Saturdays and Sundays.
### Risk Management
**Stop Loss %** (Default: 2.2)
Fixed percentage stop loss from entry.
**Risk:Reward Ratio** (Default: 2.5)
Your target reward as multiple of risk.
**Use Partial Profit Taking** (Default: ON)
Take profits in stages.
**First TP R:R** (Default: 2.0)
First target as multiple of risk.
**First TP Size %** (Default: 50)
Percentage of position to close at TP1.
**Second TP R:R** (Default: 2.5)
Second target as multiple of risk.
**Second TP Size %** (Default: 40)
Percentage of position to close at TP2.
### Trade Management
**Use Trade Cooldown** (Default: ON)
Prevent overtrading.
**Cooldown Bars** (Default: 6)
Bars to wait after closing a trade.
---
## ๐จ Visual Elements
### Chart Indicators
๐ข **Green Dot** (below bar) = Long entry signal
๐ด **Red Dot** (above bar) = Short entry signal
๐ต **Blue X** (above bar) = Long position closed
๐ **Orange X** (below bar) = Short position closed
**EMA Line** = Trend direction (green when bullish, red when bearish)
**White Line** = Entry price
**Red Line** = Stop loss level
**Green Lines** = Take profit levels (TP1, TP2, Final)
### Dashboard
When not in real-time mode, a dashboard displays:
- Current position (LONG/SHORT/FLAT)
- Entry price
- Stop loss price
- Take profit price
- R:R ratio
- Current momentum strength
- Total trades
- Win rate
- Net profit %
---
## ๐ Recommended Settings by Timeframe
### 1-Hour Timeframe (Default)
- Momentum Length: 13
- Momentum Threshold: 2.25
- EMA Length: 28
- Stop Loss: 2.2%
- R:R Ratio: 2.5
- Cooldown: 6 bars
### 4-Hour Timeframe
- Momentum Length: 24-36
- Momentum Threshold: 2.5
- EMA Length: 50
- Stop Loss: 3-4%
- R:R Ratio: 2.0-2.5
- Cooldown: 6-8 bars
### 15-Minute Timeframe
- Momentum Length: 8-10
- Momentum Threshold: 2.0
- EMA Length: 20
- Stop Loss: 1.5-2%
- R:R Ratio: 2.0
- Cooldown: 4-6 bars
---
## ๐ง Optimization Tips
### Want More Trades?
- Decrease Momentum Threshold (2.0 instead of 2.25)
- Decrease Momentum Length (10 instead of 13)
- Decrease Cooldown Bars (4 instead of 6)
### Want Higher Quality Trades?
- Increase Momentum Threshold (2.5-3.0)
- Increase Momentum Length (18-24)
- Increase Cooldown Bars (8-10)
### Want Lower Drawdown?
- Increase Cooldown Bars
- Use tighter stop loss
- Enable session filters (trade only high-liquidity sessions)
- Enable Weekend Off
### Want Higher Win Rate?
- Increase R:R Ratio (may reduce total profit)
- Increase Momentum Threshold (fewer but stronger signals)
- Use longer EMA for trend confirmation
---
## ๐ Performance Expectations
Based on typical backtesting results:
- **Win Rate**: 35-45%
- **Profit Factor**: 1.5-2.0
- **Risk:Reward**: 1:2.5 (configurable)
- **Max Drawdown**: 10-20%
- **Trades/Month**: 8-15 (1H timeframe)
**Note:** Win rate may appear low, but with 2.5:1 R:R, you only need ~29% win rate to break even. The strategy aims for quality over quantity.
---
## ๐ Strategy Logic Explained
### Why Momentum > EMA Crossover?
**EMA Crossover Problems:**
- Signals lag behind price
- Late entries = poor R:R
- Many false signals in ranging markets
**Momentum Advantages:**
- Catches moves as they start accelerating
- Earlier entries = better R:R
- Adapts to volatility via ATR
### Why Partial Profit Taking?
**Without Partial TPs:**
- All-or-nothing approach
- Winners often turn to losers
- High stress watching open positions
**With Partial TPs:**
- Lock in 50% at first target
- Reduce risk to breakeven
- Let remainder ride for bigger gains
- Lower psychological pressure
### Why Trade Cooldown?
**Without Cooldown:**
- Revenge trading after losses
- Overtrading in choppy markets
- Emotional decision-making
**With Cooldown:**
- Forces discipline
- Waits for new setup to develop
- Reduces transaction costs
- Better signal quality
---
## โ ๏ธ Important Notes
1. **This is a momentum strategy, not an EMA strategy**
The EMA only confirms trend direction. Momentum generates the actual signals.
2. **Backtest thoroughly before live trading**
Past performance โ future results. Test on your specific asset and timeframe.
3. **Use proper position sizing**
Risk 1-2% of account per trade maximum. The strategy uses 100% equity by default (adjust in Properties).
4. **Dashboard auto-hides in real-time**
Clean chart for live trading. Visible during backtesting.
5. **Customize for your trading style**
All settings are fully adjustable. No single "best" configuration.
---
## ๐ Quick Start Guide
1. **Add to Chart**: Apply to your preferred asset and timeframe
2. **Keep Defaults**: Start with default settings
3. **Backtest**: Review historical performance
4. **Paper Trade**: Test with simulated money first
5. **Go Live**: Start small and scale up
---
## ๐ก Pro Tips
**Tip 1: Combine Timeframes**
Use higher timeframe (4H) for trend direction, lower timeframe (1H) for entries.
**Tip 2: Avoid News Events**
Major news can cause whipsaws. Consider manual intervention during high-impact events.
**Tip 3: Monitor Momentum Strength**
Dashboard shows momentum in sigma (ฯ). Values >1.0ฯ indicate very strong momentum.
**Tip 4: Adjust for Volatility**
In high-volatility markets, increase threshold and stop loss. In quiet markets, decrease them.
**Tip 5: Review Losing Trades**
Check if losses are hitting stop loss or reversing. Adjust stop accordingly.
---
## ๐ Changelog
**v1.0** - Initial Release
- Momentum-based signal generation
- EMA trend filter
- Programmable R:R ratio
- Partial profit taking (3 stages)
- Trade cooldown system
- Session filters (Tokyo/London/New York)
- Weekend off toggle
- Smart dashboard (auto-hides in real-time)
- Clean visual design
---
## ๐ Credits
Developed by **Hash Capital Research**
If you find this strategy useful, please give it a like and share with others!
---
## โ๏ธ Disclaimer
This strategy is for educational purposes only. Trading involves substantial risk of loss and is not suitable for all investors. Past performance is not indicative of future results. Always do your own research and consult with a qualified financial advisor before trading.
---
## ๐ฌ Feedback
Have suggestions or found a bug? Leave a comment below! I'm continuously improving this strategy based on community feedback.
---
**Happy Trading! ๐๐**
ADR Day Levels ParmezanIntraday Average Daily Range Framework Based on Day-Open Expansion
ADR Day Levels โ Parmezan v10 is an intraday volatility-awareness tool that shows how far price has moved relative to its typical daily range.
The indicator plots dynamic levels around the current Day Open, allowing traders to instantly see whether the market is trading inside normal volatility or breaking outside of expected bounds.
This tool is designed for Forex, Gold, and Indices โ any instrument with a meaningful daily range.
NeuraEdge Pro v1- Auto-OptimizedNeuraEdge Pro is an advanced, self-optimizing trading system that combines Smart Money Concepts (SMC), ICT principles, and adaptive neural networks to identify high-probability trade setups. The indicator automatically learns from its signal history and optimizes parameters in real-time to maintain your target win rate.
Key Features:
โ
Auto-optimization based on historical performance
โ
Neural adaptive system that learns market conditions
โ
ICT session filtering (London, New York, Asian)
โ
Smart Money Concepts integration
โ
Multi-timeframe support (Scalping to Swing trading)
โ
Built-in risk management system
๐ How It Works
NeuraEdge Pro identifies institutional order blocks, fair value gaps, and liquidity zones using advanced price action analysis. The system then filters these setups through multiple confluence factors including:
Market structure alignment
Volume confirmation
Neural network prediction
Session timing (ICT concepts)
Momentum indicators
RSI divergences
The higher you set the confluence number to (max 5) the more accurate but less signal quantity preferred on higher time frame from 1 HR and above.
The unique auto-optimization engine tracks signal performance and automatically adjusts internal parameters to improve accuracy over time.
โ๏ธ Recommended Settings by Trading Style
๐ฅ Scalping (1m - 5m charts)
Trading Mode:
โ
Scalp Mode
โ Intraday Mode
โ Swing Mode
โ
ICT Concepts
โ
Neural Adaptive
Risk Management:
Risk % per Trade: 0.5-1.0%
Risk:Reward Ratio: 2:1
ATR-Based Stop Loss: ON
ATR Multiplier: 1.3
Min SL Points: 15-20
Advanced Settings:
Analysis Lookback: 40
Order Block Strength: 4-5
Base FVG Size: 0.8-1.0
Base Volume Threshold: 1.8
Base Confluence Score: 4
๐ Intraday (15m - 1h charts)
Trading Mode:
โ Scalp Mode
โ
Intraday Mode
โ Swing Mode
โ
ICT Concepts
โ
Neural Adaptive
Risk Management:
Risk % per Trade: 1.0-1.5%
Risk:Reward Ratio: 2.5:1
ATR-Based Stop Loss: ON
ATR Multiplier: 1.5
Min SL Points: 25-30
Advanced Settings:
Analysis Lookback: 50
Order Block Strength: 4
Base FVG Size: 0.9
Base Volume Threshold: 1.6
Base Confluence Score: 4
๐ Swing Trading (4h - Daily charts)
Trading Mode:
โ Scalp Mode
โ Intraday Mode
โ
Swing Mode
โ
ICT Concepts
โ
Neural Adaptive
Risk Management:
Risk % per Trade: 1.5-2.0%
Risk:Reward Ratio: 3:1
ATR-Based Stop Loss: ON
ATR Multiplier: 1.8
Min SL Points: 40-50
Advanced Settings:
Analysis Lookback: 75
Order Block Strength: 3-4
Base FVG Size: 1.0-1.2
Base Volume Threshold: 1.5
Base Confluence Score: 3-4
๐ค Auto-Optimization Settings
Recommended for all timeframes:
Enable Auto-Optimization: ON
Optimization Lookback: 100 trades
Target Win Rate: 60%
๐ก The system needs at least 10-15 signals to begin optimization. Initial signals use base settings, then the system adapts automatically.
๐ฎ Predictive Analysis
Keep these balanced for optimal results:
Enable Predictive Mode: ON
Price Action Weight: 0.4
Volume Weight: 0.3
Momentum Weight: 0.3
These weights determine how much each factor influences setup scoring.
๐ฑ Signal Interpretation
BUY Signals (Green Labels)
Price has reached a bullish order block or FVG
Multiple confluence factors aligned
Neural network confirms bullish bias
Entry price shown on label
Green dashed line = Take Profit target
Red dashed line = Stop Loss
SELL Signals (Red Labels)
Price has reached a bearish order block or FVG
Multiple confluence factors aligned
Neural network confirms bearish bias
Entry price shown on label
Green dashed line = Take Profit target
Red dashed line = Stop Loss
๐ Dashboard Explained
Top Section:
Mode - Active trading mode and timeframe
Trend - Current market structure (Bullish/Bearish/Range)
Vol - Volume ratio (higher = stronger moves)
ATR - Current volatility measurement
Auto-Optimize Section:
Win Rate - Historical performance (updates after signals)
FVG/Vol/Conf - Current optimized parameters with arrows:
โ = System increased selectivity (fewer signals)
โ = System decreased selectivity (more signals)
= = No change from base settings
Ready OBs - Number of high-probability setups currently available
โ ๏ธ Important Trading Rules
Wait for signal labels - Don't trade order blocks/FVGs without confirmation
Respect the stop loss - Always displayed as red dashed line
Use proper position sizing - Based on your Risk % setting
Trade during recommended sessions - When ICT Concepts enabled
Let auto-optimization work - Give it 15-20 signals before judging
One signal at a time - System prevents new signals for 5 bars after entry
๐ฏ Best Practices
โ
DO:
Use on liquid, trending markets (Forex majors, indices, crypto majors)
Enable only ONE trading mode matching your timeframe
Keep ICT Concepts enabled for session filtering
Trust the auto-optimization after 15+ signals
Set alerts for BUY/SELL signals
โ DON'T:
Enable multiple trading modes simultaneously
Override stop losses manually
Trade during low liquidity hours without ICT filtering
Expect perfection - manage risk appropriately
Judge performance before 20+ signals
๐ Alert Setup
The indicator includes 4 alert types:
Buy Signal - Long entry opportunity
Sell Signal - Short entry opportunity
Sell-Side Sweep - Liquidity grabbed above
Buy-Side Sweep - Liquidity grabbed below
Set up alerts via TradingView's alert menu for real-time notifications.
๐ Performance Tracking
The dashboard shows real-time performance metrics:
Win Rate % - Percentage of profitable signals
Parameter adjustments - How the system is adapting
Neural Score - AI confidence (0-1 scale)
ICT Session Status - Whether optimal trading hours are active
๐ก Pro Tips
Start conservative - Use recommended settings for your timeframe
Give it time - Auto-optimization needs 20-30 signals for best results
Higher timeframes = higher quality - Fewer but better signals
Volume matters - Strongest signals occur on volume spikes
Structure alignment - Best trades align with overall trend
โ๏ธ Technical Requirements
Minimum Timeframe: 1 minute
Maximum Timeframe: Monthly
Best Timeframes: 5m, 15m, 1h, 4h
Asset Classes: Forex, Crypto, Indices, Stocks
Account Type: Any (works with all TradingView plans)
๐ Support & Updates
This indicator is actively maintained and updated based on user feedback. Future updates will include additional features and optimizations.
Disclaimer: Trading involves substantial risk. This indicator is a tool to assist analysis, not a guarantee of profits. Always use proper risk management and never risk more than you can afford to lose. Past performance does not guarantee future results.
Fibonacci Set-upThe indicator plots Fibonacci retracements based on recent lows and highs.
Additionally it calculates position size, max leverage, max drawdown and pricelevels.
Smart Margin Zone
SMART MARGIN ZONE - CME-BASED SUPPORT & RESISTANCE INDICATOR
TITLE FOR PUBLICATION:
Smart Margin Zone - CME Margin-Based Support and Resistance
CATEGORY:
Support and Resistance
SHORT DESCRIPTION (for preview):
Automatically plots margin zones based on CME Group requirements. These zones represent critical price levels where leveraged traders face margin calls, creating natural support and resistance through forced liquidations.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
FULL DESCRIPTION FOR TRADINGVIEW:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Smart Margin Zone - Professional Trading Zones Based on CME Data
This indicator automatically calculates and displays margin zones derived from official CME Group margin requirements. These zones represent critical price levels where traders using leverage receive margin calls, triggering forced position closures that create natural support and resistance levels.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฏ CORE CONCEPT
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
When price reaches calculated margin zones, traders using 2:1 or 4:1 leverage on CME futures receive margin calls. Brokers automatically liquidate these positions, creating waves of buying or selling pressure that form strong support and resistance levels.
This is not theoretical - it's based on actual margin requirements from CME Group, the world's largest derivatives marketplace.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ CALCULATION METHODOLOGY
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The indicator uses the following formula to calculate zone sizes:
Zone Size = (Margin Requirement / Tick Value) ร Tick Size ร 1.10
Where:
โข Margin Requirement = Official CME initial margin (updated November 2024)
โข Tick Value = Dollar value of minimum price movement
โข Tick Size = Minimum price increment
โข 1.10 = 10% buffer for realistic zone width
SUPPORTED INSTRUMENTS WITH CME DATA:
Currency Pairs:
โข EURUSD: $2,100 margin โ 0.0168 zone size
โข GBPUSD: $1,800 margin โ 0.0144 zone size
โข AUDUSD: $1,300 margin โ 0.0065 zone size
โข NZDUSD: $1,100 margin โ 0.0055 zone size
โข USDJPY: $3,200 margin โ custom calculation
โข USDCAD: $950 margin โ calculated
โข USDCHF: $1,650 margin โ calculated
Commodities:
โข Gold (XAUUSD): $8,000 margin โ 80 points zone size
โข Silver (XAGUSD): $6,500 margin โ calculated
โข WTI Crude Oil: $4,500 margin โ calculated
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ HOW IT WORKS
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
1. SWING POINT DETECTION
The indicator automatically identifies swing highs and swing lows using a configurable lookback period (default 10 bars). These become anchor points for zone calculations.
2. FIVE ZONE LEVELS
From each swing point, five zone levels are calculated:
โข Zone 1/4 (25%) - First correction level
โข Zone 1/2 (50%) - KEY ZONE for trend determination
โข Zone 3/4 (75%) - Intermediate level
โข Zone 1/1 (100%) - Full margin zone (strongest level)
โข Zone 5/4 (125%) - Extended zone
3. TREND IDENTIFICATION
โข Close above Zone 1/2 resistance = Bullish trend
โข Close below Zone 1/2 support = Bearish trend
โข Between zones = Range/consolidation
4. HISTORICAL CONTEXT
Current zones are displayed prominently with fills and labels. Historical zones appear as thin, semi-transparent lines for context without cluttering the chart.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ๏ธ FEATURES
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
AUTOMATED CALCULATION:
โ
Auto-detection of swing highs and lows
โ
Real-time zone updates as new swings form
โ
CME margin data built-in for major instruments
โ
Manual override option for custom calculations
VISUAL CLARITY:
โ
Color-coded zones (red=resistance, green=support)
โ
Adjustable transparency for fills and lines
โ
Current zones bold with fills and price labels
โ
Historical zones thin and transparent
โ
Swing point markers show calculation origins
CUSTOMIZATION:
โ
Show/hide individual zone levels (1/4, 1/2, 3/4, 1/1, 5/4)
โ
Toggle historical zones on/off
โ
Adjustable lookback period (5-50 bars)
โ
Customizable colors for all elements
โ
Line width and transparency controls
โ
Zone extension options (none/right/both)
TREND ANALYSIS:
โ
Optional trend background coloring
โ
Customizable trend colors and transparency
โ
Real-time trend identification display
STATISTICS:
โ
Live statistics table showing:
- Current instrument
- Active zone size
- Calculation mode
- Current trend direction
- Number of zones displayed
ALERTS:
โ
Zone 1/2 breakout (up/down)
โ
Full margin zone 1/1 reached
โ
Customizable alert messages
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ TRADING APPLICATIONS
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ENTRY SIGNALS:
โข Bounces from zone levels = potential entry points
โข Zone 1/2 breakouts = trend continuation entries
โข Zone rejections = reversal opportunities
RISK MANAGEMENT:
โข Zone levels = logical stop-loss placement
โข Zone 1/1 = maximum risk level
โข Zone spacing = position sizing guide
PROFIT TARGETS:
โข Next zone level = first target
โข Zone 1/1 = full profit target
โข Zone breakouts = extended targets
TREND CONFIRMATION:
โข Price above Zone 1/2 resistance = confirmed uptrend
โข Price below Zone 1/2 support = confirmed downtrend
โข Consolidation between zones = wait for breakout
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ USAGE INSTRUCTIONS
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
GETTING STARTED:
1. Add indicator to chart of any supported instrument
2. Zones automatically calculate and display
3. Adjust swing detection period if needed (default 10 works well)
4. Customize colors and visibility to your preference
OPTIMAL SETTINGS:
โข Best timeframes: H1, H4, Daily, Weekly
โข Default swing length (10) suitable for most markets
โข Show 2-3 historical zones for context
โข Enable swing point markers to see calculation origins
INTERPRETATION:
โข Watch for price reactions at zone boundaries
โข Strong bounces = respect for margin level
โข Clean breaks = momentum continuation
โข Multiple touches = zone strength confirmation
SET ALERTS:
โข Zone 1/2 breakouts for trend entries
โข Zone 1/1 reaches for profit-taking
โข Custom alerts for your specific strategy
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๏ธ IMPORTANT NOTES
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
DATA ACCURACY:
โข CME margin requirements updated November 2024
โข Margins change periodically - check CME Group website
โข Manual mode available for latest margin data
โข Indicator provides analysis tool, not financial advice
STATISTICAL PERFORMANCE:
โข Historical data shows >60% probability of continued movement after Zone 1/2 breakout
โข Zone effectiveness varies by market conditions
โข Best results in trending markets with clear swings
LIMITATIONS:
โข Margin requirements change - monitor CME updates
โข Works best on liquid instruments with clear swings
โข Not a standalone trading system
โข Should be combined with additional analysis
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ง METHODOLOGY CREDIT
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
This indicator is based on the margin zones concept developed by Alexander Bazylev (BTrade indicator for MetaTrader platforms).
The TradingView implementation has been completely rewritten with original enhancements:
โข Multiple zone levels instead of single level
โข Automatic swing point detection algorithm
โข Direct CME data integration
โข Historical zone visualization
โข Advanced customization options
โข Comprehensive statistics and alerts
All code is original and specifically designed for TradingView's Pine Script v5 environment.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ก BEST PRACTICES
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
COMBINE WITH:
โข Volume analysis for confirmation
โข Trend indicators for direction bias
โข Price action patterns at zones
โข Higher timeframe analysis
AVOID:
โข Trading against strong trends at minor zones
โข Over-leveraging based solely on zone placement
โข Ignoring broader market context
โข Expecting perfect bounces every time
OPTIMIZE:
โข Adjust swing length for different timeframes
โข Shorter period (5-7) for intraday trading
โข Longer period (15-20) for swing trading
โข Test historical effectiveness on your instruments
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ EDUCATIONAL VALUE
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
This indicator helps traders understand:
โข How institutional margin requirements affect price
โข Where forced liquidations create pressure
โข Natural support and resistance formation
โข Relationship between leverage and price levels
โข Market structure and key technical levels
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ VERSION HISTORY
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Version 1.0 (Initial Release):
โข CME-based zone calculation for 10 instruments
โข Automatic swing high/low detection
โข 5 zone levels with customizable display
โข Historical zones with transparency control
โข Swing point markers
โข Trend background indicator
โข Live statistics table
โข Multiple alert conditions
โข Fully customizable colors and styles
โข English language interface
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ SUPPORT & FEEDBACK
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Questions or suggestions? Leave a comment below!
If you find this indicator useful:
โญ Please leave a like
๐ฌ Share your experience in comments
๐ Follow for updates and new indicators
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ๏ธ DISCLAIMER
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
This indicator is provided for educational and analytical purposes only. It is not financial advice and should not be the sole basis for trading decisions.
โข Past performance does not guarantee future results
โข Trading involves substantial risk of loss
โข CME margin requirements subject to change
โข Always do your own research and risk management
โข Consult a financial advisor for investment advice
The creator is not responsible for any trading losses incurred through use of this indicator.
SwiftTrendโ OVERVIEW
SwiftTrend is a trend-following indicator inspired by the classic SuperTrend, but built on a completely different calculation method โ using the average candle body size and the body midpoint (bodyMid). It reacts very dynamically to changes in momentum strength. The indicator is clean, easy to read, and perfect for traders who want fast yet confirmed trend direction. By adjusting the settings, you can make signals extremely sensitive or, conversely, reduce their frequency to almost completely eliminate trend flips on minor price moves.
โ CONCEPT
The indicator was created to strike the perfect balance between signal speed and effective noise filtering.
Instead of using classic ATR and price extremes (high/low), SwiftTrend uses the average candle body size and the midpoint of the previous candleโs body as its core reference. The dynamic trend line (avgLine) is protected by a tolerance zone โ the trend only changes after price closes beyond this zone. This approach delivers significantly faster reaction times than many traditional solutions while maintaining excellent resistance to false signals during ranging markets.
โ FEATURES
Data source:
- Average candle body size: SMA(|open โ close|, period)
- Reference point: midpoint of the previous candleโs body (bodyMid )
Dynamic trend line (avgLine):
- Built using Band Multiplier
- The line is โattractedโ toward price movement
Tolerance zone (margin):
- Tolerance = Tolerance Multiplier ร avgBody
- Default: 2.5 (for both band and tolerance)
Trend change logic:
- Down โ Up: close > avgLine + tolerance
- Up โ Down: close < avgLine โ tolerance
Visual signals:
- โBuyโ label (green upward arrow) and โSellโ label (red downward arrow) only on confirmed trend change
- Optional soft gradient fill between trend line and price
- Optional bar coloring based on current trend
- Trend line with breaks at reversal points
Alerts:
- Buy alert โ triggers only when the closing price crosses from below to above the marginLineBase
- Sell alert โ triggers only when the closing price crosses from above to below the marginLineBase
โ HOW TO USE
Add to chart โ paste the code in Pine Editor or search for โSwiftTrendโ.
Main settings:
- Average Body Periods โ default 100
- Band Multiplier โ default 2.5
- Tolerance Multiplier โ default 2.5 (key sensitivity parameter)
- Colors, fill, and bar coloring โ fully customizable
Interpretation:
- Green line & shading = uptrend
- Red line & shading = downtrend
- Higher Tolerance Multiplier = fewer but higher-quality signals
- Tolerance Multiplier near 0 = ultra-fast signals (aggressive mode)
โ APPLICATIONS
Excellent for:
- Trend-following (enter with trend, exit on reversal)
- Breakout and momentum strategies
- Filtering consolidation and noise โ thanks to the adjustable tolerance zone
Best combined with:
- Classic support/resistance levels
- Fibonacci retracements, Pivot Points, psychological round numbers
- Confirmation from oscillators (RSI, Stochastic, MACD)
- Volume or volume profile analysis
Style adaptation:
- Scalping / daytrading โ lower Tolerance Multiplier (0.8โ1.8) + shorter period
- Swing / position trading โ higher values (2.5โ5.0) + longer period
โ NOTES
- Works on all markets and timeframes
- Success depends on matching the Tolerance Multiplier to your strategy and the instrumentโs volatility
- Higher multiplier & period values = fewer signals, significantly higher quality
- At Tolerance Multiplier = 0 the indicator becomes extremely responsive โ perfect for aggressive momentum trading
Momentum Master v1# Momentum Master v1 - Multi-Strategy Trading System
## SCRIPT OVERVIEW
Momentum Master v1 is a multi-strategy trading system that integrates 6 distinct trading methodologies (EMA Crossover, RSI Mean Reversion, Breakout, MACD Crossover, Bollinger Bands, Volume Breakout) through a shared risk management pipeline. This script implements a proprietary integration framework that creates synergistic value beyond what individual indicators provide, combining advanced technical analysis techniques with institutional flow analysis.
## TECHNICAL METHODOLOGY
### Multi-Strategy Signal Generation Framework
The script operates on a shared execution framework where all six trading strategies share the same risk management system, but each strategy uses its own unique entry logic:
1. **EMA Crossover System**: Detects momentum shifts using configurable fast/slow EMA periods (Standard 9/21, Fast 7/17, Slow 13/26, or Custom)
2. **RSI Mean Reversion**: Identifies overbought/oversold conditions for counter-trend opportunities
3. **Breakout Detection**: Captures price breakouts from consolidation zones
4. **MACD Crossover**: Uses MACD line crossovers to confirm trend changes
5. **Bollinger Bands**: Trades bounces from band extremes and breakouts
6. **Volume Breakout**: Confirms moves with above-average volume
**Why This Integration Creates Unique Value:**
This is not a simple indicator mashup. The proprietary integration framework creates synergistic value through:
- **Shared Risk Management**: All strategies share ATR-based stop loss calculation and multiple take profit levels (TP1-TP6 with ratios 1:2, 1:4, 1:6, 1:8, 1:10, 1:12)
- **Adaptive Confidence Scoring**: The system evaluates market context from multiple perspectives simultaneously
- **Shared Filter System**: Optional filters (RSI extremes, ADX trend strength, Volume confirmation, POC proximity) apply uniformly across all strategies
## FLOW ANALYSIS INTEGRATION
### Fair Value Gap (FVG) Retracement Validation
The script implements proprietary FVG detection with retracement validation logic:
- **200-bar lookback** with **20% ATR tolerance** for gap identification
- **Retracement confirmation**: Signals can require price to retrace into a recent FVG before entry (optional filter)
- **Size filtering**: Only displays FVGs above minimum ATR threshold (configurable)
- **Visual tracking**: Shows last N FVGs with color-coded boxes (bullish green, bearish red)
**How FVG Integration Enhances Strategy Signals:**
When a strategy generates a signal, the FVG system validates whether price has recently retraced into an institutional order flow gap. This adds a layer of confirmation that the move is supported by institutional activity, not just retail momentum.
### Order Block Detection with Directional Alignment
- **Institutional accumulation/distribution zones**: Identifies the last bullish/bearish candle before a significant move
- **Directional filter**: Optional setting to only allow trades aligned with the most recent order block direction
- **ATR-based size filtering**: Filters out noise by requiring minimum order block size
- **Visual display**: Shows order blocks as colored boxes extending N bars forward
**Integration Logic:**
Order blocks represent areas where institutions accumulated or distributed positions. When a strategy signal occurs near an order block, it indicates higher probability that the move will continue in the block's direction.
### Multi-Timeframe POC (Point of Control) Analysis
The script calculates and displays POC levels from multiple timeframes:
- **Volume Profile POC**: Highest volume price over last N bars (configurable lookback)
- **Session POC**: Point of control for current trading session
- **Daily POC**: Daily volume-weighted average price
- **Weekly POC**: Weekly volume-weighted average price (optional)
**POC Proximity Filtering:**
Optional filters allow signals only when price is within X ATR of a POC level. This ensures entries occur at statistically significant price levels where liquidity is concentrated.
## FIBONACCI EXTENSION SYSTEM
### Dynamic Fibonacci Calculation
- **Swing-based detection**: Automatically identifies swing highs and lows using configurable lookback period
- **Extension levels**: Calculates Fibonacci extension levels (0.618, 0.786, 1.0, 1.272, 1.414, 1.618, 2.0, 2.618)
- **Retracement levels**: Shows standard retracement levels (0.236, 0.382, 0.5, 0.618, 0.786)
- **Negative levels**: Optional negative Fibonacci levels (-0.27, -0.618) for extended targets
**How Fibonacci Enhances Risk Management:**
Take profit levels are automatically calculated using Fibonacci extension mathematics. The system identifies the swing structure and projects potential reversal zones, allowing traders to set targets based on mathematical probability rather than arbitrary price levels.
## LIQUIDITY ZONE DETECTION
### Buy and Sell Side Liquidity
- **Swing-based liquidity zones**: Identifies recent swing highs (sell-side liquidity) and swing lows (buy-side liquidity)
- **Configurable lookback**: Adjustable period for liquidity zone detection
- **Visual display**: Horizontal lines extending N bars forward to show liquidity targets
- **Maximum zones**: Limits display to most recent N zones to avoid chart clutter
**Trading Application:**
Liquidity zones represent areas where stop losses are likely clustered. Price often moves to "sweep" these liquidity zones before reversing, creating high-probability entry opportunities.
## RISK MANAGEMENT SYSTEM
### ATR-Based Stop Loss Calculation
- **Dynamic stop placement**: Stop loss calculated using ATR (Average True Range) with configurable multiplier
- **Adaptive to volatility**: Stop loss automatically adjusts to current market volatility conditions
- **Configurable ATR period**: Default 14-period ATR, adjustable from 5-30 periods
- **SL multiplier**: Adjustable from 0.5x to 10x ATR for different risk profiles
### Multiple Take Profit Levels
The system supports up to 6 take profit levels with fixed risk-reward ratios:
- **TP1**: 1:2 risk-reward ratio
- **TP2**: 1:4 risk-reward ratio
- **TP3**: 1:6 risk-reward ratio
- **TP4**: 1:8 risk-reward ratio (optional)
- **TP5**: 1:10 risk-reward ratio (optional)
- **TP6**: 1:12 risk-reward ratio (optional)
**Why Multiple TP Levels:**
This allows partial profit-taking at key Fibonacci extension levels while letting winners run. The system tracks win rates for each TP level, helping traders optimize their exit strategy.
## SIGNAL FILTERS (OPTIONAL ENHANCEMENTS)
### RSI Extreme Filter
- **Avoid overbought/oversold extremes**: Prevents entries when RSI is in extreme zones (default: >70 overbought, <30 oversold)
- **Configurable thresholds**: Adjustable RSI levels and calculation period
- **Purpose**: Reduces false signals in exhausted moves
### ADX Trend Strength Filter
- **Avoid choppy markets**: Only allows trades when ADX indicates trending conditions (default: ADX > 20)
- **Configurable threshold**: Adjustable ADX minimum value (10-50)
- **Purpose**: Filters out low-probability trades in ranging markets
### Volume Confirmation
- **Volume multiplier**: Requires volume above X times average (default: 1.1x)
- **Purpose**: Ensures moves are supported by institutional participation
### POC Proximity Filters
- **Volume POC filter**: Only enter when price is near Volume Profile POC
- **Session POC filter**: Only enter when price is near Session POC
- **Daily POC filter**: Only enter when price is near Daily POC
- **Weekly POC filter**: Only enter when price is near Weekly POC
- **Proximity threshold**: Configurable ATR multiplier for "near" definition (default: 2.0x ATR)
---
## DIVERGENCE DETECTION
### MFI (Money Flow Index) Divergence
- **Bullish divergence**: Price makes lower low, MFI makes higher low (potential reversal up)
- **Bearish divergence**: Price makes higher high, MFI makes lower high (potential reversal down)
- **Configurable lookback**: Adjustable period for divergence detection (default: 100 bars)
- **Minimum bars between divergences**: Prevents duplicate signals (default: 10 bars)
- **Advanced thresholds**: Separate thresholds for RSI, price, and MFI divergence strength
**Note**: Divergence detection is visual-only and does not filter trades. It provides additional market context for discretionary traders.
## MARKET CONTEXT TOOLS
### Session High/Low Lines
- **Recent session extremes**: Displays horizontal lines for session high and low
- **Configurable lookback**: Adjustable period for session calculation (default: 10 bars)
- **Purpose**: Identifies key intraday support/resistance levels
### Swing Point Detection
- **Automatic swing identification**: Marks significant swing highs and lows
- **Visual reference**: Helps identify market structure and trend direction
### Signal Overview Table
Real-time technical analysis overview:
- **Current RSI**: Relative Strength Index value
- **ATR**: Current Average True Range
- **ADX**: Average Directional Index (trend strength)
- **EMA status**: Current fast/slow EMA relationship (Bullish/Bearish/Neutral)
- **POC levels**: Current price relative to POC levels
- **Confidence score**: Calculated confidence percentage based on confluence
- **Volume trend**: Current volume trend direction
## CHART DISPLAY OPTIONS
### Entry/SL/TP Lines
- **Visual trade management**: Displays entry price, stop loss, and all take profit levels as horizontal lines
- **Configurable length**: Lines extend N bars forward (default: 30 bars)
- **Color-coded**: Different colors for entry, stop loss, and each TP level
### Win/Loss Labels
- **Trade verification**: Displays up to 500 individual win/loss labels on chart
- **Visual feedback**: Green labels for wins, red labels for losses
- **Performance tracking**: Helps verify strategy performance visually
## USAGE INSTRUCTIONS
### Initial Setup
1. **Select Strategy Mode**: Choose your preferred trading strategy from the dropdown (EMA Crossover, RSI Mean Reversion, Breakout, MACD Crossover, Bollinger Bands, Volume Breakout, or Disabled)
2. **Configure Risk Management**:
- Set ATR Length for stop loss calculation (default: 14)
- Set SL ATR Multiplier (default: 1.0)
- Enable additional TP levels if desired (TP4-TP6 are optional)
3. **Adjust Strategy Parameters**: Each strategy has its own settings group. Configure EMA periods, RSI settings, MACD parameters, etc., based on your selected strategy.
### Recommended Settings by Market Type
**Forex/Crypto (High Volatility)**:
- EMA Mode: Fast (7/17) or Custom (3/21)
- SL ATR Multiplier: 1.5-2.0
- Enable FVG retracement filter
- Enable Order Block directional filter
**Stocks (Moderate Volatility)**:
- EMA Mode: Standard (9/21)
- SL ATR Multiplier: 1.0-1.5
- Enable ADX filter to avoid choppy markets
- Enable Volume confirmation
**Indices (Lower Volatility)**:
- EMA Mode: Slow (13/26)
- SL ATR Multiplier: 0.8-1.2
- Enable POC proximity filters
- Enable RSI extreme filter
### Advanced Configuration
1. **Enable Optional Filters**: Navigate to "Signal Filters" section and enable filters that match your trading style
2. **Configure Market Analysis Tools**: Adjust FVG, Order Block, Fibonacci, and POC settings in their respective sections
3. **Customize Display**: Toggle chart display options to show/hide various elements based on your preference
---
## WHY THIS INDICATOR COMBINATION CREATES UNIQUE VALUE
### Multi-Layered Confluence Analysis
This script is not a simple indicator mashup. It implements a proprietary integration framework that creates synergistic value through three layers of analysis:
**Layer 1: Fibonacci Mathematics**
- Golden Zone identification (61.8%-78.6% retracement zone) using three-point trend-based calculation
- Extension targets based on swing structure mathematics
- Statistically significant retracement areas where price is likely to reverse
**Layer 2: Institutional Flow Analysis**
- Fair Value Gaps (FVGs) identify order flow gaps where price must return
- Order Blocks mark institutional accumulation/distribution zones
- Multi-timeframe POC analysis shows where liquidity is concentrated
- Liquidity zones identify where stop losses cluster
**Layer 3: Multi-Strategy Signal Generation**
- Six different entry methodologies provide multiple perspectives
- Shared risk management ensures consistent position sizing
- Adaptive confidence scoring evaluates confluence from all three layers
- Optional filters allow customization for different market conditions
### Proprietary Integration Framework
The unique value comes from how these components work together:
1. **Strategy generates signal** โ 2. **FVG/Order Block validates institutional support** โ 3. **POC confirms liquidity level** โ 4. **Fibonacci provides target zones** โ 5. **Risk management calculates optimal SL/TP placement**
This creates a complete trading system, not just a collection of indicators.
---
## TECHNICAL SPECIFICATIONS
- **Pine Script Version**: v6
- **Chart Type**: Overlay (displays on price chart)
- **Max Bars Back**: 5000 (for historical analysis)
- **Max Labels**: 500 (for win/loss tracking)
- **Compatibility**: Works on all timeframes and instruments
- **Performance**: Optimized for real-time execution
---
## DISCLAIMER
This script is a technical analysis tool and does not constitute financial, investment, trading, or other types of advice. Past performance does not guarantee future results. Always use proper risk management and never risk more than you can afford to lose. The script's signals are based on mathematical calculations and should be used in conjunction with your own analysis and risk management practices.
---
## SUPPORT AND ACCESS
This is an invite-only script. To request access:
1. Visit: www.pinescriptedge.com
2. Include your TradingView username and brief trading experience
3. Access will be reviewed and granted within 24 hours
**Note**: TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
---
## VERSION INFORMATION
**Momentum Master v1** - Initial release with multi-strategy framework and institutional flow analysis integration.
For updates and new features, follow the script or check the author's profile for version announcements.
DANGHIEU EMA 34/89/200 Ribbon (Scaled HTF)๐ Indicator Description โ EMA 34/89/200 Ribbon (Scaled HTF)
The EMA 34/89/200 Ribbon (Scaled HTF) indicator is designed to replicate higher-timeframe EMAs directly on your current chart without switching timeframes.
Using a precise HTF Scaling Algorithm, the script converts EMAs from 1H, 2H, 4H, 6H, 12H, 1D, and even 1W into equivalent lengths on lower timeframesโallowing traders to perform true multi-timeframe trend analysis on a single chart.
The 34-EMA and 89-EMA form a dynamic trend ribbon that changes color based on the relationship between the two moving averages. This helps traders quickly identify trend direction, momentum strength, and potential market reversals. The indicator also includes optional crossover markers (X symbols) to highlight bullish and bearish crossovers for cleaner signal recognition. EMA200 is included as the long-term trend anchor.
This tool is ideal for scalpers, day traders, and swing traders who require higher-timeframe context while trading lower-timeframe entries.
๐ฆ How to Use the Indicator
1. Choose the Higher Timeframe to Simulate
Use the โHTF to Simulateโ dropdown to select the timeframe you want to emulate (e.g., 4H, 2H, 1D, 1W).
The script automatically scales the EMA lengths so they match the selected HTF.
2. Read the Ribbon for Trend Direction
Green Ribbon โ EMA34 above EMA89 โ Bullish momentum
Red Ribbon โ EMA34 below EMA89 โ Bearish momentum
The ribbon expands when momentum strengthens and contracts during consolidation.
3. Use EMA Crossovers as Signal Zones
Optional X markers highlight crossover points:
Bullish Crossover โ EMA34 crosses above EMA89
Bearish Crossover โ EMA34 crosses below EMA89
These crossovers often align with trend shifts or early momentum changes.
4. EMA200 as Trend Filter
The EMA200 acts as the macro trend filter:
Price above EMA200 โ only consider long setups
Price below EMA200 โ only consider short setups
Combining ribbon trend + EMA200 alignment improves signal accuracy.
5. Multi-Timeframe Trading Strategy
This indicator is powerful for:
Scalping with HTF bias
Pullback entry on lower timeframe during HTF trend
Identifying trend exhaustion when the ribbon flips
Confirming wave structure (Elliott Wave, Dow Theory)
Spotting strong momentum phases and squeeze zones
Example workflow:
Select 4H as HTF simulation.
Trade on 15m or 5m chart.
Enter only when price aligns with the HTF ribbon + EMA200 trend.
Use EMA crossovers as confirmation signals.
Momentum Divergence Oscillator by JJMomentum Divergence Oscillator by JJ
A powerful, all-in-one momentum tool designed to streamline trade confluence, combining multi-timeframe trend analysis with automatic divergence spotting and classic MACD signals.
How to Use This Indicator
This oscillator is designed to be used in the lower pane of your chart, beneath your primary price chart. It provides three main types of signals:
1. Multi-Timeframe (MTF) Trend Confirmation
The background shading is your primary trend filter. It looks at the MACD trend on two higher timeframes (30m and 60m by default) to confirm the market's overarching direction.
Green Shading: Indicates that both higher timeframes are in a bullish trend (MACD above signal line). Focus on looking for BUY signals during this time.
Red Shading: Indicates that both higher timeframes are in a bearish trend. Focus on looking for SELL signals during this time.
Grey/No Shading: The higher timeframes are not in agreement or are consolidating. Exercise caution or stick to standard price action rules.
2. Automatic Divergence Signals
Divergence is a powerful early warning system where the indicator moves in the opposite direction of the price. The indicator automatically flags these occurrences:
"Bull RSI Div" (Green Label-Up): Bullish divergence identified using the RSI oscillator. This suggests a potential reversal to the upside after a downtrend.
"Bear RSI Div" (Red Label-Down): Bearish divergence identified using the RSI oscillator. This suggests a potential reversal to the downside after an uptrend.
Tip: These signals are often most reliable when they occur within the corresponding MTF background colour (e.g., a "Bull RSI Div" during a Green MTF background).
3. Momentum Shifts and Crossovers
The standard plots provide immediate insight into market momentum:
Blue/Orange Lines: The traditional MACD line (Blue) and Signal line (Orange).
Histogram (Green/Red Bars): Represents the momentum difference between the MACD and Signal lines.
Zero-Line Crosses (Triangles): Tiny triangles appear when the MACD line crosses the zero line, indicating a shift in long-term momentum.
Peaks & Troughs (X-Crosses): The 'X' markers identify local peaks and troughs in the histogram, sometimes indicating short-term exhaustion of the current move.
Disclaimer: Trading involves significant risk and is not suitable for every investor. This indicator is for educational purposes only and should not be considered financial advice. Always use appropriate risk management.
Liquidity ThermometerThis is a universal indicator that assesses market liquidity based on five key market parameters: volume, volatility, candlestick range, body size, and price momentum.
The indicator does not use open interest data and is suitable for all markets, including spot, futures, and Forex.
This indicator normalizes each metric historically and creates a composite index between 0 and 1, where higher values โโcorrespond to a stable and calm market environment, and lower values โโindicate periods of increased risk and potential liquidity stress.
LT generates an integral liquidity index in the range based on five normalized components:
-nVol โ normalized volume, reflecting trading density and activity.
-nATR โ the volatility component (ATR), inverted, as high volatility is typically associated with declining liquidity.
-nRange โ the normalized candlestick range, also inverted to assess the structural narrowness of the price movement.
-nBody โ the normalized candlestick body size (|close โ open|), inverted to assess the balance of supply and demand.
-nMove โ the normalized value of the price impulse movement (|ฮclose|), reflecting short-term price spikes.
Each metric is linearly normalized over a sliding window (200 bars) using the formula:
norm(x) = (x โ min) / (max โ min),
where at max = min, the value is fixed at 0.5 to ensure stability.
The ALT index is calculated as a weighted combination:
ALT = 0.35 nVol + 0.20 (1 โ nATR) + 0.20 (1 โ nRange) + 0.15 (1 โ nBody) + 0.10 (1 โ nMove)
The result is further smoothed using EMA(3) to reduce micronoise.
Red Zone (MLI < 0.25) โ Risk, Thin Liquidity
When the indicator falls into the red zone, it means the market is extremely volatile:
Characteristics:
Low volume โ small trades have a strong impact on the price.
High volatility โ candlesticks rise or fall sharply.
Wide candlestick range โ the market is "breathing heavily," easily breaking price extremes.
Impulsive movements โ small market shocks lead to sharp spikes.
Thin liquidity โ few orders in the order book, large orders "eat up" the market.
What this means for a trader:
๐ฅ High risk of spikes and false breakouts.
โ Possible series of liquidations on leverage.
โ It is not recommended to enter long or short positions without a filter or protection.
โ
Can be used for short scalping strategies if you know the entry point, but very carefully.
Green Zone (MLI > 0.75) โ High Liquidity, Safe Zone
When the indicator rises into the green zone, it means the market is stable and balanced:
Characteristics:
High volume โ the market is deep, orders are executed without a strong impact on the price.
Low volatility โ candlesticks are stable, no sharp spikes.
Narrow candlestick range โ price moves calmly.
Weak impulse movements โ no sharp surges.
Sufficient liquidity โ the market can handle large orders.
What this means for a trader:
โ
Safe zone for opening positions.
๐ Easier to set stop-loss and take-profit orders.
๐ก You can trade both up and down, the risk of sharp movements is minimal.
โก Under these conditions, there is a lower risk of spikes and accidental liquidations.
It does not predict price movements or guarantee results. It is an analytical tool intended for additional research into market structure.
Cjack COT IndexHere's the updated description with the formula and additional context:
---
**Cjack COT Index - Commitment of Traders Positioning Indicator**
This indicator transforms raw Commitment of Traders (COT) data into normalized 0-100 index values, making it easy to identify extreme positioning across different trader categories.
**How It Works:**
The indicator calculates a min-max normalized index for three trader groups over your chosen lookback period (default 26 weeks):
- **Large Speculators** (Non-commercial positions) - typically trend followers
- **Small Speculators** (Non-reportable positions) - retail traders
- **Commercial Hedgers** - producers and consumers hedging business risk
The normalization formula is: **Index = (Current Position - Minimum Position) / (Maximum Position - Minimum Position) ร 100**
This calculation shows where current net positioning sits between the minimum and maximum levels observed in the lookback window. A reading of 100 means current positioning equals the maximum net long over that period, 0 equals the minimum (most net short), and 50 is the midpoint of the range.
**Important:** The lookback period critically affects index readings - shorter lookbacks (13-26 weeks) make the index more sensitive to recent extremes, while longer lookbacks (52-78 weeks) provide broader historical context and identify truly exceptional positioning. Min-max normalization is essential because it makes positioning comparable across different contracts and time periods, regardless of the absolute size of positions.
**What It's Good For:**
The indicator excels at identifying **crowded trades** and potential reversals by tracking contrarian setups where commercials (smart money) position opposite to speculators. Background highlighting automatically flags:
- **Long setups** (green): Commercials heavily long while speculators are heavily short
- **Short setups** (red): Commercials heavily short while speculators are heavily long
The "Shift Index" option (enabled by default) displays last week's tradeable COT data aligned with current price action, ensuring you're working with actionable information since COT reports publish with a delay.
Works on weekly timeframes and below for commodities and futures with available COT data.
AtaโจSMAThis Pine Script v6 indicator performs three main functions on a trading chart:
Multiple Moving Averages (MA)
Displays 7 moving averages with fixed lengths (5, 10, 20, 30, 50, 100, 200).
Allows the user to select the MA type: SMA, EMA, WMA, or HMA.
Each MA has a distinct color and line width for clear visual differentiation.
Support and Resistance (S/R) Levels
Identifies key price levels based on pivot points (local highs/lows) within a userโdefined lookback period.
Filters levels by:
Minimum strength (number of touches).
Maximum zone width (as a percentage of price range).
Timeframe (userโselectable: 5m to monthly).
Visualizes levels as horizontal zones (boxes) colored by type:
Red (res_col) for resistance.
Green (sup_col) for support.
Blue (inch_col) for indecision zones.
Optionally shows a table with level prices, types, and strength percentages.
Includes alert triggers for breakouts (price closing above resistance or below support).
Volume Profile (Side Volumes)
Builds a horizontal volume histogram to the right of the last bar, showing buy/sell volume distribution across price levels.
Highlights the Point of Control (POC) โ the price with the highest total volume.
Colors:
Light blue for buy volume.
Light red for sell volume.
Yellow for POC line.
Allows customization of:
Number of bars used for calculation.
Rightward shift of the volume profile.
POC line extension leftward.
Includes tooltips explaining POC and trading scenarios.
Summary:
The script combines trend-following MAs, dynamic S/R zones with alerts, and volume profile analysis into a single indicator for multiโfaceted market structure assessment.
OSOK - One Shot One Kill( Macros w/ Body Swings, SD Prj)What you get:
Time windows: contiguous 50โ10 (HH:50โ(HH+1):10) and 20โ40 (HH:20โHH:40), or both.
Kill Zones & Day filter: Asian, London, NY, London Close; weekdays toggles.
Static projection TF: compute swings on 5-minute (or custom) and display on any chart TF.
Fibonacci/SD ladder: internal retracements & multi-SD extensions with optional price labels.
Stats table: per-hour counts, average/ min/ max range, plus hit-rates for +1/+2/+3/+4 and โ1/โ2.
Sequence logic (optional): track conditional paths (e.g., 0โ+2, +1โโ2, etc.) to separate continuation vs. reversal behavior.
CSV export: push current table (filtered/sorted) to a chart label for copy-out.
EMA+SuperThis indicator integrates multiple trend-following components into a unified, clean, and easy-to-interpret chart overlay. Its purpose is to help traders observe short-term and long-term trend direction, momentum shifts, and potential areas of interest using established moving-average and volatility-based techniques.
๐น Features
1. Multi-EMA Framework
Plots the 9, 21, 50, 100, and 200 EMAs to provide a structured view of short, medium, and long-term market trends.
2. Supertrend Overlay
Applies an ATR-based Supertrend to visualize potential directional shifts.
Both uptrend and downtrend zones are lightly shaded for improved clarity.
3. NovaWave-Style Trend Cloud
A dynamic cloud formed from:
Fast EMA
Slow EMA
Signal MA
The cloud automatically adapts its color based on the relationship between the fast and slow EMAs, offering a quick visual read of momentum bias.
4. Displaced Moving Averages (20 / 50 / 200 DMA)
Includes optional forward displacement to replicate commonly used DMA models in trend-following systems.
5. Crossover Buy/Sell Signals
Buy and sell markers appear when the fast EMA crosses above or below the slow EMA.
Users may create custom alerts via the TradingView alerts panel.
๐น Alerts
This indicator supports built-in EMA crossover alerts:
Buy Alert โ triggered when the fast EMA crosses above the slow EMA
Sell Alert โ triggered when the fast EMA crosses below the slow EMA
Users can enable these alerts through the โAdd Alertโ panel and select the corresponding alert condition.
Alerts are evaluated on bar close for consistency and do not repaint.
๐น How to Use
EMA structure helps define directional bias and market phase.
The Supertrend and Trend Cloud offer contextual confirmation.
EMA crossovers can help highlight momentum changes.
DMAs provide an additional perspective on smoothed trend levels.
This tool is intended for visual analysis and can complement other approaches such as volume studies, higher-timeframe trend analysis, or support/resistance mapping.
โ ๏ธ Disclaimer
This script is for educational and informational purposes only. It does not constitute financial advice or guarantee any outcome. Always perform independent analysis and apply proper risk management.
Alpha Signal by First TradeAlpha Signal by First Trade
Indicator signals for trend analysis and trading planning.
ILM & IFVG StrategyPlease feel free to adjust in any way possible. Let me know if you can create something better from this initial coding.
//โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Inverted Liquidity Model (ILM) โ Strategy
//โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
//
// The **Inverted Liquidity Model (ILM)** is a liquidity-based algorithm
// built to capture high-probability reversals after:
//
// โข A liquidity sweep (SSL/BSL taken)
// โข Rejection back inside the range
// โข A Fair Value Gap (FVG) forms
// โข That FVG becomes invalidated โ becomes an IFVG entry zone
//
// ILM combines:
// โข LTF BOS / CHOCH structure confirmation
// โข HTF structure (expansion) filtering
// โข Premium / Discount filter (17:00 CST session midline)
// โข Optional ATR volatility filter
// โข Optional trading session restrictions
// โข Optional partial profit-taking + runners
//
// When all conditions align, the strategy enters:
// โ Long after sweep of SSL + valid long IFVG + trend confirmation
// โ Short after sweep of BSL + valid short IFVG + trend confirmation
//
// Stops are placed at the sweep wick.
// Full target is set at the next structural high/low.
// Optional partial TP sends a runner to full target.
//
// Visual tools (labels, sweep lines, IFVG boxes, midline) assist
// with review and forward testing.
//
//โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// USER CONFIGURABLE FEATURES
//โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
//
// โข **Liquidity & Structure**
// - pivotLen โ swing length for pivots / liquidity
// - htfOn โ toggle higher-timeframe pivots
// - htfTF โ timeframe for HTF structure/liquidity
// - useStructureFilter โ enforce LTF BOS/CHOCH trend
// - useHtfExpansionFilter โ enforce HTF trend
// - showStructureLabels โ show BOS/CHOCH labels
// - showHtfStructureLabels โ show HTF BOS/CHOCH labels
//
// โข **Premium / Discount Midline**
// - usePremiumDiscountFilter โ only long in discount / short in premium
// - pdSession โ session used for midline (default 17:00 CST)
// - showPdMidLine โ show 50% midline
//
// โข **FVG / IFVG Detection**
// - useBodyGapFVG โ FVG uses candle bodies instead of wicks
// - useDisplacementFVG โ require displacement bar
// - dispAtrMult โ minimum ATR threshold for displacement
// - showIFVG โ draw IFVG boxes
//
// โข **ATR / Volatility / Sessions**
// - useRangeFilter โ require minimum ATR%
// - atrLen โ ATR period
// - minAtrPerc โ minimum ATR% of price
// - useSessionFilter โ restrict trading hours
// - sessionTimes โ allowed trading session
//
// โข **Sweep Visualization**
// - showSweepLines โ draw sweep lines at SSL/BSL sweeps
// - sweepLineWidth โ thickness of sweep lines
//
// โข **Exits: Partial Targets & Runners**
// - usePartialTargets โ enable partial TP logic
// - tp1QtyPercent โ percent closed at TP1
// - tp1FractionOfPath โ TP1 relative to path to full target
//
// โข **Formatting / Visibility**
// - labelFontSizeInput โ tiny / small / normal / large / huge
// - showEntries โ entry markers
// - showTargets โ target lines
//
//โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// END OF STRATEGY DESCRIPTION
//โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Quant Master Flow [Cumulative Volume Delta]Quant Master Flow
The Quant Master Flow indicator is a tool that analyzes market aggression by tracking the Cumulative Volume Delta (CVD), providing critical insight into institutional participation and short-term liquidity absorption. It acts as the "Conviction Filter" to confirm the statistical signals provided by the Z-Oscillator.
Core Philosophy: Aggression vs. Absorption
The CVD measures the running total of the difference between aggressive buyer-initiated volume and aggressive seller-initiated volume. By plotting this cumulative total, the indicator reveals whether the net effect of market orders is one of accumulation (aggressive buying, driving the price up) or distribution (aggressive selling, driving the price down).
Key Components
Cumulative Tally: The indicator plots the running sum of the volume delta. A rising CVD suggests buyers are more aggressive than sellers; a falling CVD suggests the reverse.
Color Coding: The CVD is colored to visualize flow:
Green: Periods of net aggressive buying (accumulation).
Red: Periods of net aggressive selling (distribution).
Volume Thresholds (Optional/Implied): Allows for filtering of low-impact noise, ensuring the cumulative line only reflects significant shifts in order flow.
Strategic Use Cases
The power of the Quant Master Flow is realized by comparing its trajectory to the price action, validating Z-Score extremes, and spotting liquidity grabs.
1. High-Conviction Confirmation
Use the CVD to confirm a directional signal from the Z-Oscillator:
Bullish Confirmation: When the Z-Oscillator hits Oversold ($\pm 2\sigma$) and the price begins to move up, a strong rising (Green) CVD confirms that the reversal is being fueled by institutional accumulation.
Bearish Confirmation: When the Z-Oscillator hits Overbought ($\pm 2\sigma$) and the price begins to fall, a strong falling (Red) CVD confirms that the drop is being driven by institutional distribution.
2. Divergence (The Early Warning System)
Divergence between the CVD and price is the strongest signal of impending failure or reversal, indicating that the current price movement is unsupported by institutional commitment.
Bearish Divergence: Price makes a Higher High while the CVD makes a Lower High. This is a warning that institutional players are distributing into the rally, signaling a failure to continue the trend.
Bullish Divergence: Price makes a Lower Low while the CVD makes a Higher Low. This shows institutional accumulation is occurring despite falling prices, often preceding a strong reversal.
3. Flow Exhaustion
When the CVD line flattens out during a strong price rally or drop, it signals that the market aggression is exhausted. This often happens right before the Z-Oscillator hits its $\pm 3\sigma$ Extreme zone, providing the earliest warning of a statistical reversal.
Quant Master Z-Oscillator [Risk + Bias]his indicator is a statistically-driven oscillator designed to measure the extreme deviation of price from its recent mean, identifying both reversal risk and directional bias within the current trend. It reframes classic Z-Score analysis to provide a quantified framework for trade timing and risk assessment.
Core Philosophy
The primary goal is to determine the statistical probability of a mean-reversion event. By measuring how many standard deviations the current price is away from its simple moving average (the basis), the indicator identifies moments of maximum risk (Extremes) and optimal entry (Oversold/Overbought zones).
Key Components
Z-Score Calculation:
Measures the distance of the closing price from the Lookback Length Simple Moving Average (SMA), normalized by the Standard Deviation (Volatility).
The raw score is then smoothed using an Exponential Moving Average (EMA) to filter noise, providing a clearer reading of the underlying statistical position.
Statistical Thresholds:
$\pm 2\sigma$ (High/Low): Defines the standard Overbought/Oversold zones (Trigger Zones). Movement into these areas suggests a pullback or reversal is increasingly likely.
$\pm 3\sigma$ (Extreme): Defines the "Kill Zone" of maximum statistical risk. Price reaching this level is highly unlikely to sustain itself, triggering an Extreme Overbought/Oversold warning.
Risk & Bias Dashboard (Table):
A real-time dashboard displayed on the chart (bottom right) provides a quantified summary of the current market state:
Current Z: The exact Z-Score value and its gradient color (green for positive pressure, red for negative).
Market Risk: Flags the statistical risk (e.g., OVERBOUGHT or EXTREME OVERSOLD โ ๏ธ) based on the $\sigma$ thresholds.
Next Bias: Suggests the immediate directional bias (e.g., LONG SETUP NEXT or SHORT REVERSAL), helping the user prepare for the next high-probability setup based on the Z-Score's position relative to the mean.
Divergence Engine:
Detects standard Bullish and Bearish divergences between the Z-Score and the price action, signaling potential trend exhaustion or hidden momentum shifts.
Interpretation & Use
Risk Management: Treat the $\pm 3\sigma$ (Extreme) levels as mandatory profit-taking or high-alert reversal zones. Trading against these extremes carries the highest statistical risk.
Entry Timing: High-probability entries are found when the Z-Score is at $\pm 2\sigma$ (Oversold/Overbought) and a momentum shift (e.g., a green bar after an Oversold red sequence) is observed.
Trend Confirmation: When the Z-Score operates between $0$ and $\pm 2\sigma$, it confirms the direction of the current trend (Positive Z-Score = Bullish bias).
Universal Sentiment Score โ V3 Bottom DetectorThe Universal Sentiment Score (USS) condenses a wide range of market conditions into one easy-to-read oscillator. Instead of relying on a single signal, USS blends multiple forms of trend strength, momentum behavior, volatility shifts, and reversal conditions to generate a unified sentiment metric.
FxAST Ichi ProSeries Enhanced Full Market Regime EngineFxAST Ichi ProSeries v1.x is a modernized Ichimoku engine that keeps the classic logic but adds a full market regime engine for any market and instrument.โ
Multi-timeframe cloud overlay
Oracle long-term baseline
Trend regime classifier (Bull / Bear / Transition / Range)
Chikou & Cloud breakout signals
HTF + Oracle + Trend dashboard
Alert-ready structure for automation
No repainting: all HTF calls use lookahead_off.
1. Core Ichimoku Engine
Code sections:
Input group: Core Ichimoku
Function: ichiCalc()
Variables: tenkan, kijun, spanA, spanB, chikou
What it does
Calculates the classic Ichimoku components:
Tenkan (Conversion Line) โ fast Donchian average (convLen)
Kijun (Base Line) โ slower Donchian average (baseLen)
Senkou Span A (Span A / Lead1) โ (Tenkan + Kijun)/2
Senkou Span B (Span B / Lead2) โ Donchian over spanBLen
Chikou โ current close shifted back in time (displace)
Everything else in the indicator builds on this engine.
How to use it (trading)
Tenkan vs Kijun = short-term vs medium-term balance.
Tenkan above Kijun = short-term bullish control; below = bearish control.
Span A / B defines the cloud, which represents equilibrium and support/resistance.
Price above cloud = bullish bias; price below cloud = bearish bias.
Graphic
2. Display & Cloud Styling
Code sections:
Input groups: Display Options, Cloud Styling, Lagging Span & Signals
Variables: showTenkan, showKijun, showChikou, showCloud, bullCloudColor, bearCloudColor, cloudLineWidth, laggingColor
Plots: plot(tenkan), plot(kijun), plot(chikou), p1, p2, fill(p1, p2, ...)
What it does
Lets you toggle individual components:
Show/hide Tenkan, Kijun, Chikou, and the cloud.
Customize cloud colors & opacity:
bullCloudColor when Span A > Span B
bearCloudColor when Span A < Span B
Adjust cloud line width for clarity.
How to use it
Turn off components you donโt use (e.g., hide Chikou if you only want cloud + Tenkan/Kijun).
For higher-timeframe or noisy charts, use thicker Kijun & cloud so structure is easier to see.
Graphic
Before
After
3. HTF Cloud Overlay (Multi-Timeframe)
Code sections:
Input group: HTF Cloud Overlay
Vars: showHTFCloud, htfTf, htfAlpha
Logic: request.security(..., ichiCalc(...)) โ htfSpanA, htfSpanB
Plots: pHTF1, pHTF2, fill(pHTF1, pHTF2, ...)
What it does
Pulls higher-timeframe Ichimoku cloud (e.g., 1H, 4H, Daily) onto your current chart.
Uses the same Ichimoku settings but aggregates on htfTf.
Plots an extra, semi-transparent cloud ahead of price:
Greenish when HTF Span A > Span B
Reddish when HTF Span B > Span A
How to use it
Trade LTF (e.g., 5m/15m) only in alignment with HTF trend:
HTF cloud bullish + LTF Ichi bullish โ look for longs
HTF cloud bearish + LTF Ichi bearish โ look for shorts
Treat HTF cloud boundaries as major S/R zones.
Graphic
4. Oracle Module
Code sections:
Input group: Oracle Module
Vars: useOracle, oracleLen, oracleColor, oracleWidth, oracleSlopeLen
Logic: oracleLine = donchian(oracleLen); slope check vs oracleLine
Plot: plot(useOracle ? oracleLine : na, "Oracle", ...)
What it does
Creates a long-term Donchian baseline (default 208 bars).
Uses a simple slope check:
Current Oracle > Oracle oracleSlopeLen bars ago โ Oracle Bull
Current Oracle < Oracle oracleSlopeLen bars ago โ Oracle Bear
Slope state is also shown in the dashboard (โBull / Bear / Flatโ).
How to use it
Think of Oracle as your macro anchor :
Only take longs when Oracle is sloping up or flat.
Only take shorts when Oracle is sloping down or flat.
Works well combined with HTF cloud:
HTF cloud bullish + Oracle Bull = higher conviction long bias.
Ideal for Gold / Indices swing trades as a trend filter.
Graphic idea
5. Trend Regime Classifier
Code sections:
Input group: Trend Regime Logic
Vars: useTrendRegime, bgTrendOpacity, minTrendScore
Logic:
priceAboveCloud, priceBelowCloud, priceInsideCloud
Tenkan vs Kijun alignment
Cloud bullish/bearish
bullScore / bearScore (0โ3)
regime + regimeLabel + regimeColor
Visuals: bgcolor(regimeColor) and optional barcolor() in priceColoring mode.
What it does
Scores the market in three dimensions :
Price vs Cloud
Tenkan vs Kijun
Cloud Direction (Span A vs Span B)
Each condition contributes +1 to either bullScore or bearScore .
Then:
Bull regime when:
bullScore >= minTrendScore and bullScore > bearScore
Price in cloud โ โRangeโ
Everything else โ โTransitionโ
These regimes are shown as:
Background colors:
Teal = Bull
Maroon = Bear
Orange = Range
Silver = Transition
Optional candle recoloring when priceColoring = true.
How to use it
Filters:
Only buy when regime = Bull or Transition and Oracle/HTF agree.
Only sell when regime = Bear or Transition and Oracle/HTF agree.
No trade zone:
When regime = Range (price inside cloud), avoid new entries; wait for break.
Aggressiveness:
Adjust minTrendScore to be stricter (3) or looser (1).
Graphic
6. Signals: Chikou & Cloud Breakout
Code sections :
Logic:
chikouBuySignal = ta.crossover(chikou, close)
chikouSellSignal = ta.crossunder(chikou, close)
cloudBreakUp = priceInsideCloud and priceAboveCloud
cloudBreakDown = priceInsideCloud and priceBelowCloud
What it does
1. Two key signal groups:
Chikou Cross Signals
Buy when Chikou crosses up through price.
Sell when Chikou crosses down through price.
Classic Ichi confirmation idea: Chikou breaking free of price cluster.
2. Cloud Breakout Signals
Long trigger: yesterday inside cloud โ today price breaks above cloud.
Short trigger: yesterday inside cloud โ today price breaks below cloud.
Captures โequilibrium โ expansionโ moves.
These are conditions only in this version (no chart shapes yet) but are fully wired for alerts. (Future Updates)
How to use it
Use Chikou signals as confirmation, not standalone entries:
Eg., Bull regime + Oracle Bull + cloud breakout + Chikou Buy.
Use Cloud Breakouts to catch the first impulsive leg after consolidation.
Graphic
7. Alerts (Automation Ready)
[
b]Code sections:
Input group: Alerts
Vars: useAlertTrend, useAlertChikou, useAlertCloudBO
Alert lines like: "FxAST Ichi Bull Trend", "FxAST Ichi Bull Trend", "FxAST Ichi Cloud Break Up"
What it does
Provides ready-made alert hooks for:
Trend regime (Bull / Bear)
Chikou cross buy/sell
Cloud breakout up/down
Each type can be globally toggled on/off via the inputs (helpful if a user only wants one kind).
How to use it
In TradingView: set alerts using โAny alert() function callโ on this indicator.
Then filter which ones fire by:
Turning specific alert toggles on/off in input panel, or
Filtering text in your external bot / webhook side.
Example simple workflow ---> Indicator ---> TV Alert ---> Webhook ---> Bot/Broker
8. FxAST Dashboard
Code sections:
Input group: Dashboard
Vars: showDashboard, dashPos, dash, dashInit
Helper: getDashPos() โ position.*
Table cells (updated on barstate.islast):
Row 0: Regime + label
Row 1: Oracle status (Bull / Bear / Flat / Off)
Row 2: HTF Cloud (On + TF / Off)
Row 3: Scores (BullScore / BearScore)
What it does
Displays a compact panel with the state of the whole system :
Current Trend Regime (Bull / Bear / Transition / Range)
Oracle slope state
Whether HTF Cloud is active + which timeframe
Raw Bull / Bear scores (0โ3 each)
Position can be set: Top Right, Top Left, Bottom Right, Bottom Left.
How to use it
Treat it like a pilot instrument cluster :
Quick glance: โAre my trend, oracle and HTF all aligned?โ
Great for streaming / screenshots: everything important is visible in one place without reading the code.
Graphic (lower right of chart )






















