Monday Swing Box# Monday Swing Box Indicator - Trading Applications
This "Monday Swing Box" indicator can be very useful in trading for several strategic reasons:
## 1. **"Monday Effect" Analysis**
* **Concept**: Mondays often have particular characteristics in the markets (opening gaps, weekend catch-up, different volumes)
* **Utility**: Allows visualization and quantification of these Monday-specific movements
* **Application**: Helps identify recurring patterns in your strategy
## 2. **Relative Volatility Measurement with ATR**
* **The ATR percentage tells you**:
   * **< 50%**: Low volatility Monday (possible consolidation)
   * **50-100%**: Normal volatility
   * **> 100%**: Very volatile Monday (important event, potential breakout)
* **Advantage**: Contextualizes the movement relative to historical volatility
## 3. **Practical Trading Applications**
### **For Day Trading**:
* **Entry**: A Monday with >150% ATR may signal a strong movement to follow
* **Stop Loss**: Adjust stop sizes according to Monday's volatility
* **Targets**: Calibrate targets according to the movement's magnitude
### **For Swing Trading**:
* **Support/Resistance**: Monday's high/low often become key levels
* **Breakout**: Breaking above/below Monday's box may signal continuation
* **Retracement**: Return to Monday's box = support/resistance zone
### **For Risk Management**:
* **Sizing**: Adapt position sizes according to measured volatility
* **Timing**: Avoid trading abnormally volatile Mondays if you prefer stability
## 4. **Specific Possible Strategies**
### **"Monday Breakout"**:
* Wait for a break above/below Monday's box
* Enter in the direction of the breakout
* Stop at the other end of the box
### **"Monday Reversal"**:
* If Monday shows >200% ATR, look for a reversal
* The box becomes a resistance/support zone
### **"Monday Range"**:
* Trade bounces off the box limits
* Particularly effective if ATR % is normal (50-100%)
## 5. **Visualization Advantages**
* **Historical**: See past patterns across multiple Mondays
* **Comparison**: Compare current volatility to previous Mondays
* **Anticipation**: Prepare your strategy according to the type of Monday observed
## 6. **Limitations to Consider**
* Monday patterns can vary according to markets and periods
* Don't trade solely on this indicator, but use it as a complement
* Consider macroeconomic context and news
This indicator is therefore particularly useful for traders who want to exploit Monday's specificities and have an objective measure of this day's relative volatility compared to normal market conditions.
Swingtrading
Contrarian Market Structure BreakMarket Structure Break application was inspired and adapted from Market Structure Oscillator indicator developed by Lux Algo. So much credit to their work.
This indicator pairs nicely with the Contrarian 100 MA and can be located here:
Indicator Description: Contrarian Market Structure BreakOverview
The "Contrarian Market Structure Break" indicator is a versatile tool tailored for traders seeking to identify potential reversal opportunities by analyzing market structure across multiple timeframes. Built on Institutional Concepts of Structure (ICT), this indicator detects Break of Structure (BOS) and Change of Character (CHoCH) patterns across short-term, intermediate-term, and long-term swings, plotting them with customizable lines and labels. It generates contrarian buy and sell signals when price breaks key swing levels, with a unique "Blue Dot Tracker" to monitor consecutive buy signals for trend confirmation. Optimized for the daily timeframe, this indicator is adaptable to other timeframes with proper testing, making it ideal for traders of forex, stocks, or cryptocurrencies.
How It Works
The indicator combines three key components to provide a comprehensive view of market dynamics:  Multi-Timeframe Market Structure Analysis: It identifies swing highs and lows across short-term, intermediate-term, and long-term periods, plotting BOS (continuation) and CHoCH (reversal) events with customizable line styles and labels.  
Contrarian Signal Generation: Buy and sell signals are triggered when the price crosses below swing lows (buy) or above swing highs (sell), indicating potential reversals in overextended markets.  
Blue Dot Tracker: A unique feature that counts consecutive buy signals ("blue dots") and highlights a "Hold Investment" state with a yellow background when three or more buy signals occur, suggesting a potential trend continuation.  
Signals are visualized as small circles below (buy) or above (sell) price bars, and a table in the bottom-right corner displays the blue dot count and recommended action (Hold or Flip Investment), enhancing decision-making clarity.
Mathematical Concepts  Swing Detection: The indicator identifies swing highs and lows by comparing price patterns over three bars, ensuring robust detection of pivot points. A swing high occurs when the middle bar’s high is higher than the surrounding bars, and a swing low occurs when the middle bar’s low is lower.  
Market Structure Logic: BOS is detected when the price breaks a prior swing high (bullish) or low (bearish) in the direction of the current trend, while CHoCH signals a potential reversal when the price breaks a swing level against the trend. These are calculated across three timeframes for a multi-dimensional perspective.  
Blue Dot Tracker: This feature counts consecutive buy signals and tracks the entry price. If three or more buy signals occur without a sell signal, the indicator enters a "Hold Investment" state, marked by a yellow background, until the price exceeds the entry price or a sell signal occurs.
Entry and Exit Rules  Buy Signal (Blue Dot Below Bar): Triggered when the closing price crosses below a swing low on either the intermediate-term or long-term timeframe, suggesting an oversold condition and potential reversal upward. Short-term signals can be enabled but are disabled by default to reduce noise.  
Sell Signal (White Dot Above Bar): Triggered when the closing price crosses above a swing high on either the intermediate-term or long-term timeframe, indicating an overbought condition and potential reversal downward.  
Blue Dot Tracker Logic:  After a buy signal, the indicator increments a blue dot counter and records the entry price.  If three or more consecutive buy signals occur (blueDotCount ≥ 3), the indicator enters a "Hold Investment" state, highlighted with a yellow background, suggesting a potential trend continuation. The "Hold Investment" state ends when the price exceeds the entry price or a sell signal occurs, resetting the counter.
Exit Rules: Traders can exit buy positions when a sell signal appears, the price exceeds the entry price during a "Hold Investment" state, or based on additional confirmation from BOS/CHoCH patterns or other technical analysis tools. Always use proper risk management.
Recommended Usage
The indicator is optimized for the daily timeframe, where it effectively captures significant reversal and continuation patterns in trending or ranging markets. It can be adapted to other timeframes (e.g., 1H, 4H, 15M) with careful testing of settings, particularly enabling/disabling short-term structure analysis to suit market conditions. Backtesting is recommended to optimize performance for your chosen asset and timeframe. 
Customization Options Market Structure Display: Toggle short-term, intermediate-term, and long-term structures on or off, with customizable line styles (solid, dashed, dotted) and colors for bullish and bearish breaks.  
Labels: Enable or disable BOS/CHoCH labels for each timeframe to reduce chart clutter.  
Signal Visibility: Hide buy/sell signals if desired for a cleaner chart.  
Blue Dot Tracker: Monitor the blue dot count and action (Hold or Flip Investment) via the table display, which is fully customizable in terms of position and appearance.
Why Use This Indicator?
The "Contrarian Market Structure Break" indicator offers a robust framework for identifying high-probability reversal and continuation setups using ICT principles. Its multi-timeframe analysis, clear signal visualization, and innovative Blue Dot Tracker provide traders with actionable insights into market dynamics. Whether you're a swing trader or a day trader, this indicator’s flexibility and intuitive design make it a valuable addition to your trading arsenal. 
Note for TradingView Moderators
This script complies with TradingView's House Rules by providing an educational and transparent description without performance claims or guarantees. It is designed to assist traders in technical analysis and should be used alongside proper risk management and personal research. The code is original, well-documented, and includes customizable inputs and clear visual outputs to enhance the user experience. 
Tips for Users:  
Backtest thoroughly on your chosen asset and timeframe to validate signal reliability. Combine with other indicators or price action analysis for confirmation of entries and exits. Adjust timeframe settings and enable/disable short-term structures to match market volatility and your trading style.
Hope the "Contrarian Market Structure Break" indicator enhances your trading strategy and helps you navigate the markets with confidence! Happy trading!
Bullish Combo Scan by TLP📈 Bullish Combo Scan by TLP
This indicator scans for high-probability bullish breakout setups based on price action and volume strength, and optionally provides position sizing based on your risk management preferences.
🔍 Key Features:
$ Breakout Detection
Identifies stocks with a $0.90 or more price gain from the open, supported by strong volume and price structure.
% Breakout Detection
Flags stocks moving 4% or more from the previous close, also requiring momentum confirmation and volume above 100,000.
Momentum Filter
Breakouts are filtered to avoid extended moves by requiring low price movement between the previous two candles.
Volume & Price Conditions
Ensures breakouts are supported by liquidity (volume > 100,000) and minimum price (≥ $3) to reduce noise.
Position Size Calculator (Optional)
Displays position size based on your account value, risk percentage, and stop loss derived from a configurable previous candle’s low.
Screener-Ready Output
Includes a numeric plot to support TradingView's built-in screener, showing 1 for $ breakout and 2 for % breakout.
⚙️ Customizable Inputs:
Toggle $ breakout or % breakout conditions
Set your account size and risk per trade
Choose which candle’s low to use for stop loss calculation
✅ Best Used For:
Intraday or swing traders looking for fresh breakout setups
Traders who prefer a rules-based, volume-confirmed breakout scan
Screening large watchlists with custom logic for alerts and automation
Fibonacci Retracement Engine (DFRE) [PhenLabs]📊 Fibonacci Retracement Engine (DFRE)  
 Version: PineScript™ v6 
