EMA Cross Strategy + Breakout Entry (Trend Filtered)A High-Probability Trading Strategy Using EMAs and Long-Term Trend Filters in Pine Script
In financial markets, successful trading often depends on identifying high-probability setups with consistent rules and clear confirmations. The Pine Script developed here combines the simplicity of exponential moving average (EMA) crossovers with the robustness of long-term trend filtering, enhancing entry timing and reducing exposure to false signals. This essay explains the strategy’s logic, technical components, strengths, and its potential effectiveness for active traders.
Introduction to the Strategy
This Pine Script trading strategy is built upon two foundational components:
1. EMA Crossovers: A well-established technique where a fast EMA (8-period) and a slower EMA (21-period) are used to detect short-term momentum shifts.
2. Trend Filtering Using SMA: A 100-period simple moving average (SMA) acts as a long-term trend indicator. Only trades in the direction of the dominant trend are considered valid.
These two elements are combined to create a high-probability, trend-following system that aims to capture meaningful price movements while avoiding low-quality entries that typically occur during sideways or choppy markets.
⸻
Core Entry Logic
The script defines two distinct entry conditions designed to complement each other:
1. Standard EMA Crossover Entry (Type A)
This is a classic momentum entry condition. When the 8 EMA crosses above the 21 EMA, it indicates a shift in short-term momentum. However, this signal alone is insufficient in many market conditions, especially when the broader trend is unclear or reversing. To mitigate this risk, the crossover is only accepted when the 100 SMA is in an uptrend, defined as the SMA currently being higher than its value on the previous bar. This ensures the strategy only takes long entries in bullish environments, aligning with the principle of trading with the trend.
2. Breakout Entry After Trend Reversal (Type B)
The second entry condition captures powerful “breakout” opportunities that often follow a fresh trend reversal. Specifically, when the 100 SMA transitions from a downtrend to an uptrend, the script starts a 15-bar lookback window. If, during that window, the price, 8 EMA, and 21 EMA all rise above the long-term SMA, it is considered a confirmation of trend strength and momentum alignment. A long entry is then signaled.
This condition is designed to capitalize on early participation in new uptrends, catching strong price expansions that typically follow a change in market direction.
⸻
Exit Logic
The exit logic is intentionally simple and tied to the same framework as entries. A position is exited when the 8 EMA crosses below the 21 EMA, and the 100 SMA remains in an uptrend. This ensures that exits are aligned with weakening momentum while the larger trend remains bullish. This avoids premature exits during minor pullbacks and focuses on retaining trades during sustained uptrends.
Notably, exits do not occur when the long-term trend has flipped bearish. This design choice prevents “reverse trend” noise from triggering exits too early and instead focuses purely on short-term weakness within a bullish macro backdrop.
⸻
Technical Components of the Script
The Pine Script is structured with clear and logical components:
1. Inputs: The user can customize the periods for the fast EMA, slow EMA, long-term SMA, and the trend-reversal lookback window (defaulted to 15 bars).
2. Trend Detection: The long-term trend is calculated using the slope of the 100 SMA. If the SMA is rising, the trend is marked as bullish and is visually plotted in green; otherwise, it is plotted in red.
3. State Management: The script tracks how many bars have passed since the long-term trend turned bullish. This is managed using a var integer variable that resets upon trend reversal and increments while the trend remains up.
4. Entry and Exit Signals: These are plotted as shape markers on the chart — green triangles for entry and red triangles for exit — providing visual clarity.
Each of these components works in harmony to ensure that trade signals are issued only in favorable environments with multiple confirmations.
⸻
Benefits of the Strategy
There are several key advantages to using this hybrid strategy:
1. Filters Out Choppy Markets
By requiring the long-term SMA to be in an uptrend for any entry or exit signal to be valid, the strategy avoids noisy, sideways price action where EMA crossovers are more likely to produce false signals.
2. Dual Entry Approach
The inclusion of two different entry types allows the strategy to both:
• Capture new trends as they emerge (Breakout Entry).
• Ride existing trends using EMA crossover logic (Standard Entry).
This dual approach balances early participation with trend confirmation, offering flexibility for different market conditions.
3. Clear Exit Criteria
By tying exits to a momentum weakening signal (EMA crossover down), traders are not left guessing when to exit. This supports consistent execution and reduces emotional decision-making.
4. Trend Alignment
Aligning both entry and exit decisions with the broader trend increases the probability that trades will move in the desired direction. This is a cornerstone of successful trend-following strategies.
5. Modular Design
The script’s modularity allows traders to easily expand it with backtesting functions, alerts, or additional filters like RSI, ATR, or volume-based conditions, depending on their individual trading needs.
⸻
Use Cases and Applications
This strategy is particularly well-suited for swing traders and position traders operating on the 4-hour or daily timeframes. It is also effective on trending assets like equity indices, major stocks, or cryptocurrencies with defined directional movement.
Additionally, this script can be used as a signal engine in a larger portfolio of strategies, where only trades with trend confirmation are allowed to proceed. It can also function as a discretionary trading aid, helping traders visually identify when technical conditions align favorably.
⸻
Conclusion
This enhanced EMA crossover strategy, powered by a long-term trend filter and a secondary breakout entry condition, offers a robust and disciplined approach to navigating financial markets. By focusing on trading in the direction of a confirmed uptrend and using both momentum and structural price behavior for entry confirmation, the strategy aims to minimize whipsaw trades and maximize participation in sustained bullish moves.
Its simple logic, visual clarity, and strong filtering mechanisms make it both practical for new traders and a valuable foundation for more advanced systems. Whether used as-is or further expanded with custom features, this Pine Script serves as an excellent tool for executing a structured, high-probability trading plan.
週期
Doji Candle with Horizontal Lines Raja Saien🔰 Doji Candle with Horizontal Lines By Raja Saien
Created by: Wasif Samejo
Script Type: Visual Doji Identifier with Key Level Markers
Overlay: Yes
📌 Description:
This indicator helps you visually identify Doji candles and automatically plots horizontal key levels based on their high, low, and a defined price zone.
A Doji candle is a powerful signal in price action trading that shows indecision in the market, often leading to strong reversals or breakouts. This script is especially useful for traders who want to mark such candles and prepare for possible trade setups.
📈 Features:
✅ Automatic Doji Detection – Based on customizable body size (20.0% of the total range).
✅ Highlights Doji Candle – Visually changes the bar color to yellow when a Doji is found.
✅ High/Low Horizontal Lines – Marks the candle's actual high and low for better visual analysis.
✅ Zone Lines Above/Below – Draws outer levels to form a zone around the Doji, helpful for breakout setups.
Zone Line Color – Set the color for the upper and lower zone lines.
High/Low Line Color – Set the color for the high and low candle levels.
💡 Combine this indicator with trendlines, volume, or Fibonacci tools for better confirmation.
Same Date Last Year PatternThis tool is designed to help you analyze past price patterns from the same date last year to gain insights into potential market behavior today. It’s perfect for traders who want to spot recurring trends or directional cues (buy or sell signals) based on historical candle formations, rather than focusing on exact price levels. Here’s how it works and how to use it:
How It Works
Historical Lookback: The script examines the price action from the same calendar date last year (e.g., May 26, 2024, for today, May 26, 2025). Since markets may be closed on weekends or holidays (like Memorial Day), it automatically finds the nearest trading day with available data.
Pattern Detection: Instead of showing raw prices (which may not match today’s higher or lower price range), it analyzes the candle’s shape and direction. It tells you if the past candle was bullish (closing higher, suggesting a potential buy) or bearish (closing lower, suggesting a potential sell), along with details like wick size and the trend leading up to it.
Contextual Insight: It checks the trend from the previous few days (uptrend, downtrend, or sideways) to give you a sense of the market’s mood back then. This helps you decide if the pattern might repeat.
Prediction Suggestion: Based on last year’s candle direction, it offers a simple guess for the next candle’s potential move (e.g., bullish or bearish), though this is for reference only and not a guaranteed signal.
Key Features
Customizable Asset Type: You can set it for "Traditional" markets (e.g., stocks, forex) or "Crypto" (e.g., Bitcoin), adjusting how it searches for data based on whether the market runs 24/7.
Visual Cues: Labels appear on your chart showing the pattern and prediction, with colors (green for bullish, red for bearish, blue for prediction) to make it easy to read.
Range Consideration: This tool works best when the chart’s price range is around 1000 (e.g., stocks trading near $1000 or crypto pairs with similar values). Outside this range, the label positioning might not align perfectly due to scaling differences.
How to Use
Add to Chart: Load this script into TradeLocker’s indicator section on a daily chart for best results.
Select Asset Type: In the settings, choose "Traditional" for stocks or forex, or "Crypto" for 24/7 markets like Bitcoin.
Check Data: On the same date each year (e.g., May 26), it will display the pattern from last year’s nearest trading day. Ensure your chart has at least 455 days of historical data loaded to cover the search range.
Interpret Results: Look at the label to see the pattern (e.g., "Bullish Candle, Potential Buy"), trend context, and prediction. Use this to inform your trading decisions, but combine it with other tools for confirmation.
Important Notes
Limitations: It may show "No Data Found" if historical data isn’t available within its search window (up to 90 days around the target date for traditional markets). This is more likely for weekends or holidays. For best results, test it on assets trading around the 1000 price range.
Not a Guarantee: The prediction is based solely on last year’s candle and trend, not a definitive signal. Use it as a guide alongside your strategy and market analysis.
Customization: If you need it to work outside the 1000 range or add more pattern details (e.g., specific candlestick types), let the community know, and we can refine it!
This tool was crafted to help traders explore historical patterns in a user-friendly way. Share your feedback or suggestions in the TradeLocker community to make it even better!
S&P 500 & Normalized CAPE Z-Score AnalyzerThis macro-focused indicator visualizes the historical valuation of the U.S. equity market using the CAPE ratio (Shiller P/E), normalized over its long-term average and standard deviations. It helps traders and investors identify overvaluation and undervaluation zones over time, combining both statistical signals and historical context.
💡 Why It’s Useful
This indicator is ideal for macro traders and long-term investors looking to contextualize equity valuations across decades. It helps identify statistical extremes in valuation by referencing the standard deviation of the CAPE ratio relative to its long-term mean. The overlay of S&P 500 price with valuation zones provides a visual confirmation tool for macro decisions or timing insights.
It includes:
✅ Three display modes:
-S&P 500 (color-coded by CAPE valuation zone)
-Normalized CAPE (vs. long-term mean)
-CAPE Z-Score (standardized measure)
🎯 How to Interpret
Dynamic coloring of the S&P 500 price based on CAPE valuation:
🔴 Z > +2σ → Highly Overvalued
🟠 Z > +1σ → Overvalued
⚪ -1σ < Z < +1σ → Neutral
🟢 Z < -1σ → Undervalued
✅ Z < -2σ → Strong Buy Zone
-Live valuation label showing the current CAPE, Z-score, and zone.
-Macro event shading: major historical events (e.g. Great Depression, Oil Crisis, Dot-com Bubble, COVID Crash) are shaded on the chart for context.
✅ Built-in alerts:
CAPE > +2σ → Potential risk zone
CAPE < -2σ → Potential opportunity zone
📊 Use Cases
This indicator is ideal for:
🧠 Macro traders seeking long-term valuation extremes.
📈 Portfolio managers monitoring systemic valuation risk.
🏛️ Long-term investors timing strategic allocation shifts.
🧪 How It Works
CAPE ratio (Shiller PE) is retrieved from Quandl (MULTPL/SHILLER_PE_RATIO_MONTH).
The script calculates the long-term average and standard deviation of CAPE.
The Z-score is computed as:
(CAPE - Mean) / Standard Deviation
Users can switch between:
S&P 500 chart, color-coded by CAPE valuation zones.
Normalized CAPE, centered around zero (historic mean).
CAPE Z-score, showing statistical positioning directly.
Visual bands represent +1σ, +2σ, -1σ, -2σ thresholds.
You can switch between modes using the “Display” dropdown in the settings panel.
📊 Data Sources
CAPE: MULTPL/SHILLER_PE_RATIO_MONTH via Quandl
S&P 500: Monthly close prices of SPX (TradingView data)
All data updated on monthly resolution
This is not a repackaged built-in or autogenerated script. It’s a custom-built and interactive indicator designed for educational and analytical use in macroeconomic valuation studies.
OBV-X| OBV Norm By Momentumtrade Idea By Ziplor traderA unique volume-momentum-based strategy inspired by proprietary OBV dynamics.
This script combines normalized On-Balance Volume (OBV) behavior with adaptive signal filtering mechanisms.
It includes optional filters based on inflection detection and momentum accumulation zones to enhance signal quality.
Key elements include:
Volume-based momentum normalization
Signal line crossover logic
Optional regime filters (acceleration/integration-based)
Dynamic divergence detection
Visual zone overlays for quick market context
Designed for advanced users. Not financial advice.
Further parameters are intentionally obfuscated to preserve the edge.
ICT TIME ELEMENTS [KaninFX]## Overview
The ICT Time Elements indicator is a comprehensive trading tool designed to visualize the most critical market sessions and timeframes according to Inner Circle Trader (ICT) methodology. This indicator helps traders identify high-probability trading opportunities by highlighting key market sessions, killzones, and liquidity periods throughout the trading day.
## Key Features
### 🕐 Complete ICT Time Framework
- **Asian Range**: 8:00 PM - 12:00 AM (NY Time) - Evening consolidation period
- **London Killzone**: 2:00 AM - 5:00 AM (NY Time) - European market opening liquidity
- **NY Killzone**: 7:00 AM - 10:00 AM (NY Time) - US market opening with high volatility
- **Silver Bullet Sessions**:
- London Silver Bullet: 3:00 AM - 4:00 AM
- AM Silver Bullet: 10:00 AM - 11:00 AM
- PM Silver Bullet: 2:00 PM - 3:00 PM
- **Lunch Hours**: 5:00 AM - 7:00 AM & 12:00 PM - 1:00 PM (Lower volatility periods)
- **News Embargo**: 8:30 AM - 9:30 AM (High impact news release window)
- **20-Minute Macros**: :50 to :10 minutes of each hour (Short-term reversal periods)
- **True Day Close**: 4:00 PM - 4:30 PM (Official market close)
### 🎨 Visual Customization
- **Multiple Themes**: Dark, Light, and Custom color schemes
- **Adjustable Opacity**: Control zone transparency (0-100%)
- **Font Customization**: Tiny, Small, Normal, Large text sizes
- **Custom Colors**: Personalize each zone with your preferred colors
- **Professional Display**: Clean histogram visualization with zone labels
### 🌍 Multi-Timezone Support
Built-in support for major trading centers:
- America/New_York (Default)
- America/Chicago
- America/Los_Angeles
- Europe/London
- Asia/Tokyo
- Asia/Shanghai
- Australia/Sydney
### 📊 Smart Information Display
- **Real-time Zone Detection**: Automatically identifies current active session
- **Zone Labels**: Clear labeling at the center of each time period
- **Current Zone Indicator**: Arrow pointer showing the active session
- **Comprehensive Info Table**: Quick reference for all time zones and their schedules
- **Flexible Table Positioning**: Place info table in any corner of your chart
### ⚡ Performance Optimized
- **Memory Management**: Automatic cleanup of old labels to maintain performance
- **Efficient Processing**: Optimized time calculations for smooth operation
- **Resource Control**: Limited label generation to prevent system overload
## How It Works
The indicator continuously monitors the current time against predefined ICT session schedules. When price action enters a recognized time zone, the indicator:
1. **Highlights the Period**: Colors the histogram bar according to the active session
2. **Labels the Zone**: Places descriptive text identifying the current market condition
3. **Updates Info Table**: Shows current session status and complete schedule
4. **Tracks Macro Periods**: Identifies 20-minute reversal windows within major sessions
### Special Features
- **Macro Detection**: Automatically identifies when current time falls within a 20-minute macro period
- **Session Overlap Handling**: Properly manages overlapping time zones with priority logic
- **Dynamic Color Adjustment**: Theme-aware color selection for optimal visibility
## Best Use Cases
### For ICT Traders
- Identify optimal entry times during killzone sessions
- Recognize silver bullet opportunities for quick scalps
- Avoid trading during lunch hour consolidations
- Prepare for news embargo volatility
### For Session Traders
- Track major market session transitions
- Plan trading strategy around high-liquidity periods
- Understand global market flow and timing
### For Swing Traders
- Identify macro trend continuation points
- Time position entries during optimal sessions
- Understand market structure changes across sessions
## Installation & Setup
1. Add the indicator to your TradingView chart
2. Select your preferred timezone from the dropdown
3. Choose theme (Dark/Light) or customize colors
4. Adjust font size and table position to your preference
5. Enable/disable features as needed for your trading style
## Pro Tips
- **Combine with Price Action**: Use time zones alongside support/resistance levels
- **Focus on Killzones**: Highest probability setups occur during London and NY killzones
- **Watch Silver Bullets**: These 1-hour windows often provide excellent reversal opportunities
- **Respect Lunch Hours**: Lower volatility periods - consider smaller position sizes
- **News Embargo Awareness**: Prepare for potential whipsaws during 8:30-9:30 AM
## Conclusion
The ICT Time Elements indicator transforms complex ICT timing concepts into an easy-to-read visual tool. Whether you're a beginner learning ICT methodology or an experienced trader looking to optimize your timing, this indicator provides the essential market session awareness needed for successful trading.
*Compatible with all TradingView plans and timeframes. Works best on 1-minute to 1-hour charts for optimal session visualization.*
LANZ Strategy 3.0 [Backtest]🔷 LANZ Strategy 3.0 — Asian Range Fibonacci Scalping Strategy
LANZ Strategy 3.0 is a precision-engineered backtesting tool tailored for intraday traders who rely on the Asian session range to determine directional bias. This strategy implements dynamic Fibonacci projections and strict time-window validation to simulate a clean and disciplined trading environment.
🧠 Core Components:
Asian Range Bias Definition: Direction is established between 01:15–02:15 a.m. NY time based on the candle’s close in relation to the midpoint of the Asian session range (18:00–01:15 NY).
Limit Order Execution: Only one trade is placed daily, using a limit order at the Asian range high (for sells) or low (for buys), between 01:15–08:00 a.m. NY.
Fibonacci-Based TP/SL:
Original Mode: TP = 2.25x range, SL = 0.75x range.
Optimized Mode: TP = 1.95x range, SL = 0.65x range.
No Trade After 08:00 NY: If the limit order is not executed before 08:00 a.m. NY, it is canceled.
Fallback Logic at 02:15 NY: If the market direction misaligns with the setup at 02:15 a.m., the system re-evaluates and can re-issue the order.
End-of-Day Closure: All positions are closed at 15:45 NY if still open.
📊 Backtest-Ready Design:
Entries and exits are executed using strategy.entry() and strategy.exit() functions.
Position size is fixed via capital risk allocation ($100 per trade by default).
Only one position can be active at a time, ensuring controlled risk.
📝 Notes:
This strategy is ideal for assets sensitive to the Asian/London session overlap, such as Forex pairs and indices.
Easily switch between Fibonacci versions using a single dropdown input.
Fully deterministic: all entries are based on pre-defined conditions and time constraints.
👤 Credits:
Strategy developed by rau_u_lanz using Pine Script v6. Built for traders who favor clean sessions, directional clarity, and consistent execution using time-based logic and Fibonacci projections.
Lyapunov Market Instability (LMI)Lyapunov Market Instability (LMI)
What is Lyapunov Market Instability?
Lyapunov Market Instability (LMI) is a revolutionary indicator that brings chaos theory from theoretical physics into practical trading. By calculating Lyapunov exponents—a measure of how rapidly nearby trajectories diverge in phase space—LMI quantifies market sensitivity to initial conditions. This isn't another oscillator or trend indicator; it's a mathematical lens that reveals whether markets are in chaotic (trending) or stable (ranging) regimes.
Inspired by the meditative color field paintings of Mark Rothko, this indicator transforms complex chaos mathematics into an intuitive visual experience. The elegant simplicity of the visualization belies the sophisticated theory underneath—just as Rothko's seemingly simple color blocks contain profound depth.
Theoretical Foundation (Chaos Theory & Lyapunov Exponents)
In dynamical systems, the Lyapunov exponent (λ) measures the rate of separation of infinitesimally close trajectories:
λ > 0: System is chaotic—small changes lead to dramatically different outcomes (butterfly effect)
λ < 0: System is stable—trajectories converge, perturbations die out
λ ≈ 0: Edge of chaos—transition between regimes
Phase Space Reconstruction
Using Takens' embedding theorem , we reconstruct market dynamics in higher dimensions:
Time-delay embedding: Create vectors from price at different lags
Nearest neighbor search: Find historically similar market states
Trajectory evolution: Track how these similar states diverged over time
Divergence rate: Calculate average exponential separation
Market Application
Chaotic markets (λ > threshold): Strong trends emerge, momentum dominates, use breakout strategies
Stable markets (λ < threshold): Mean reversion dominates, fade extremes, range-bound strategies work
Transition zones: Market regime about to change, reduce position size, wait for confirmation
How LMI Works
1. Phase Space Construction
Each point in time is embedded as a vector using historical prices at specific delays (τ). This reveals the market's hidden attractor structure.
2. Lyapunov Calculation
For each current state, we:
- Find similar historical states within epsilon (ε) distance
- Track how these initially similar states evolved
- Measure exponential divergence rate
- Average across multiple trajectories for robustness
3. Signal Generation
Chaos signals: When λ crosses above threshold, market enters trending regime
Stability signals: When λ crosses below threshold, market enters ranging regime
Divergence detection: Price/Lyapunov divergences signal potential reversals
4. Rothko Visualization
Color fields: Background zones represent market states with Rothko-inspired palettes
Glowing line: Lyapunov exponent with intensity reflecting market state
Minimalist design: Focus on essential information without clutter
Inputs:
📐 Lyapunov Parameters
Embedding Dimension (default: 3)
Dimensions for phase space reconstruction
2-3: Simple dynamics (crypto/forex) - captures basic momentum patterns
4-5: Complex dynamics (stocks/indices) - captures intricate market structures
Higher dimensions need exponentially more data but reveal deeper patterns
Time Delay τ (default: 1)
Lag between phase space coordinates
1: High-frequency (1m-15m charts) - captures rapid market shifts
2-3: Medium frequency (1H-4H) - balances noise and signal
4-5: Low frequency (Daily+) - focuses on major regime changes
Match to your timeframe's natural cycle
Initial Separation ε (default: 0.001)
Neighborhood size for finding similar states
0.0001-0.0005: Highly liquid markets (major forex pairs)
0.0005-0.002: Normal markets (large-cap stocks)
0.002-0.01: Volatile markets (crypto, small-caps)
Smaller = more sensitive to chaos onset
Evolution Steps (default: 10)
How far to track trajectory divergence
5-10: Fast signals for scalping - quick regime detection
10-20: Balanced for day trading - reliable signals
20-30: Slow signals for swing trading - major regime shifts only
Nearest Neighbors (default: 5)
Phase space points for averaging
3-4: Noisy/fast markets - adapts quickly
5-6: Balanced (recommended) - smooth yet responsive
7-10: Smooth/slow markets - very stable signals
📊 Signal Parameters
Chaos Threshold (default: 0.05)
Lyapunov value above which market is chaotic
0.01-0.03: Sensitive - more chaos signals, earlier detection
0.05: Balanced - optimal for most markets
0.1-0.2: Conservative - only strong trends trigger
Stability Threshold (default: -0.05)
Lyapunov value below which market is stable
-0.01 to -0.03: Sensitive - quick stability detection
-0.05: Balanced - reliable ranging signals
-0.1 to -0.2: Conservative - only deep stability
Signal Smoothing (default: 3)
EMA period for noise reduction
1-2: Raw signals for experienced traders
3-5: Balanced - recommended for most
6-10: Very smooth for position traders
🎨 Rothko Visualization
Rothko Classic: Deep reds for chaos, midnight blues for stability
Orange/Red: Warm sunset tones throughout
Blue/Black: Cool, meditative ocean depths
Purple/Grey: Subtle, sophisticated palette
Visual Options:
Market Zones : Background fields showing regime areas
Transitions: Arrows marking regime changes
Divergences: Labels for price/Lyapunov divergences
Dashboard: Real-time state and trading signals
Guide: Educational panel explaining the theory
Visual Logic & Interpretation
Main Elements
Lyapunov Line: The heart of the indicator
Above chaos threshold: Market is trending, follow momentum
Below stability threshold: Market is ranging, fade extremes
Between thresholds: Transition zone, reduce risk
Background Zones: Rothko-inspired color fields
Red zone: Chaotic regime (trending)
Gray zone: Transition (uncertain)
Blue zone: Stable regime (ranging)
Transition Markers:
Up triangle: Entering chaos - start trend following
Down triangle: Entering stability - start mean reversion
Divergence Signals:
Bullish: Price makes low but Lyapunov rising (stability breaking down)
Bearish: Price makes high but Lyapunov falling (chaos dissipating)
Dashboard Information
Market State: Current regime (Chaotic/Stable/Transitioning)
Trading Bias: Specific strategy recommendation
Lyapunov λ: Raw value for precision
Signal Strength: Confidence in current regime
Last Change: Bars since last regime shift
Action: Clear trading directive
Trading Strategies
In Chaotic Regime (λ > threshold)
Follow trends aggressively: Breakouts have high success rate
Use momentum strategies: Moving average crossovers work well
Wider stops: Expect larger swings
Pyramid into winners: Trends tend to persist
In Stable Regime (λ < threshold)
Fade extremes: Mean reversion dominates
Use oscillators: RSI, Stochastic work well
Tighter stops: Smaller expected moves
Scale out at targets: Trends don't persist
In Transition Zone
Reduce position size: Uncertainty is high
Wait for confirmation: Let regime establish
Use options: Volatility strategies may work
Monitor closely: Quick changes possible
Advanced Techniques
- Multi-Timeframe Analysis
- Higher timeframe LMI for regime context
- Lower timeframe for entry timing
- Alignment = highest probability trades
- Divergence Trading
- Most powerful at regime boundaries
- Combine with support/resistance
- Use for early reversal detection
- Volatility Correlation
- Chaos often precedes volatility expansion
- Stability often precedes volatility contraction
- Use for options strategies
Originality & Innovation
LMI represents a genuine breakthrough in applying chaos theory to markets:
True Lyapunov Calculation: Not a simplified proxy but actual phase space reconstruction and divergence measurement
Rothko Aesthetic: Transforms complex math into meditative visual experience
Regime Detection: Identifies market state changes before price makes them obvious
Practical Application: Clear, actionable signals from theoretical physics
This is not a combination of existing indicators or a visual makeover of standard tools. It's a fundamental rethinking of how we measure and visualize market dynamics.
Best Practices
Start with defaults: Parameters are optimized for broad market conditions
Match to your timeframe: Adjust tau and evolution steps
Confirm with price action: LMI shows regime, not direction
Use appropriate strategies: Chaos = trend, Stability = reversion
Respect transitions: Reduce risk during regime changes
Alerts Available
Chaos Entry: Market entering chaotic regime - prepare for trends
Stability Entry: Market entering stable regime - prepare for ranges
Bullish Divergence: Potential bottom forming
Bearish Divergence: Potential top forming
Chart Information
Script Name: Lyapunov Market Instability (LMI) Recommended Use: All markets, all timeframes Best Performance: Liquid markets with clear regimes
Academic References
Takens, F. (1981). "Detecting strange attractors in turbulence"
Wolf, A. et al. (1985). "Determining Lyapunov exponents from a time series"
Rosenstein, M. et al. (1993). "A practical method for calculating largest Lyapunov exponents"
Note: After completing this indicator, I discovered @loxx's 2022 "Lyapunov Hodrick-Prescott Oscillator w/ DSL". While both explore Lyapunov exponents, they represent independent implementations with different methodologies and applications. This indicator uses phase space reconstruction for regime detection, while his combines Lyapunov concepts with HP filtering.
Disclaimer
This indicator is for research and educational purposes only. It does not constitute financial advice or provide direct buy/sell signals. Chaos theory reveals market character, not future prices. Always use proper risk management and combine with your own analysis. Past performance does not guarantee future results.
See markets through the lens of chaos. Trade the regime, not the noise.
Bringing theoretical physics to practical trading through the meditative aesthetics of Mark Rothko
Trade with insight. Trade with anticipation.
— Dskyz , for DAFE Trading Systems
Bradley Siderograph - Future Projections [Blueprint_So9]█ Extended Version - Bradley Siderograph with Future Projections
This script builds on my original open-source contribution Bradley Siderograph and introduces future projection logic to extend plots into the future across any timeframe.
It has been stripped down to solely the planetary barometer. The use of gauges library and other elements have been removed to keep this version centered on the core Siderograph and future projection logic.
Original Description
This indicator functions as a Planetary Barometer, bringing the Bradley-Siderograph directly onto your TradingView chart. Designed for tracking the algebraic sum of planetary aspects and declination values in relation to market movements, it analyzes sidereal potential, long-term and mid-term planetary aspects, and the declination factor to provide insight into potential shifts in mass psychology. The built-in gauges act like a barometer, visually measuring the intensity and range of the components.
As Donald Bradley states in Stock Market Prediction:
"The siderograph is nothing more than a time chart showing a wavy line, which represents the algebraic total of the declination factor, the long terms, and the middle terms. It can be computed for any period—past or future—for which an ephemeris is available. Every aspect, whether long or middle term, is assigned a theoretical value of 10 at its peak. The value of the declination factor is half the algebraic sum of the given declinations of Venus and Mars, with northern declination considered positive and southern declination negative."
How the Bradley-Siderograph Works:
The Siderograph assigns positive and negative valencies based on the transits of inner and outer planets, categorized into long-term and mid-term aspects.
Each aspect (15° orb) is given a theoretical value, with the peak set at ±10. The approach and separation phases influence the weighting of each aspect leading up to its peak.
The sign of the valency depends on the type of aspect:
Squares and oppositions are assigned negative values
Trines and sextiles are assigned positive values
Conjunctions can be either positive or negative, depending on the planetary combination
Formula Used:
The Siderograph is computed as follows:
𝑃 = 𝑋 (𝐿 + 𝐷) + 𝑀
Where:
P = Sidereal Potential (final computed value)
X = Multiplier (to weight long-term aspects)
L = Long-term aspects (10 aspect combinations)
D = Declination factor (half the sum of Venus and Mars declinations)
M = Mid-term aspects
The long-term component (L + D) can be multiplied by a chosen factor (X) to emphasize its influence relative to the mid-term aspects.
How to Use the Indicator:
Once applied, the Siderograph line overlays on the chart, using the left-side scale for reference.
The indicator provides separate plots for:
Sidereal potential
Long-term aspects
Mid-term aspects
Declination factor
The indicator also marks the yearly high and low of the current year’s sidereal potential, providing a reference for when the market is trading above or below key levels. This feature was inspired by an observation made by Bradley in his book, which I wanted to incorporate here.
Users can fully customize the indicator by:
Switching between geocentric and heliocentric views.
Adjusting the orb of planetary transits to refine aspect sensitivity.
Multiplier (to weight long-term aspects)
Explore the Bradley-Siderograph and experiment with its settings.
Main Use Case
The Siderograph can be thought of as a psychological wind sock, gauging shifts in mass sentiment in response to planetary influences. Rather than forecasting market direction outright, it serves as an early warning system, signaling when conditions may be primed for changes in collective psychology.
As Donald Bradley notes in Stock Market Prediction:
"A limitation of the siderograph is that it cannot be construed as a forecast of secular trend. In statistical terminology, 'lines of regression' fitted to the market course and to the potential should not be expected to completely agree, for reasons obvious to everybody with keen business sense or commercial training. However, the siderograph may be depended upon to reward its analyst with foreknowledge of coming conditions in general, so that the non-psychological factors may be evaluated accordingly. By this, we mean that the potential will afford one with clues as to how the mass mind will 'take' the other mechanical or governmental vicissitudes affecting high finance. The siderograph may be thought of as a principle 'symptom' in diagnosing current market circumstances and as a sounding-board for prognoses concerning further developments."
Credits & Acknowledgments:
This is my implementation of Donald Bradley’s Siderograph, as described in Stock Market Prediction: The Planetary Barometer and How to Use It.
Built using planetary data from Astrolib by @BarefootJoey
BALUM SWINGThis Pine Script instrument delineates pivotal market inflections by synthesizing multi-factorial Gann-inspired vectoral assessments. The core computational engine operates through a recursive analysis of bar-to-bar price-time harmonics, meticulously classifying each period's dynamic signature based on Gann's foundational quadrilateral typologies (Ascendant, Descendant, Interior, and Exterior resonant states).
Inflection points are not merely identified by trivial maxima or minima; rather, they are precipitated by a critical phase-shift in the dominant directional eigenstate. The algorithm quantifies the cumulative energetic potential of successive resonant states. A confirmed pivot materializes only when the established directional momentum vector undergoes a significant angular displacement, triggered by the emergence of a contra-harmonic bar signature that overcomes the prevailing energetic threshold.
Interior resonant states (Inside Bars) are integrated as periods of temporal consolidation, their energetic signature absorbed into the prevailing directional vector without initiating immediate phase-reversal. Exterior resonant states (Outside Bars) are dynamically resolved based on their closing equilibrium point relative to their intrinsic energetic mean, contributing their weighted vector to the ongoing market dynamic.
The plotted lines thus represent the consequential pathways forged by these harmonically validated points of equilibrium shift, tracing the market's cyclical progression through its various energetic phases. The terminal, ephemeral projection visualizes the nascent vector of the current, unresolved energetic sequence.
Range Filter + ATR Strategy (Low Drawdown)Key Features for Low Drawdown:
Range Filter: Identifies trends while filtering out market noise
ATR-based Position Sizing: Adjusts position size based on volatility to risk a fixed percentage of capital
Trailing Stops: Uses ATR-based trailing stops to lock in profits and limit losses
Conservative Risk Parameters: Defaults to 1% risk per trade (adjustable)
Trend Confirmation: Requires two consecutive closes above/below the range filter
How to Use:
The strategy enters long when price is above the upper range filter for two consecutive bars
Enters short when price is below the lower range filter for two consecutive bars
Uses ATR to size positions appropriately for current volatility
Implements trailing stops based on ATR to protect profits
Optimization Tips:
Adjust the Range Filter period based on your timeframe
Modify the risk percentage (1% is conservative)
Tweak the ATR multiple for trailing stops (1.5 is moderate)
Consider adding a time-based exit if drawdown is still too high
Math by Thomas Swing RangeMath by Thomas Swing Range is a simple yet powerful tool designed to visually highlight key swing levels in the market based on a user-defined lookback period. It identifies the highest high, lowest low, and calculates the midpoint between them — creating a clear range for swing trading strategies.
These levels can help traders:
Spot potential support and resistance zones
Analyze price rejection near range boundaries
Frame mean-reversion or breakout setups
The indicator continuously updates and extends these lines into the future, making it easier to plan and manage trades with visual clarity.
🛠️ How to Use
Add to Chart:
Apply the indicator on any timeframe and asset (works best on higher timeframes like 1H, 4H, or Daily).
Configure Parameters:
Lookback Period: Number of candles used to detect the highest high and lowest low. Default is 20.
Extend Lines by N Bars: Number of future bars the levels should be projected to the right.
Interpret Lines:
🔴 Red Line: Swing High (Resistance)
🟢 Green Line: Swing Low (Support)
🔵 Blue Line: Midpoint (Mean level — useful for equilibrium-based strategies)
Trade Ideas:
Bounce trades from swing high/low zones.
Breakout confirmation if price closes strongly outside the range.
Reversion trades if price moves toward the midpoint after extreme moves.
Separators & Liquidity [K]Separators & Liquidity
This indicator offers a unified visual framework for institutional price behaviour, combining calendar-based levels, intraday session liquidity, and opening price anchors. It is specifically designed for ICT-inspired traders who rely on time-of-day context, prior high/low sweeps, and mitigation dynamics to structure their trading decisions.
Previous Day, Week, and Month Highs/Lows
These levels are dynamically updated and optionally stop projecting forward once mitigated. Mitigation is defined as a confirmed price interaction (touch or break), and labels visually adjust upon confirmation.
Intraday Session Liquidity Zones
Includes:
Asia Session (18:00–02:30 EST)
London Session (02:00–07:00 EST)
New York AM Session (07:00–11:30 EST)
New York Lunch Session (11:30–13:00 EST)
Each session tracks its own high/low with mitigation logic and duplicate filtering to avoid plotting overlapping levels when values are identical to previous session or daily levels.
Opening Price Anchors
Plots key opens:
Midnight (00:00 EST) (Customizable)
New York Open (09:30 EST) (Customizable)
PM Session Open (13:30 EST) (Customizable)
Weekly Open
Monthly Open
These levels serve as orientation for daily range expansion/contraction and premium/discount analysis.
Time Labels
Includes weekday markers and mid-month labels for better visual navigation on intraday and higher timeframes.
All components feature user-defined controls for visibility, line extension, color, label size, and plotting style. Filtering logic prevents redundant lines and maintains chart clarity.
Originality and Justification
While elements such as daily highs/lows and session ranges exist in other indicators, this script combines them under a fully mitigation-aware, duplicate-filtering, and session-synchronized logic model. Each level is tracked and managed independently, but drawn cooperatively using a shared visual and behavioral control system.
This script is not a mashup but an integrated tool designed to support precise execution timing, market structure analysis, and liquidity-based interpretation within ICT-style trading frameworks.
This version does not reuse any code from open-source scripts, and no built-in indicators are merged. The logic is independently constructed for real-time tracking and multi-session visualization.
Inspiration
This tool is inspired by core ICT concepts and time-based session structures commonly discussed in educational content and the broader ICT community.
It also draws conceptual influence from the TFO Killzones & Pivots script by tradeforopp, particularly in the spirit of time-based liquidity tracking and institutional session segmentation. This script was developed independently but aligns in purpose. Full credit is given to TFO as an inspiration source, especially for traders using similar timing models.
Intended Audience
Designed for traders studying or applying:
ICT’s core market structure principles
Power of Three (PO3) setups
Session bias models (e.g., AM reversals, London continuations)
Liquidity sweep and mitigation analysis
Time-of-day-based confluence planning
The script provides structural levels—not signals—and is intended for visual scaffolding around discretionary execution strategies.
Quarter ICT Theo TradeQuarter ICT | Theo Trade
The "Multi-Level Yearly Divisions" indicator is a visual tool designed for TradingView charts. Its primary purpose is to help traders and analysts visualize and analyze price action within a structured, hierarchical breakdown of the year. It divides each year into progressively smaller, equal time segments, allowing for detailed observation of how markets behave during specific portions of the year, quarters, and even finer sub-divisions.
Yearly Detection: It first identifies the start of each new year on the chart.
Four Levels of Division:
Level 0: Marks the beginning of the year with a distinct line.
Level 1 (Quarters): Divides the entire year into four equal parts (quarters).
Level 2: Each quarter is then further divided into four equal smaller segments.
Level 3: Each of these Level 2 segments is again divided into four equal parts.
Level 4: Finally, each Level 3 segment is divided into four more equal parts.
5:30 AM IST Close + Offset Lines + TablesDescription:
This script captures the 5:30 AM IST close price and plots it on the chart along with dynamic offset levels above and below (±5, ±20, ±40, ±60, ±80 points). It also displays these levels in neatly organized tables at the top-right and bottom-right corners for quick reference.
🔹 Timezone: Asia/Kolkata (IST)
🔹 Useful for: Intraday traders who reference early morning levels
🔹 Visual aids:
Orange line for 5:30 AM close
Green lines for points above
Red lines for points below
Tables summarizing all levels
This tool helps identify key early-morning reference zones that can act as support/resistance or breakout targets.
Multi-Timeframe Session HighlighterWhat is the Multi-Timeframe Session Highlighter?
It’s a simple Pine Script indicator that paints two special candles on your chart, no matter what timeframe you’re looking at. Think of it as a highlighter pen for session starts and ends—can be used for session-based strategies or just keeping an eye on key turning points.
How it works:
Green Bar (Session Open): Marks the exact bar when your chosen higher-timeframe session kicks off. If you select “4H,” on the indicator, you’ll see green on every 4-hour open, even if you’re staring at a 15-minute chart.
Red Bar (Session Close): Highlights the very last lower-timeframe candle immediately before that session wraps up. So on a 1H chart with “Daily” selected, you’ll get a red band on the 23:00 hour before the new daily bar at midnight.
Customizable: Pick your own colors and transparency level to match your chart theme.
Getting started:
Add the indicator to your chart.
In the inputs, select the session timeframe (for example, “240” for 4H or “D” for daily).
Choose your favorite green and red shades.
That’s it.
CRYPTOID by Ano_Jokamp354CRYPTOID by Ano_Jokamp354
Is a custom indicator I developed from a complex combination of fundamental and technical analysis elements. Despite its complexity, I’ve dedicated this script to be accessible and usable by everyone, as a form of gratitude to the market that has significantly improved my financial life. I come from Indonesia and have been involved in the capital market — specifically in the cryptocurrency industry — since 2016.
So, what makes this indicator different from other mainstream indicators?
This indicator is specifically designed to detect mid to long-term trading trends, making it highly suitable for those who aim to be Swing Traders or Investors , as it analyzes market conditions from a medium to long-term perspective.
SPECIFICATIONS
High Accuracy Level between 85% to 100%, depending on market conditions
Ideal for DCA (Dollar Cost Averaging) strategies
Identifies Market Cycle Bottoms & Tops
Analyzes market conditions based on average trader psychology
RULES
Recommended for use in Spot Market
Daily (D1) timeframe is mandatory
Choose assets ranked within the top 50 or 100 by market cap for safety
For every ENTRY, allocate only 10%–20% of your total fiat capital
For every EXIT, sell only 20% of your total crypto holdings
This indicator is specifically designed for Crypto instruments only
HOW TO USE
ENTRY when the background color turns green/blue & the psychological thread curves upward from below — make sure it's below the dotted line
EXIT when the background color turns red & the psychological thread curves downward from above
This script is unique and precise, even though it uses common components such as RSI, MACD, EMA, Volume, etc. However, with the right logic and design, this indicator can compete with top-tier premium paid indicators.
Disclaimer : “Although this indicator has relatively high accuracy, trading by nature is a high-risk activity. Therefore, always apply proper risk and money management when using it, and never trade recklessly or without rules.”
I hope this indicator will be useful for many traders around the world.
Best regards,
Ano_Jokamp354
Hilbert micro trends MainThe HILBERT MICRO TRENDS indicator uses advanced Digital Signal Processing techniques to uncover hidden characteristics in price series, providing a statistical edge across all types of assets. This indicator specializes in detecting short- and medium-term micro trends, which can appear isolated, embedded within larger trends, or even during broad-ranging price phases.
It operates with a single parameter, simplifying configuration and greatly reducing the risk of overfitting. HILBERT MICRO TRENDS applies modern low-pass and high-pass filtering techniques to smooth price data and remove noise efficiently across multiple levels. The mathematical formulas generate four recursively smoothed series, each more refined than the last in a subtle and precise way, avoiding abrupt changes. These smoothed series outperform traditional moving averages in every aspect: they have less lag (detecting trend shifts faster), generate fewer false signals, and stay closer to price action. This gives them an edge over standard indicators and algorithms based on conventional moving averages such as the simple, exponential, Kalman, or Hull MA.
Visual Structure
The indicator displays in two parts: one on the main chart and one on a sub-chart. On the main chart, the four smoothed series create a shaded area, with the upper and lower bounds representing the maximum and minimum of the series. If a series is rising (positive derivative), it signals bullish momentum; if falling, bearish. Since each series has a different smoothing level, they represent different time perspectives, and the indicator considers all four simultaneously. If all series are bullish, the area turns solid green. If three are bullish and one bearish, it's pale green. Two bullish, two bearish: gray. One bullish and three bearish: pale red. All bearish: solid red. A confirmed micro trend is present only when all four are aligned, i.e., when the area is pure green or red.
The sub-chart displays a histogram version of the same shaded area as an oscillator. An additional smoothed line tracks when the width of this shaded area expands or contracts.
How to Use and Interpret
As stated, the goal is to detect micro trends in price. The first rule is to open long positions only when the area is solid green, and shorts only when it’s solid red. Transitions from pale green to solid green can signal the start of a bullish micro trend, and similarly, from pale red to solid red for bearish trends. The width of the shaded area indicates the strength of the movement (best seen in the histogram). A wider area suggests stronger momentum, which is related to volatility only when a micro trend is active.
Use the orange line in the histogram to determine whether the micro trend is gaining or losing strength. A decreasing width suggests the trend might be ending, signaling an exit opportunity. However, since the orange line lags behind, it’s better used as confirmation rather than a trigger. For quicker signals, changes to pure red or green are more effective.
Price Relationship
Pay attention to the price's relative position to the shaded area. If the price stays within or fluctuates inside the area, it's usually a sign of a ranging market with no clear trend—avoid trading in such conditions. However, if the price breaks out and moves away from the area, it's a strong sign a micro trend has begun. When the price returns to the shaded area, the trend might be ending.
The indicator also marks pivot points from the last pure green or red zone. While not directly used to enter trades, these serve as useful price action reference points for combining with other strategies or tools.
Parameter Settings
The indicator includes a single but crucial parameter that controls smoothing intensity. A low value makes the indicator faster; a higher value slows it down. Success depends on choosing the right setting for the market environment. For long, clear trends, use higher values (80–100), as late entries are acceptable and premature exits are avoided. For shorter, mean-reverting trends, lower values (~40) are better to avoid lag. The default setting is 60, which suits most markets, but users are encouraged to adjust it to current conditions.
Always identify the current market phase and backtest how past micro trends have behaved on the instrument being traded. This ensures the indicator is tuned to the asset’s behavior and can deliver optimal results.
HGDA Hany Ghazy Digital Analytics area zone'sIndicator Name: HGDA Hany Ghazy Digital Analytics area zones
Description:
This indicator plots several key price zones based on the highest high and lowest low over a user-defined lookback period.
The plotted zones represent dynamic support and resistance levels calculated using specific ratios of the price range (High - Low), as follows:
- Zone 1 (Light Red): Represents an upper resistance zone.
- Zone 2 (Medium Green): Represents a medium support zone.
- Zone 3 (Dark Red): Represents a lower resistance zone.
- Zone 4 (Dark Green): Represents a strong support zone.
Additionally, the indicator plots a yellow "Zero" line representing the midpoint price of the selected period, serving as a balance point for price action.
This indicator is ideal for identifying the overall market trend, as prices typically move from the upper resistance zones (light red) downwards to the end of the wave in the lower zones (dark green). This helps traders better understand wave nature and direction.
Usage:
- The colored zones assist in identifying potential reversal or continuation areas.
- These zones can be used to plan entries, exits, and risk management.
- Default lookback period is 20 bars, adjustable in the settings to suit the timeframe.
Notes:
- This indicator relies on historical price data and does not guarantee market predictions.
- It is recommended to combine it with other indicators and analytical tools for improved trading decisions.
---
Developed by Hany Ghazy Digital Analytics (HGDA).
Consecutive Candle CounterConsecutive Condition Counter is a versatile indicator that tracks and visualizes consecutive candles based on user-defined market conditions. It helps traders quickly identify streaks of bullish or bearish signals by counting how many bars in a row satisfy the selected condition.
🔍 Features:
Three selectable conditions via a dropdown:
Up & Down Days: Counts consecutive up or down candles. Each up candle adds +1, each down candle subtracts -1. The counter resets when direction changes.
RSI Signal: Counts how many consecutive bars RSI remains above 70 (+1 per bar) or below 30 (-1 per bar). Resets when RSI moves back to the neutral zone.
SMA Positioning: Counts consecutive bars where price stays above (+1) or below (-1) a Simple Moving Average (SMA). SMA period is user-defined.
📊 Visualization:
Positive streaks are shown in green, negative streaks in red, and neutral values in gray.
Displayed as a histogram below the chart for quick pattern recognition.
⚙️ Inputs:
Choose condition logic from the dropdown.
Configure the RSI period and SMA period as needed.
This tool can be helpful for identifying momentum streaks, overbought/oversold trends, or trend-following behavior in a visually intuitive way.
Clock&Flow MM+InfoThis script is an indicator that helps you visualize various moving averages directly on the price chart and gain some additional insights.
Here's what it essentially does:
Displays Different Moving Averages: You can choose to see groups of moving averages with different periods, set to nominal cyclical durations. You can also opt to configure them for instruments traded with classic or extended trading hours (great for Futures), and they'll adapt to your chosen timeframe.
Colored Bands: It allows you to add colored bands to the background of the chart that change weekly or daily, helping you visualize time cycles. You can customize the band colors.
Information Table: A small table appears in a corner of the chart, indicating which cycle the moving averages belong to (daily, weekly, monthly, etc.), corresponding to the timeframe you are using on the chart.
Customization: You can easily enable or disable the various groups of moving averages or the colored bands through the indicator's settings.
It's a useful tool for traders who use moving averages to identify trends and support/resistance levels, and who want a quick overview of market cycles.
Questo script è un indicatore che aiuta a visualizzare diverse medie mobili direttamente sul grafico dei prezzi e a ottenere alcune informazioni aggiuntive.
In pratica, fa queste cose:
Mostra diverse medie mobili: Puoi scegliere di vedere gruppi di medie mobili con periodi diversi impostati sulle durate cicliche nominali. Puoi scegliere se impostarle per uno strumento quotato con orario di negoziazione classico o esteso (ottimo per i Futures) e si adattano al tuo timeframe).
Bande colorate: Ti permette di aggiungere delle bande colorate sullo sfondo del grafico che cambiano ogni settimana o ogni giorno, per aiutarti a visualizzare i cicli temporali. Puoi scegliere il colore delle bande.
Tabella informativa: In un angolo del grafico, compare una piccola tabella che indica a quale ciclo appartengono le medie mobili (giornaliero, settimanale, mensile, ecc.) e corrispondono in base al timeframe che stai usando sul grafico.
Personalizzazione: Puoi facilmente attivare o disattivare i vari gruppi di medie mobili o le bande colorate tramite le impostazioni dell'indicatore.
È uno strumento utile per i trader che usano le medie mobili per identificare trend e supporti/resistenze, e che vogliono avere un colpo d'occhio sui cicli di mercato.
Calendar TableThis script displays a calendar-style visual grid directly on the TradingView chart. Unlike fundamental calendars or event indicators, this tool does not mark earnings, news, or economic data. Instead, it provides a simple and clean visual calendar layout for better understanding of date structures across timeframes.
The purpose of this script is purely visual – helping traders and analysts recognize monthly, weekly, and daily boundaries in a calendar format. It’s especially useful for visually aligning price action with time cycles, month-start effects, or periodic strategies.
✅ Key Features
🗓️ Calendar Grid Overlay
Displays calendar-style lines or boxes across candles based on real date logic (year, month, day).
📦 Minimalist Design
Non-intrusive layout that doesn’t interfere with price action or indicators.
⏳ Timeframe-Aware
Adjusts the calendar structure to match the selected chart timeframe.
🎨 Custom Styling Options
Choose line colors, label sizes, and boundary highlights.
⚙️ How to Use
Add the script to your chart.Adjust the visual style and frequency in the settings .
⚠️ Notes
This script does not fetch news, earnings, or events.
It is purely a static calendar layout based on date/time.
No user-defined events, reminders, or alerts are included.
📄 Licensing
This script is Protected Script its only for educational and analytical use.
LANZ Strategy 2.0 [Backtest]🔷 LANZ Strategy 2.0 — Structural Breakout Logic with Dynamic Swing Protection
LANZ Strategy 2.0 is a precision-focused backtesting system built for intraday traders who rely on structural confirmations before the London session to guide directional bias. This tool uses smart swing detection, risk-defined position sizing, and strict time-based execution to simulate real trading conditions with clarity and control.
🧠 Core Components:
Structural Confirmation (Trend & BoS): Detects trend direction and break of structure (BoS) using a three-swing logic, aligning trade entries with valid structural movement.
Time-Based Execution: Trades are triggered exclusively at 02:00 a.m. New York time, ensuring disciplined and repeatable intraday testing.
Swing-Based SL Models: Traders can select between three stop-loss protection types:
First Swing: Most recent structural level
Second Swing: Prior level
Full Coverage: All recent swing levels + configurable pip buffer
Dynamic TP Calculation: Take-Profit is projected as a risk-based multiple (RR), fully adjustable via input.
Capital-Based Risk Management: Risk is defined as a percentage of a fixed account size (e.g., $100 per trade from $10,000), and lot size is automatically calculated based on SL distance.
Fallback Entry Logic: If structural breakout is present but trend is not confirmed, a secondary entry is triggered.
End-of-Session Management: Any open trades are automatically closed at 11:45 a.m. NY time, with optional manual labeling or review.
📊 Visual Features (Optional in Indicator Version):
(Note: Visuals apply to the indicator version of LANZ 2.0, not this backtest script)
Swing level labels (1st, 2nd) and dynamic SL/TP lines.
Real-time session coloring for clarity: Pre-London, Entry Window, and NY Close.
Outcome labels: +RR, -RR, or net % at close.
Auto-cleanup of previous drawings for a clean chart per session.
⚙️ How It Works:
Detects last trend and BoS using swing logic before 02:00 a.m. NY.
At 02:00 a.m., evaluates directional bias and executes BUY or SELL if confirmed.
Applies selected SL logic (1st, 2nd, or full swing protection).
Sets TP based on the RR multiplier.
Closes the trade either on SL, TP, or at 11:45 a.m. NY manually.
🔔 Alerts:
Time-of-day alert at 02:00 a.m. NY to monitor execution.
Can be extended to cover SL/TP triggers or new BoS events.
📝 Notes:
Designed for backtesting precision and discretionary decision-making.
Ideal for Forex pairs, indices, or assets active during the London session.
Fully customizable: session timing, swing logic, SL buffer, and RR.
👤 Credits:
Strategy built by @rau_u_lanz using Pine Script v6, combining structural logic, capital-based risk control, and London-session timing in a backtest-ready framework for traders who demand accuracy and structure.