📌 Description
Dynamic Fibonacci Retracement Engine (DFRE) is a sophisticated technical analysis tool that automatically detects important swing points and draws precise Fibonacci retracement levels on various timeframes. The intelligent indicator eliminates the subjectivity of manual Fibonacci drawing using intelligent swing detection algorithms combined with multi timeframe confluence analysis.
Built for professional traders who demand accuracy and consistency, DFRE provides real time Fibonacci levels that adapt to modifications in market structure without sacrificing accuracy in changing market conditions. The indicator excels at identifying key support and resistance levels where price action is more likely to react, giving traders a potent edge in entry and exit timing.
🚀 Points of Innovation
 
 Intelligent Swing Detection Algorithm : Advanced pivot detection with customizable confirmation bars and minimum swing percentage thresholds
 Multi-Timeframe Confluence Engine : Simultaneous analysis across three timeframes to identify high-probability zones
 Dynamic Level Management : Automatically updates and manages multiple Fibonacci sets while maintaining chart clarity
 Adaptive Visualization System : Smart labeling that shows only the most relevant levels based on user preferences
 Real-Time Confluence Detection : Identifies zones where multiple Fibonacci levels from different timeframes converge
 Automated Alert System : Comprehensive notifications for level breakouts and confluence zone formations
 
🔧 Core Components
 
 Swing Point Detection Engine : Uses pivot high/low calculations with strength confirmation to identify significant market turns
 Fibonacci Calculator : Automatically computes standard retracement levels (0.236, 0.382, 0.5, 0.618, 0.786, 0.886) plus extensions (1.272, 1.618)
 Multi-Timeframe Security Function : Safely retrieves Fibonacci data from higher timeframes without repainting
 Confluence Analysis Module : Mathematically identifies zones where multiple levels cluster within specified thresholds
 Dynamic Drawing Management : Efficiently handles line and label creation, updates, and deletion to maintain performance
 
🔥 Key Features
 
 Customizable Swing Detection : Adjust swing length (3-50 bars) and strength confirmation (1-10 bars) to match your trading style
 Selective Level Display : Choose which Fibonacci levels to show, from core levels to full extensions
 Multi-Timeframe Analysis : Analyze up to 3 different timeframes simultaneously for confluence identification
 Intelligent Labeling System : Options to show main levels only or all levels, with latest-set-only functionality
 Visual Customization : Adjustable line width, colors, and extension options for optimal chart clarity
 Performance Optimization : Limit maximum Fibonacci sets (1-5) to maintain smooth chart performance
 Comprehensive Alerting : Get notified on level breakouts and confluence zone formations
 
🎨 Visualization
 
 Dynamic Fibonacci Lines : Color-coded lines (green for uptrends, red for downtrends) with customizable width and extension
 Smart Level Labels : Precise level identification with both ratio and price values displayed
 Confluence Zone Highlighting : Visual emphasis on areas where multiple timeframe levels converge
 Clean Chart Management : Automatic cleanup of old drawing objects to prevent chart clutter
 Responsive Design : All visual elements adapt to different chart sizes and timeframes
 
📖 Usage Guidelines
 Swing Detection Settings 
 Swing Detection Length  - Default: 25 | Range: 3-50 | Controls the lookback period for identifying pivot points. Lower values detect more frequent swings but may include noise, while higher values focus on major market turns.
 Swing Strength (Confirmation Bars)  - Default: 2 | Range: 1-10 | Number of bars required to confirm a swing point. Higher values reduce false signals but increase lag.
 Minimum Swing % Change  - Default: 1.0% | Range: 0.1-10.0% | Minimum percentage change required to register a valid swing. Filters out insignificant price movements.
 Fibonacci Level Settings 
 
 Individual Level Toggles : Enable/disable specific Fibonacci levels (0.236, 0.382, 0.5, 0.618, 0.786, 0.886)
 Extensions : Show projection levels (1.272, 1.618) for target identification
 
 Multi-Timeframe Settings 
 
 Timeframe Selection : Choose three higher timeframes for confluence analysis
 Confluence Threshold : Percentage tolerance for level clustering (0.5-5.0%)
 
✅ Best Use Cases
 
 Swing Trading : Identify optimal entry and exit points at key retracement levels
 Confluence Trading : Focus on high-probability zones where multiple timeframe levels align
 Support/Resistance Trading : Use dynamic levels that adapt to changing market structure
 Breakout Trading : Monitor level breaks for momentum continuation signals
 Target Setting : Utilize extension levels for profit target placement
 
⚠️ Limitations
 
 Lagging Nature : Requires confirmed swing points, which means levels appear after significant moves
 Market Condition Dependency : Works best in trending markets; less effective in extremely choppy conditions
 Multiple Signal Complexity : Multiple timeframe analysis may produce conflicting signals requiring experience to interpret
 Performance Considerations : Multiple Fibonacci sets and MTF analysis may impact indicator loading time on slower devices
 
💡 What Makes This Unique
 
 Automated Precision : Eliminates manual drawing errors and subjective level placement
 Multi-Timeframe Intelligence : Combines analysis from multiple timeframes for superior confluence detection
 Adaptive Management : Automatically updates and manages multiple Fibonacci sets as market structure evolves
 Professional-Grade Alerts : Comprehensive notification system for all significant level interactions
 
🔬 How It Works
 Step 1 - Swing Point Identification : Scans price action using pivot high/low calculations with specified lookback periods, applies confirmation logic to eliminate false signals, and calculates swing strength based on surrounding price action for quality assessment.
 Step 2 - Fibonacci Level Calculation : Automatically computes retracement and extension levels between confirmed swing points, creates dynamic level sets that update as new swing points are identified, and maintains multiple active Fibonacci sets for comprehensive market analysis.
 Step 3 - Multi-Timeframe Confluence : Retrieves Fibonacci data from higher timeframes using secure request functions, analyzes level clustering across different timeframes within specified thresholds, and identifies high-probability zones where multiple levels converge.
 💡 Note: This indicator works best when combined with other technical analysis tools and proper risk management. The multi-timeframe confluence feature provides the highest probability setups, but always confirm signals with additional analysis before entering trades.
[ BETA ][ IND ][ LIB ] Dynamic LookBack RSI RangeGet visual confirmation with this indicator if the current range selected had been oversold or overbough in the latest n bars 
EPS and Sales Magic Indicator V2EPS and Sales Magic Indicator V2 
EPS and Sales Magic Indicator V2
Short Title: EPS V2
Author: Trading_Tomm
Platform: TradingView (Pine Script v6)
License: Free for public use under fair usage guidelines
Overview
The EPS and Sales Magic Indicator V2 is a powerful stock fundamental visualization tool built specifically for TradingView users who wish to incorporate earnings intelligence directly onto their price chart. Designed and developed by Trading_Tomm, this upgraded version of the original 'EPS and Sales Magic Indicator' includes an enriched and more insightful presentation of company performance metrics — now with TTM EPS support, advanced color-coding, label sizing, and refined control options.
This indicator is tailored for retail traders, swing investors, and long-term fundamental analysts who need to view Quarter-over-Quarter (QoQ) earnings and revenue changes directly on the price chart without switching tabs or breaking focus.
What Does It Display?
The EPS and Sales Magic Indicator V2 intelligently detects quarterly financial updates and displays the following data points via labels:
1. EPS (Earnings Per Share) – Current Quarterly Value
This is the most recent Diluted EPS published by the company, fetched using TradingView’s request.financial() function.
Displayed in the format: EPS: ₹20.45
2. EPS QoQ Percentage Change
Shows the percentage change in EPS compared to the previous quarter.
Highlights improvement or decline using arrows (up for improvement, down for decline).
Displayed in the format: EPS: ₹20.45 (up 15.3 percent)
3. Sales (Revenue) – Current Quarterly Value
Fetches and displays Total Revenue of the company in ₹Crores for easier Indian-market readability.
Displayed in the format: Sales: ₹460Cr
4. Sales QoQ Percentage Change
Measures and presents the quarter-over-quarter percentage change in total revenue.
Uses arrows to indicate growth or contraction.
Displayed in the format: Sales: ₹460Cr (down 3.8 percent)
5. EPS TTM (Trailing Twelve Months)
You now get the TTM EPS — the sum of the last four quarterly EPS values.
This value provides a better long-term earnings snapshot compared to a single quarter.
Displayed in the format: TTM EPS: ₹78.12
All of these values are automatically calculated and displayed only on the bars where a new financial report is detected, keeping your chart clean and insightful.
Customization Features
This indicator is built with user control in mind, allowing you to personalize how and what you want to see:
Show EPS in Label: Enable or disable the display of EPS and EPS QoQ values.
Show Sales in Label: Toggle the visibility of revenue and sales change percentage.
Color Options for Label Themes: The label background color is automatically determined based on performance.
Green: Both EPS and Sales increased QoQ.
Red: Both decreased.
Orange: One increased and the other decreased.
Gray: Default color (if values are unavailable or mixed).
Label Text Size: Choose from Tiny, Small (default), or Normal.
Visual Design
Placement: The labels are positioned just below the candlesticks using yloc.belowbar, so they do not obstruct price action or interfere with technical indicators.
Anchor: Aligned precisely with the financial reporting bars to maintain clarity in historical comparisons.
Background Style: Clean, semi-transparent styling with soft text colors for comfortable viewing.
How It Works
The indicator relies on TradingView’s powerful request.financial() function to extract fiscal quarterly financials (FQ). Internally, it uses detection logic to identify fresh data updates by comparing current vs. previous values, arithmetic to compute QoQ percentage changes in EPS and Sales, logic to build formatted labels dynamically based on user selections, and conditional color and sizing logic to enhance interpretability.
Use Cases
For Long-Term Investors: Quickly identify if a company’s profitability and revenue are improving over time.
For Swing Traders: Combine recent earnings trends with price action to evaluate if post-result momentum has real backing.
For Technical and Fundamental Traders: Layer it with moving averages, RSI, or volume to create a hybrid analysis environment.
Limitations and Notes
Financial data is provided by TradingView’s financial API, and occasional missing values may occur for less-covered stocks.
This tool does not repaint but depends on the timing of the official financial updates.
All values are rounded and formatted to prioritize readability.
Works best on Daily or higher timeframes (weekly or monthly also supported).
License and Fair Use
This script is free to use and share under TradingView’s open-use guidelines. You may copy, fork, and build upon this indicator for personal or educational purposes, but commercial usage requires attribution to the author: Trading_Tomm.
Future Enhancements (Planned)
Addition of Net Profit (QoQ and TTM)
Inclusion of Operating Margin, Profit Margin, and Book Value
Option to switch between numeric and graphical display (table mode)
Alerts on extreme earnings deviation or sales slumps
Final Thoughts
The EPS and Sales Magic Indicator V2 represents a clean, visual, and smart way to monitor a company’s core performance from your chart screen. It helps you align fundamental strength with technical strategies and provides instant financial clarity, which is especially vital in today’s fast-moving markets.
Whether you’re preparing for an earnings season or scanning past performance to pick your next investment, this indicator saves time, enhances insights, and sharpens decisions.
Contrarian with 5 Levels5 Levels application was inspired and adapted from Predictive Ranges indicator developed by Lux Algo. So much credit to their work. 
Indicator Description: Contrarian with 5 Levels
Overview
The "Contrarian with 5 Levels" indicator is a powerful tool designed for traders seeking to identify potential reversal points in the market by combining contrarian trading principles with dynamic support and resistance levels. This indicator overlays a Simple Moving Average (SMA) shadow and five adaptive price levels, integrating Institutional Concepts of Structure (ICT) such as Break of Structure (BOS) and Market Structure Shift (MSS) to provide clear buy and sell signals. It is ideal for traders looking to capitalize on overextended price movements, particularly on the daily timeframe, though it is adaptable to other timeframes with proper testing.
How It Works
The indicator operates on two core components:  
Contrarian SMA Shadow: A shaded region between the SMA of highs and lows (default length: 100) acts as a dynamic zone to identify overbought or oversold conditions. When the price moves significantly outside this shadow, it signals potential exhaustion, aligning with contrarian trading principles.  
Five Adaptive Levels: Using a modified ATR-based calculation, the indicator plots five key levels (two resistance, one average, and two support) that adjust dynamically to market volatility. These levels serve as critical zones for potential reversals.  
ICT Structure Analysis: The indicator incorporates BOS and MSS logic to detect shifts in market structure, plotting bullish and bearish breaks with customizable colors for clarity.
Buy and sell signals are generated when the price crosses key levels while outside the SMA shadow, indicating potential reversal opportunities. The signals are visualized as small circles above (sell) or below (buy) the price bars, making them easy to interpret.
Mathematical Concepts  
SMA Shadow: The indicator calculates the SMA of the highest highs and lowest lows over a user-defined period (default: 100). This creates a dynamic range that highlights extreme price movements, which contrarian traders often target for reversals.  
Five Levels Calculation: The five levels are derived using a volatility-adjusted formula based on the Average True Range (ATR). The average level (central pivot) is calculated as a smoothed price, with two upper (resistance) and two lower (support) levels offset by a multiple of the ATR (default multiplier: 6.0). This adaptive approach ensures the levels remain relevant across varying market conditions.  
ICT BOS/MSS Logic: The indicator identifies pivot highs and lows on a user-defined timeframe (default: daily) to detect structural breaks. A BOS occurs when the price breaks a prior pivot high (bullish) or low (bearish), while an MSS signals a shift in market direction, providing context for potential reversals.
Entry and Exit Rules  
Buy Signal (Blue Dot Below Bar): Triggered when the closing price is below both the SMA shadow (smaLow) and the average level (avg), and the price crosses under either the first or second support level (prS1 or prS2). This suggests the market may be oversold, indicating a potential reversal upward.  
Sell Signal (White Dot Above Bar): Triggered when the closing price is above both the SMA shadow (smaHigh) and the average level (avg), and the price crosses over either the first or second resistance level (prR1 or prR2). This suggests the market may be overbought, indicating a potential reversal downward.  
Recommended Usage
This indicator is optimized for the daily timeframe, where it has been designed to capture significant reversal opportunities in trending or ranging markets. However, it can be adapted to other timeframes (e.g., 1H, 4H, 15M) with proper testing of settings such as SMA length, ATR multiplier, and structure timeframe. Users are encouraged to backtest and optimize parameters to suit their trading style and asset class.
Customization Options  
SMA Length: Adjust the SMA period (default: 100) to control the sensitivity of the shadow.  
Five Levels Length and Multiplier: Modify the length (default: 200) and ATR multiplier (default: 6.0) to fine-tune the support/resistance levels.  
Timeframe Settings: Set separate timeframes for structure analysis and five levels to align with your trading strategy.  
Color and Signal Display: Customize colors for BOS/MSS lines and toggle buy/sell signals on or off for a cleaner chart.
Why Use This Indicator?
The "Contrarian with 5 Levels" indicator combines the power of contrarian trading with dynamic levels and market structure analysis, offering a unique perspective for identifying high-probability reversal setups. Its intuitive design, customizable settings, and clear signal visualization make it suitable for both novice and experienced traders. Whether you're trading forex, stocks, or cryptocurrencies, this indicator provides a robust framework for spotting potential turning points in the market.
We hope you find the "Contrarian with 5 Levels" indicator a valuable addition to your trading toolkit! Happy trading!
Please leave feedback in the comments section. 
Ticker Pulse Meter BasicPairs nicely with the Contrarian 100 MA located here:
and the Enhanced Stock Ticker with 50MA vs 200MA located here:
Description
The Ticker Pulse Meter Basic is a dynamic Pine Script v6 indicator designed to provide traders with a visual representation of a stock’s price position relative to its short-term and long-term ranges, enabling clear entry and exit signals for long-only trading strategies. By calculating three normalized metrics—Percent Above Long & Above Short, Percent Above Long & Below Short, and Percent Below Long & Below Short—this indicator offers a unique "pulse" of market sentiment, plotted as stacked area charts in a separate pane. With customizable lookback periods, thresholds, and signal plotting options, it empowers traders to identify optimal entry points and profit-taking levels. The indicator leverages Pine Script’s force_overlay feature to plot signals on either the main price chart or the indicator pane, making it versatile for various trading styles.
Key Features
Pulse Meter Metrics:
Computes three percentages based on short-term (default: 50 bars) and long-term (default: 200 bars) lookback periods:
Percent Above Long & Above Short: Measures price strength when above both short and long ranges (green area).
Percent Above Long & Below Short: Indicates mixed momentum (orange area).
Percent Below Long & Below Short: Signals weakness when below both ranges (red area).
Flexible Signal Plotting:
Toggle between plotting entry (blue dots) and exit (white dots) signals on the main price chart (location.abovebar/belowbar) or in the indicator pane (location.top/bottom) using the Plot Signals on Main Chart option.
Entry/Exit Logic:
Long Entry: Triggered when Percent Above Long & Above Short crosses above the high threshold (default: 20%) and Percent Below Long & Below Short is below the low threshold (default: 40%).
Long Exit: Triggered when Percent Above Long & Above Short crosses above the profit-taking level (default: 95%).
Visual Enhancements:
Plots stacked area charts with semi-transparent colors (green, orange, red) for intuitive trend analysis.
Displays threshold lines for entry (high/low) and profit-taking levels.
Includes a ticker and timeframe table in the top-right corner for quick reference.
Alert Conditions: Supports alerts for long entry and exit signals, integrable with TradingView’s alert system for automated trading.
Technical Innovation: Combines normalized price metrics with Pine Script v6’s force_overlay for seamless signal integration on the price chart or indicator pane.
Technical Details
Calculation Logic:
Uses confirmed bars (barstate.isconfirmed) to calculate metrics, ensuring reliability.
Short-term percentage: (close  - lowest(low, lookback_short)) / (highest(high, lookback_short) - lowest(low, lookback_short)).
Long-term percentage: (close  - lowest(low, lookback_long)) / (highest(high, lookback_long) - lowest(low, lookback_long)).
Derived metrics:
pct_above_long_above_short = (pct_above_long * pct_above_short) * 100.
pct_above_long_below_short = (pct_above_long * (1 - pct_above_short)) * 100.
pct_below_long_below_short = ((1 - pct_above_long) * (1 - pct_above_short)) * 100.
Signal Plotting:
Entry signals (long_entry) use ta.crossover to detect when pct_above_long_above_short crosses above entryThresholdhigh and pct_below_long_below_short is below entryThresholdlow.
Exit signals (long_exit) use ta.crossover for pct_above_long_above_short crossing above profitTake.
Signals are plotted as tiny circles with force_overlay=true for main chart or standard plotting for the indicator pane.
Performance Considerations: Optimized for efficiency by calculating metrics only on confirmed bars and using lightweight plotting functions.
How to Use
Add to Chart:
Copy the script into TradingView’s Pine Editor and apply it to your chart.
Configure Settings:
Short Lookback Period: Adjust the short-term lookback (default: 50 bars) for sensitivity.
Long Lookback Period: Set the long-term lookback (default: 200 bars) for broader context.
Entry Thresholds: Modify high (default: 20%) and low (default: 40%) thresholds for entry conditions.
Profit Take Level: Set the exit threshold (default: 95%) for profit-taking.
Plot Signals on Main Chart: Check to display signals on the price chart; uncheck for the indicator pane.
Interpret Signals:
Long Entry: Blue dots indicate a strong bullish setup when price is high relative to both lookback ranges and weakness is low.
Long Exit: White dots signal profit-taking when strength reaches overbought levels.
Use the stacked area charts to assess trend strength and momentum.
Set Alerts:
Create alerts for Long Entry and Long Exit conditions using TradingView’s alert system.
Customize Visuals:
Adjust colors and thresholds via TradingView’s settings for better visibility.
The ticker table displays the symbol and timeframe in the top-right corner.
Example Use Cases
Swing Trading: Use entry signals to capture short-term bullish moves within a broader uptrend, exiting at profit-taking levels.
Trend Confirmation: Monitor the green area (Percent Above Long & Above Short) for sustained bullish momentum.
Market Sentiment Analysis: Use the stacked areas to gauge bullish vs. bearish sentiment across timeframes.
Notes
Testing: Backtest the indicator on your chosen market and timeframe to validate its effectiveness.
Compatibility: Built for Pine Script v6 and tested on TradingView as of June 20, 2025.
Limitations: Signals are long-only; adapt the script for short strategies if needed.
Enhancements: Consider adding a histogram for the difference between metrics or additional thresholds for nuanced trading.
Acknowledgments
Inspired by public Pine Script examples and designed to simplify complex market dynamics into a clear, actionable tool. For licensing or support, contact Chuck Schultz (@chuckaschultz) on TradingView. Share feedback in the comments, and happy trading!
HMA Swing Levels [BigBeluga]An advanced swing structure and trend-following tool built on Hull Moving Average logic, designed to detect major reversals and track dynamic support/resistance zones. 
This indicator analyzes price swings using pivot highs/lows and a smoothed HMA trend baseline. It highlights key reversal levels and keeps them active until breached, giving traders a clear visual framework for price structure and trend alignment. The pivots are calculated in real-time using non-lagging logic, making them highly responsive to market conditions.
 🔵 CONCEPTS 
 
  Combines a fast-reacting  Hull Moving Average (HMA)  with pivot logic to capture precise directional changes.
  Detects  non-lagging reversal highs and lows  when pivot points form and the HMA direction flips.
  Projects these reversal levels forward as  horizontal support/resistance lines  until broken by price.
  Active trend is shown with a  step-style trail line  that reflects HMA bias over time.
 
 🔵 FEATURES 
 
   Swing Level Detection: 
Identifies high/low reversals when trend direction changes and plots horizontal zones.
  
Non-lagging logic of swing points detection:
 
if h  == high  and high < h and change > 0
    // Detected Swing High
if l  == low  and low > l and change < 0
    // Detected Swing Low
 
  
   Persistent Support & Resistance Lines: 
Each detected swing high or low is extended forward until price invalidates the level. Dotted style is applied once breached.
   Color-Coded Trend Trail: 
Displays a stepped trend trail using HMA slope: lime = uptrend, blue = downtrend.
  
   Automatic Labeling: 
Each reversal level is labeled with its price for clear reference.
  
   Age-Based Line Thickness: 
Every level increases in thickness every 250 bars. The longer the level lasts, the stronger it is.
  
 
 🔵 HOW TO USE 
 
  Use green (support) and blue (resistance) levels to frame key reaction zones.
  
  Trade with the trend defined by the trail color: lime for bullish bias, blue for bearish.
  Explore where buy or sell orders are stacked
  
  Look for breaks of swing lines to anticipate trend shifts or breakout setups.
  Adjust the  "Trend Change"  input to tune the sensitivity of swing detection.
  Adjust the  "SwingLevels"  input to define how far back to search for valid pivots.
 
 🔵 CONCLUSION 
 HMA Swing Levels   offers a hybrid approach to structural and trend-based trading. With automated  non-lagging  swing detection, persistent support/resistance tracking, and intuitive HMA-based trend coloring, it provides a powerful visual system for discretionary and systematic traders alike.
Swing High Low Detector by RV5📄 Description 
The  Swing High Low Detector  is a visual indicator that automatically detects and displays  swing highs  and  swing lows  on the chart. Swings are determined based on configurable strength parameters (number of bars before and after a high/low), allowing users to fine-tune the sensitivity of the swing points.
🔹  Current swing levels  are shown as solid (or user-defined) lines that dynamically extend until broken.
🔹  Past swing levels  are preserved as dashed/dotted lines once broken, allowing traders to see previous support/resistance zones.
🔹 Customizable line  colors, styles, and thickness  for both current and past levels.
This indicator is useful for:
 
 Identifying key market structure turning points
 Building breakout strategies
 Spotting trend reversals and swing zones
 
 ⚙️ How to Use 
1. Add the indicator to any chart on any timeframe.
2. Adjust the Swing Strength inputs to change how sensitive the detector is:
 
 A higher value will filter out smaller moves.
 A lower value will capture more frequent swing points.
 
3. Customize the line styles for visual preference.
Choose different colors, line styles (solid/dashed/dotted), and thickness for:
 
 Current Swing Highs (SH)
 Past Swing Highs
 Current Swing Lows (SL)
 Past Swing Lows
 
4. Observe:
 
 As new swing highs/lows are detected, the indicator draws a new current level.
 Once price breaks that level, the line is archived as a past level and a new current swing is drawn.
 
 ✅ Features 
 
 Fully customizable styling for all lines
 Real-time updates and automatic level tracking
 Supports all chart types and instruments
 
 👨💻 Credits 
Script logic and implementation by RV5. This script was developed as a tool to improve price action visualization and trading structure clarity. Not affiliated with any financial institution. Use responsibly.
Gann Swing PointsIndicator Logic 
This is a GANN-style swing indicator that classifies bars based on their high/low structure relative to the previous bar.
I strongly encourage you to replay bars on Tradingview using this indicator to get a sense of how it creates pivot (or swing) points
 Bar Classification: 
Up-Bar (direction: 'up'): Higher High and Higher Low (HH/HL)
Down-Bar (direction: 'down'): Lower High and Lower Low (LH/LL)
Outside-Bar (generates 2 directions):
Green: 'down' then 'up'
Red: 'up' then 'down'
Inside-Bar: No direction generated (HL/LH)
 Swing Line Logic 
The swing line continues in the current direction until n opposite directions are detected.
n is the "n-direction" parameter (commonly set to 2, so 2 consecutive opposite direction is needed to turn the swing)
When n opposing directions occur, the swing turns, creating a pivot point
Inside bar is ignored, so e.g up-bar -> inside-bar -> up-bar generates "up", "up" direction
A top pivot is formed when the swing turns down
A bottom pivot is formed when it turns up
Note: This swing logic is inherently lagging — it only confirms tops/bottoms after the fact
This swing structure gives the system a clear and noise-resistant way to identify pivot points (swing-points)
SOXL Trend Surge v3.0.2 – Profit-Only RunnerSOXL Trend Surge v3.0.2 – Profit-Only Runner
This is a trend-following strategy built for leveraged ETFs like SOXL, designed to ride high-momentum waves with minimal interference. Unlike most short-term scalping scripts, this model allows trades to develop over multiple days to even several months, capitalizing on the full power of extended directional moves — all without using a stop-loss.
🔍 How It Works
Entry Logic:
Price is above the 200 EMA (long-term trend confirmation)
Supertrend is bullish (momentum confirmation)
ATR is rising (volatility expansion)
Volume is above its 20-bar average (liquidity filter)
Price is outside a small buffer zone from the 200 EMA (to avoid whipsaws)
Trades are restricted to market hours only (9 AM to 2 PM EST)
Cooldown of 15 bars after each exit to prevent overtrading
Exit Strategy:
Takes partial profit at +2× ATR if held for at least 2 bars
Rides the remaining position with a trailing stop at 1.5× ATR
No hard stop-loss — giving space for volatile pullbacks
⚙️ Strategy Settings
Initial Capital: $500
Risk per Trade: 100% of equity (fully allocated per entry)
Commission: 0.1%
Slippage: 1 tick
Recalculate after order is filled
Fill orders on bar close
Timeframe Optimized For: 45-minute chart
These parameters simulate an aggressive, high-volatility trading model meant for forward-testing compounding potential under realistic trading costs.
✅ What Makes This Unique
No stop-loss = fewer premature exits
Partial profit-taking helps lock in early wins
Trailing logic gives room to ride large multi-week moves
Uses strict filters (volume, ATR, EMA bias) to enter only during high-probability windows
Ideal for leveraged ETF swing or position traders looking to hold longer than the typical intraday or 2–3 day strategies
⚠️ Important Note
This is a high-risk, high-reward strategy meant for educational and testing purposes. Without a stop-loss, trades can experience deep drawdowns that may take weeks or even months to recover. Always test thoroughly and adjust position sizing to suit your risk tolerance. Past results do not guarantee future returns. Backtest range: May 8, 2020 – May 23, 2025
True Momentum IndexTrue Momentum Index (TMI)  — Precision Trading by Trading_Tomm
The  True Momentum Index (TMI)  is a cutting-edge technical indicator developed for traders who demand accuracy, clarity, and consistency across all market conditions. Designed by  Trading_Tomm , this indicator provides a reliable method to identify high-probability entry and exit points by analyzing real-time momentum shifts and volatility levels.
Key Benefits:
1. Multi-Timeframe Versatility: Whether you're scalping on a 1-minute chart or investing on the weekly, TMI adapts seamlessly to your strategy. 
2. Enhanced Risk Management: By highlighting optimal trade zones, TMI helps improve your reward-to-risk ratio and reduce exposure to false signals.
3. Clear Trend Detection: Instantly distinguish between trending, ranging, or consolidating markets.
4. Breakout Confirmation: Spot true breakout opportunities with confidence, supported by Bollinger Band overlays.
5. Universal Applicability: Works effectively with stocks, forex, cryptocurrency, commodities, and indices.
TMI’s intuitive visual presentation and precision signals make it an essential tool for both new and experienced traders. Whether you're trading volatile crypto markets or steady equities, the True Momentum Index gives you the edge to trade with discipline, clarity, and confidence.
Start using the True Momentum Index and take your trading strategy to the next level -maximize potential, minimize uncertainty.
Liquidity ZonesWhat It Does:
Liquidity Zones identifies key areas where institutional traders target stop orders. The indicator automatically detects significant price swings and maps the upper and lower wick zones where liquidity pools form. These zones represent high-probability areas where price is likely to return to collect stop orders before continuing its next move.
How To Use:
Identify Key Zones:
-Red zones highlight Buy Side Liquidity (resistance areas)
-Green zones highlight Sell Side Liquidity (support areas)
Trading Opportunities:
-Enter trades when price respects these zones
-Watch for zone breaks and re-tests for continuation signals
-Use alerts to notify you when price enters a zone or when new zones form
Optimization Tips:
-Adjust lookback periods based on volatility (higher for calmer markets)
-Enable auto-threshold for adaptive sensitivity to market conditions (default setting)
-Most effective on timeframes 4H and above
The indicator tracks when zones are broken and automatically removes them when price returns, providing a clean, uncluttered view of the most relevant liquidity areas on your chart.
UNITED TRADING COMMUNITY WaterMarkWATER MARK indicator. Will allow you to improve the order of the entries you need on the chart.
1. Name and date for the traded instrument
2. Watermarks to protect your charts (in the center and around the perimeter of the chart)
3. The new "notes" option will allow you to keep focus on the factors that are important to you on the chart.
Very flexible settings for any notes, labels, watermarks on the chart that are important to you.
Индикатор WATER MARK . Даст возможность вам улучшить порядок нужных вам записей на графике.
1. Название и дата для торгуемого инструмента
2. Водные знаки для защиты ваших графиков ( в центре и по периметру графика)
3. Новая опция "заметки" позволит вам держать фокус на важных для вас факторах на графике.
Очень гибкая настройка , любых значимых для вас заметок , лейблов , вотермарк на графике.
Multi-Indicator Swing [TIAMATCRYPTO]v6# Strategy Description:
## Multi-Indicator Swing  
This strategy is designed for swing trading across various markets by combining multiple technical indicators to identify high-probability trading opportunities. The system focuses on trend strength confirmation and volume analysis to generate precise entry and exit signals.
### Core Components:
- **Supertrend Indicator**: Acts as the primary trend direction filter with optimized settings (Factor: 3.0, ATR Period: 10) to balance responsiveness and reliability.
- **ADX (Average Directional Index)**: Confirms the strength of the prevailing trend, filtering out sideways or choppy market conditions where the strategy avoids taking positions.
- **Liquidity Delta**: A volume-based indicator that analyzes buying and selling pressure imbalances to validate trend direction and potential reversals.
- **PSAR (Optional)**: Can be enabled to add additional confirmation for trend changes, turned off by default to reduce signal filtering.
### Key Features:
- **Flexible Direction Trading**: Choose between long-only, short-only, or bidirectional trading to adapt to market conditions or account restrictions.
- **Conservative Risk Management**: Implements fixed percentage-based stop losses (default 2%) and take profits (default 4%) for a positive risk-reward ratio.
- **Realistic Backtesting Parameters**: Includes commission (0.1%) and slippage (2 points) to reflect real-world trading conditions.
- **Visual Signals**: Clear buy/sell arrows with customizable sizes for easy identification on the chart.
- **Information Panel**: Dynamic display showing active indicators and current risk settings.
### Best Used On:
Daily timeframes for cryptocurrencies, forex, or stock indices. The strategy performs optimally on assets with clear trending behavior and sufficient volatility.
### Default Settings:
Optimized for conservative position sizing (5% of equity per trade) with an initial capital of $10,000. The backtesting period (2021-2023) provides a statistically significant sample of varied market conditions.
SwingTrade VWAP Strategy[TiamatCrypto]V1.1This Pine Script® code creates a trading strategy called "SwingTrade VWAP Strategy   V1.1." This strategy incorporates various trading tools, such as VWAP (Volume Weighted Average Price), ADX (Average Directional Index), and volume signals. Below is an explanation of the components and logic within the script:
### Overview of Features
- **VWAP:** A volume-weighted moving average that assesses price trends relative to the VWAP level.
- **ADX:** A trend strength indicator that helps confirm the strength of bullish or bearish trends.
- **Volume Analysis:** Leverages volume data to gauge momentum and identify volume-weighted buy/sell conditions.
- **Dynamic Entry/Exit Signals:** Combines the above indicators to produce actionable buy/sell or exit signals.
- **Customizable Inputs:** Inputs for tuning parameters like VWAP period, ADX thresholds, and volume sensitivity.
---
### **Code Breakdown**
#### **Input Parameters**
The script begins by defining several user-configurable variables under groups. These include indicators' on/off switches (`showVWAP`, `enableADX`, `enableVolume`) and input parameters for VWAP, ADX thresholds, and volume sensitivity:
- **VWAP Period and Threshold:** Controls sensitivity for VWAP signal generation.
- **ADX Settings:** Allows users to configure the ADX period and strength threshold.
- **Volume Ratio:** Detects bullish/bearish conditions based on relative volume patterns.
---
#### **VWAP Calculation**
The script calculates VWAP using the formula:
\ 
Where `P` is the typical price (`(high + low + close)/3`) and `V` is the volume.
- It resets cumulative values (`sumPV` and `sumV`) at the start of each day.
- Delta percentage (`deltaPercent`) is calculated as the percentage difference between the close price and the VWAP.
---
#### **Indicators and Signals**
1. **VWAP Trend Signals:**
   - Identifies bullish/bearish conditions based on price movement (`aboveVWAP`, `belowVWAP`) and whether the price is crossing the VWAP level (`crossingUp`, `crossingDown`).
   - Also detects rising/falling delta changes based on the VWAP threshold.
2. **ADX Calculation:**
   - Calculates the directional movement (`PlusDM`, `MinusDM`) and smoothed values for `PlusDI`, `MinusDI`, and `ADX`.
   - Confirms strong bullish/bearish trends when ADX crosses the defined threshold.
3. **Volume-Based Signals:**
   - Evaluates the ratio of bullish volume (when `close > VWAP`) to bearish volume (when `close < VWAP`) over a specified lookback period.
---
#### **Trade Signals**
The buy and sell signals are determined by combining conditions from the VWAP, ADX, and volume signals:
- **Buy Signal:** Triggered when price upward crossover VWAP, delta rises above the threshold, ADX indicates a strong bullish trend, and volume confirms bullish momentum.
- **Sell Signal:** Triggered under inverse conditions.
- Additionally, exit conditions (`exitLong` and `exitShort`) are based on VWAP crossovers combined with the reversal of delta values.
---
#### **Plotting and Display**
The strategy plots VWAP on the chart and adds signal markers for:
- **Buy/Long Entry:** Green triangle below bars.
- **Sell/Short Entry:** Red triangle above bars.
- **Exit Signals:** Lime or orange "X" shapes for exits from long/short positions.
- Additionally, optional text labels are displayed to indicate the type of signal.
---
#### **Trading Logic**
The script's trading logic executes as follows:
- **Entries:**
   - Executes long trades when the `buySignal` condition is true.
   - Executes short trades when the `sellSignal` condition is true.
- **Exits:**
   - Closes long positions upon `exitLong` conditions.
   - Closes short positions upon `exitShort` conditions.
- The strategy calculates profits and visualizes the trade entry, exit, and running profit within the chart.
---
#### **Alerts**
Alerts are set up to notify traders via custom signals for buy and sell trades.
---
### **Use Case**
This script is suitable for day traders, swing traders, or algorithmic traders who rely on confluence signals from VWAP, ADX, and volume momentum. Its modular structure (e.g., the ability to enable/disable specific indicators) makes it highly customizable for various trading styles and financial instruments.
#### **Customizability**
- Adjust VWAP, ADX, and volume sensitivity levels to fit unique market conditions or asset classes.
- Turn off specific criteria to focus only on VWAP or ADX signals if desired.
#### **Caution**
As with all trading strategies, this script should be used for backtesting and analysis before live implementation. It's essential to validate its performance on historical data while considering factors like slippage and transaction costs.
Apex Edge - MTF Confluence PanelApex Edge – MTF Confluence Panel
Description:
The Apex Edge – MTF Confluence Panel is a powerful multi-timeframe analysis tool built to streamline trade decision-making by aggregating key confluences across three user-defined timeframes. The panel visually presents the state of five core market signals—Trend, Momentum, Sweep, Structure, and Trap—alongside a unified Score column that summarizes directional bias with clarity.
Traders can customize the number of bullish/bearish conditions required to trigger a score signal, allowing the tool to be tailored for both conservative and aggressive trading styles. This script is designed for those who value a clean, structured, and objective approach to identifying market alignment—whether scalping or swing trading.
How it Works:
Across each of the three selected timeframes, the panel evaluates:
Trend: Based on a user-configurable Hull Moving Average (HMA), the script compares price relative to trend to determine bullish, bearish, or neutral bias.
Momentum: Uses OBV (On-Balance Volume) with volume spike detection to identify bursts of strong buying or selling pressure.
Sweep: Detects potential liquidity grabs by identifying price rejections beyond prior swing highs/lows. A break below a previous low with reversal signals bullish intent (and vice versa for bearish).
Structure: Uses dynamic pivot-based logic to identify market structure breaks (BOS) beyond recent confirmed swing levels.
Trap: Flags potential false moves by measuring RSI overbought/oversold signal clusters combined with minimal price movement—highlighting exhaustion or deceptive breaks.
Score: A weighted consensus of the above components. The number of required confluences to trigger a score (default: 3) can be set by the user via input, offering flexibility in signal sensitivity.
Why It’s Useful for Traders:
Quick Decision-Making: The color-coded panel provides instant visual feedback on whether confluences align across timeframes—ideal for fast-paced environments like scalping or high-volatility news sessions.
Multi-Timeframe Confidence: Helps eliminate guesswork by confirming whether higher and lower timeframe conditions support your trade idea.
Customizability: Adjustable confluence threshold means traders can fine-tune how sensitive the system is—more signals for faster entries, stricter confluence for higher conviction trades.
Built-In Alerts: Automated alerts for score alignment, trap detection, and liquidity sweeps allow traders to stay informed even when away from the screen.
Strategic Edge: Supports directional bias confirmation and trade filtering with logic designed to mimic professional decision-making workflows.
Features:
Clean, real-time confluence table across three user-selected timeframes
Configurable score sensitivity via “Minimum Confluences for Score” input
Cell-based colour coding for at-a-glance trade direction
Built-in alerts for score alignment, traps, and sweep triggers
Note - This Indicator works great in sync with Apex Edge - Session Sweep Pro
Useful levels for TP  = previous session high/low boxes or fib levels.
⚠️ Disclaimer:
This script is for informational and educational purposes only and should not be considered financial advice. Always perform your own due diligence and practice proper risk management when trading.
Suvorov Pro SFP+Indicator: Logic-based Swing Failure Pattern (SFP) 
What is the logic of my indicator based on and what makes it unique:
1. The indicator can calculate extreme candles that close with huge shadows and a small body and it works on any timeframe.
2. The indicator analyzes the volumes on which the desired bar was closed. This function is customizable. That is, you can build a search for signals according to your trading strategy, based on the number of volumes. What does this mean - you select the number of previous bars where the indicator calculates the average value and based on these numbers, you can set up: how many times the desired candle should be larger than the previous average volume.
3. Since SFP is based on the removal of important liquidity, the search for such situations occurs from swing structures (swing high/low). When these parameters are found on the chart (on history), the indicator draws the situation and shows where important liquidity was removed and why the trading situation appeared right now.
4. The indicator gives recommendations on possible takes and stops.
The structure of takes has a built-in logic for searching for previous swings to remove liquidity, as well as searching for imbalances to cover them (50 and 100%).
5. For TP (Take Profit): there are 3 TPthat can be adjusted to your trading strategy (Risk/Profit). For example: you always trade from 2 to 1 on the 1st Take, 3 to 1 on the second, 5 to 1 on the third: you can set all this in the indicator and all your targets will be detected by the indicator, taking into account the logic of searching for important ranges. If, for example, in your 3 to 1 range there are no important zones for TP, then the indicator writes that NaN (not found).
6. The indicator works on any timeframe.
7. The indicator has a built-in RSI logic, which comes as an additional function to the indicator. If this function is enabled, then trading situations are detected only when there is a divergence (from the swing point to the extreme bar that has formed). 
Parsifal.Swing.TrendScoreThe  Parsifal.Swing.TrendScore  indicator is a module within the Parsifal Swing Suite, which includes a set of swing indicators such as:
•	Parsifal Swing TrendScore
•	Parsifal Swing Composite
•	Parsifal Swing RSI
•	Parsifal Swing Flow
Each module serves as an indicator facilitating judgment of the current swing state in the underlying market.
________________________________________
 Background 
Market movements typically follow a time-varying trend channel within which prices oscillate. These oscillations—or swings—within the trend are inherently tradable.
They can be approached:
•	One-sidedly, aligning with the trend (generally safer), or
•	Two-sidedly, aiming to profit from mean reversions as well.
Note: Mean reversions in strong trends often manifest as sideways consolidations, making one-sided trades more stable.
________________________________________
 The Parsifal Swing Suite 
The modules aim to provide additional insights into the swing state within a trend and offer various trigger points to assist with entry decisions.
All modules in the suite act as weak oscillators, meaning they fluctuate within a range but are not bounded like true oscillators (e.g., RSI, which is constrained between 0% and 100%).
________________________________________
 The Parsifal.Swing.TrendScore – Specifics 
The Parsifal.Swing.TrendScore module combines short-term trend data with information about the current swing state, derived from raw price data and classical technical indicators. It provides an indication of how well the short-term trend aligns with the prevailing swing, based on recent market behavior.
________________________________________
 How Swing.TrendScore Works 
The Swing.TrendScore calculates a swing score by collecting data within a bin (i.e., a single candle or time bucket) that signals an upside or downside swing. These signals are then aggregated together with insights from classical swing indicators.
Additionally, it calculates a short-term trend score using core technical signals, including:
•	The Z-score of the price's distance from various EMAs
•	The slope of EMAs
•	Other trend-strength signals from additional technical indicators
These two components—the swing score and the trend score—are then combined to form the Swing.TrendScore indicator, which evaluates the short-term trend in context with swing behavior.
________________________________________
 How to Interpret Swing.TrendScore 
The trend component enhances Swing.TrendScore’s ability to provide stronger signals when the short-term trend and swing state align.
It can also override the swing score; for example, even if a mean reversion appears to be forming, a dominant short-term trend may still control the market behavior.
This makes Swing.TrendScore particularly valuable for:
•	Short-term trend-following strategies
•	Medium-term swing trading
Unlike typical swing indicators, Swing.TrendScore is designed to respond more to medium-term swings rather than short-lived fluctuations.
________________________________________
 Behavior and Chart Representation 
The Swing.TrendScore indicator fluctuates within a range, as most of its components are range-bound (though Z-score components may technically extend beyond).
•	Historically high or low values may suggest overbought or oversold conditions
•	The chart displays:
o	A fast curve (orange)
o	A slow curve (white)
o	A shaded background representing the market state
•	Extreme values followed by curve reversals may signal a developing mean reversion
________________________________________
 TrendScore Background Value 
The Background Value reflects the combined state of the short-term trend and swing:
•	> 0 (shaded green) → Bullish mode: swing and short-term trend both upward
•	< 0 (shaded red) → Bearish mode: swing and short-term trend both downward
•	The absolute value represents the confidence level in the market mode
Notably, the Background Value can remain positive during short downswings if the short-term trend remains bullish—and vice versa.
________________________________________
 How to Use the Parsifal.Swing.TrendScore 
Several change points can act as entry triggers or aids:
•	Fast Trigger: change in slope of the fast signal curve
•	Trigger: fast line crosses slow line or the slope of the slow signal changes
•	Slow Trigger: change in sign of the Background Value
Examples of these trigger points are illustrated in the accompanying chart.
Additionally, market highs and lows aligning with the swing indicator values may serve as pivot points in the evolving price process.
________________________________________
As always, this indicator should be used in conjunction with other tools and market context in live trading.
While it provides valuable insight and potential entry points, it does not predict future price action.
Instead, it reflects recent tendencies and should be used judiciously.
________________________________________
 Extensions 
The aggregation of information—whether derived from bins or technical indicators—is currently performed via simple averaging. However, this can be modified using alternative weighting schemes, based on:
•	Historical performance
•	Relevance of the data
•	Specific market conditions
Smoothing periods used in calculations are also modifiable. In general, the EMAs applied for smoothing can be extended to reflect expectations based on relevance-weighted probability measures.
Since EMAs inherently give more weight to recent data, this allows for adaptive smoothing.
Additionally, EMAs may be further extended to incorporate negative weights, akin to wavelet transform techniques.
Parsifal.Swing.CompositeThe  Parsifal.Swing.Composite  indicator is a module within the Parsifal Swing Suite, which includes a set of swing indicators such as:
•	Parsifal Swing TrendScore
•	Parsifal Swing Composite
•	Parsifal Swing RSI
•	Parsifal Swing Flow
Each module serves as an indicator facilitating judgment of the current swing state in the underlying market.
________________________________________
 Background 
Market movements typically follow a time-varying trend channel within which prices oscillate. These oscillations—or swings—within the trend are inherently tradable.
They can be approached:
•	One-sidedly, aligning with the trend (generally safer), or
•	Two-sidedly, aiming to profit from mean reversions as well.
Note: Mean reversions in strong trends often manifest as sideways consolidations, making one-sided trades more stable.
________________________________________
 The Parsifal Swing Suite 
The modules aim to provide additional insights into the swing state within a trend and offer various trigger points to assist with entry decisions.
All modules in the suite act as weak oscillators, meaning they fluctuate within a range but are not bounded like true oscillators (e.g., RSI, which is constrained between 0% and 100%).
________________________________________
 The Parsifal.Swing.Composite – Specifics 
This module consolidates multiple insights into price swing behavior, synthesizing them into an indicator reflecting the current swing state.
It employs layered bagging and smoothing operations based on standard price inputs (OHLC) and classical technical indicators. The module integrates several slightly different sub-modules.
Process overview:
1.	Per candle/bin, sub-modules collect directional signals (up/down), with each signal casting a vote.
2.	These votes are aggregated via majority counting (bagging) into a single bin vote.
3.	Bin votes are then smoothed, typically with short-term EMAs, to create a sub-module vote.
4.	These sub-module votes are aggregated and smoothed again to generate the final module vote.
The final vote is a score indicating the module’s assessment of the current swing state. While it fluctuates in a range, it's not a true oscillator, as most inputs are normalized via Z-scores (value divided by standard deviation over a period).
•	Historically high or low values correspond to high or low quantiles, suggesting potential overbought or oversold conditions.
•	The chart displays a fast (orange) and slow (white) curve against a solid background state.
•	Extreme values followed by curve reversals may signal upcoming mean-reversions.
 Background Value: 
•	Value > 0: shaded green → bullish mode
•	Value < 0: shaded red → bearish mode
•	The absolute value indicates confidence in the mode.
________________________________________
 How to Use the Parsifal.Swing.Composite 
Several change points in the indicator serve as potential entry triggers:
•	Fast Trigger: change in slope of the fast curve
•	Trigger: fast line crossing the slow line or change in the slow curve’s slope
•	Slow Trigger: change in sign of the background value
These are illustrated in the introductory chart.
Additionally, market highs and lows aligned with swing values may act as pivot points, support, or resistance levels for evolving price processes.
________________________________________
As always, supplement this indicator with other tools and market information. While it provides valuable insights and potential entry points, it does not predict future prices. It reflects recent tendencies and should be used judiciously.
________________________________________
 Extensions 
All modules in the Parsifal Swing Suite are simple yet adaptable, whether used individually or in combination.
Customization options:
•	Weights in EMAs for smoothing are adjustable
•	Bin vote aggregation (currently via sum-of-experts) can be modified
•	Alternative weighting schemes can be tested
Advanced options:
•	Bagging weights may be historical, informational, or relevance-based
•	Selection algorithms (e.g., ID3, C4.5, CAT) could replace the current bagging approach
•	EMAs may be generalized into expectations relative to relevance-based probability
•	Negative weights (akin to wavelet transforms) can be incorporated
PEAD strategy█  OVERVIEW 
This strategy trades the classic post-earnings announcement drift (PEAD).  
It goes long only when the market gaps up after a positive EPS surprise.
 
█  LOGIC 
1 —  Earnings filter  — EPS surprise >  epsSprThresh  %  
2 —  Gap filter  — first regular 5-minute bar gaps ≥  gapThresh  % above yesterday’s close  
3 —  Timing  — only the  first  qualifying gap within one trading day of the earnings bar  
4 —  Momentum filter  — last  perfDays  trading-day performance is positive  
5 —  Risk management   
  • Fixed stop-loss:  stopPct  % below entry  
  • Trailing exit: price < Daily EMA( emaLen )
█  INPUTS 
•  Gap up threshold (%)  — 1 (gap size for entry)  
•  EPS surprise threshold (%)  — 5 (min positive surprise)  
•  Past price performance  — 20 (look-back bars for trend check)
•  Fixed stop-loss (%)  — 8 (hard stop distance)  
•  Daily EMA length  — 30 (trailing exit length)  
 Note  — Back-tests fill on the second 5-minute bar (Pine limitation).  
Live trading: enable  calc_on_every_tick=true  for first-tick entries.
────────────────────────────────────────────
█  概要(日本語) 
本ストラテジーは決算後の PEAD を狙い、  
 EPS サプライズがプラス  かつ  寄付きギャップアップ  が発生した銘柄をスイングで買い持ちします。
█  ロジック 
1 —  決算フィルター  — EPS サプライズ >  epsSprThresh  %  
2 —  ギャップフィルター  — レギュラー時間最初の 5 分足が前日終値+ gapThresh  %以上  
3 —  タイミング  — 決算当日または翌営業日の最初のギャップのみエントリー  
4 —  モメンタムフィルター  — 過去  perfDays  営業日の騰落率がプラス  
5 —  リスク管理   
  • 固定ストップ:エントリー −  stopPct  %  
  • 利確:終値が日足 EMA( emaLen ) を下抜け
█  入力パラメータ 
•  Gap up threshold (%)  — 1 (ギャップ条件)  
•  EPS surprise threshold (%)  — 5 (EPS サプライズ最小値)  
•  Past price performance  — 20 (パフォーマンス判定日数)
•  Fixed stop-loss (%)  — 8 (固定ストップ幅)  
•  Daily EMA length  — 30 (利確用 EMA 期間)  
 注意  — Pine の仕様上、バックテストでは寄付き 5 分足の次バーで約定します。  
実運用で寄付き成行に合わせたい場合は  calc_on_every_tick=true  を有効にしてください。
────  
ご意見や質問があればお気軽にコメントください。  
Happy trading!  
MastersCycleSignal(Mastersinnifty)Overview 
MastersCycleSignal is a high-precision market timing and projection indicator for trend-following and swing traders.
It combines an adaptive cycle detection algorithm, forward-looking sine wave projections, dynamic momentum confirmation, and Gann Square of 9-based geometric targets into a complete structured trading framework.
The script continuously analyzes price oscillations to detect dominant cycles, projects expected price behavior with future-facing sine approximations, and generates buy/sell signals once confirmed by adaptive momentum filtering.
Upon confirmation, it calculates mathematically consistent Gann-based target levels and risk-managed stop-loss suggestions.
Users also benefit from auto-extending targets as price action unfolds — helping traders anticipate rather than react to market shifts.
---
 Uniqueness 
MastersCycleSignal stands apart through a unique fusion of techniques:
- Dynamic Cycle Detection
    - Detects dominant cycles using a cosine correlation maximization method between detrended price (close minus SMA) and theoretical cosine curves, dynamically recalibrated across a sliding window.
- Sine Wave Future Projection
    - Smooths and projects future price paths by approximating a forward sine wave based on the real-time detected dominant cycle.
- Adaptive Momentum Filtering
    - Volatility is scaled by divergence between normalized returns and a 5-period EMA, further adjusted by an RSI(2) factor.
    - This makes buy/sell signal confirmation robust against noise and false breakouts.
- Gann-Based Target Computation
    - Uses a square-root transformation of price, incremented by selectable Gann Square of 9 degrees, for calculating progressive and dynamically expanding price targets.
- Auto-Extending Targets
    - As price achieves a projected target, the system automatically draws subsequent new targets based on the prior target differential — providing continuous guidance in trending conditions.
---
 Usefulness 
MastersCycleSignal is built to help traders:
- Identify early trend reversals through cycle shifts.
- Forecast probable price paths in advance.
- Plan systematic target and stop-loss zones with geometric accuracy.
- Reduce guesswork in trend-following and swing trading.
- Maintain structured discipline across intraday, swing, and positional strategies.
It works seamlessly across stocks, indices, forex, commodities, and crypto markets — on any timeframe.
---
 How to Use 
- Attach the indicator to your desired chart.
- When a Buy Signal or Sell Signal appears (green or red markers):
    - Use the attached stop-loss labels to manage risk.
    - Monitor the automatically plotted target lines for partial exits or full profits.
- The orange projected sine wave illustrates the expected future market path.
- Customization Options:
    - Cycle Detection Length — adjust to fine-tune cycle sensitivity.
    - Projection Length — modify the forward distance of sine wave forecast.
    - Gann Square of 9 Degrees — personalize target increments.
    - Toggle Signals and Target visibility as needed.
---
 Disclaimer 
- MastersCycleSignal uses no future data or lookahead bias.
- All projections are based on geometric extrapolations from historical price action — not guaranteed predictions.
- Trading involves risks, and historical cycle behavior may differ in future conditions.






















