The LEAP Contest - Symbol & Max Position Table TrackerDescription:
This indicator tracks the maximum contracts allowed to be traded for TradingView’s *"The Leap"* Contest. It displays a horizontal table at the bottom right of your chart showing up to 20 symbols along with their maximum allowable open contract positions.
Use case:
Designed specifically for traders participating in *The Leap* Contest on TradingView.
Users need to enter the symbol and the maximum contracts allowed for that symbol in the settings menu for each new contest.
It provides a quick reference to ensure compliance with contest rules on maximum position sizes.
How it works:
The table shows two rows: the top row displays the symbol name, and the bottom row shows the max contract limit.
If the currently loaded chart symbol matches any symbol in the list, its text color changes to yellow .
Customization:
Symbols and limits must be updated in the indicator’s settings before each contest to reflect the current rules.
Multitimeframe
Support and Resistance MTFSupport and Resistance MTF
Support and Resistance MTF is a powerful tool that automatically detects and visualizes key support and resistance levels based on pivot highs and lows, using a higher timeframe of your choice. It is designed for traders who focus on price action and market structure, and want an adaptive, clean, and customizable indicator that helps identify important market zones.
The script uses configurable pivot logic to identify levels, with user-defined parameters for pivot strength and timeframe. Once a support or resistance level is detected, it is displayed on the chart either as a horizontal line, a shaded box, or both, depending on your display settings. You can fully customize the visual appearance including color, transparency, and line thickness. Levels are automatically extended into the future, and optionally into the past, to give better context.
Each level is monitored for breakout behavior. If price breaks through a level, it can change its role — a former resistance may become support, and vice versa. After a certain number of breakouts (which you define), the level is considered invalid and is automatically removed from the chart. This helps to maintain a clean visual layout and ensures only relevant levels are shown.
The indicator supports multi-timeframe analysis, allowing you to overlay higher-timeframe structure directly on your lower-timeframe trading chart. It is also compatible with Heikin Ashi candles internally for reference, without affecting your main chart type.
Support and Resistance MTF is ideal for traders looking to align intraday setups with higher-timeframe zones, manage risk around structural levels, or simply highlight market turning points in a clear and automated way. Built with Pine Script v5 and optimized for performance, it is both powerful and lightweight.
⚙️ Input Parameters – Description
[Time-Frame
Defines the higher timeframe used for detecting support and resistance levels. For example, you can set this to 1h, 4h, or D to visualize significant levels from a broader market perspective on a lower-timeframe chart.
Left / Right (Pivot Left / Pivot Right)
These parameters control the sensitivity of the pivot detection. A pivot high/low is confirmed if it is higher/lower than the defined number of candles to its left and right. Higher values reduce noise but may miss smaller turning points.
Extend Left
When enabled, the drawn levels (lines and/or boxes) are extended to the left side of the chart, allowing you to see the historical alignment of these levels.
Max Breaks Before Delete
Defines how many times a level can be broken by price before it is removed from the chart. This helps to avoid clutter from outdated or invalidated levels and keeps your chart relevant to current price action.
Draw Lines Only
If enabled, the indicator will draw only horizontal lines for support and resistance zones, omitting the colored background boxes. Useful for a cleaner chart appearance.
Line Width Broken Level
Sets the thickness of the support/resistance lines. Thicker lines can emphasize key levels, especially after a breakout.
Transparency Boxes
Controls the transparency (0–100) of the background boxes representing the zones. A higher value makes the boxes more transparent, lower values make them more opaque.
Transparency Lines
Controls the transparency (0–100) of the horizontal support and resistance lines. This allows for visual fine-tuning based on chart background and personal preference.
Support (Color, Group: Display)
Lets you choose the color used for support zones and lines. By default, it's green, but you can change it to fit your theme or visual preference.
Resistance (Color, Group: Display)
Defines the color for resistance zones and lines. The default is red, but it can be customized freely.
MÈGAS ALGO : MÈGAS Signals [INDICATOR]Overview
The MÈGAS Signals is a cutting-edge, multi-functional trading tool designed for advanced traders seeking to identify high-probability trade setups. This script combines price action analysis, machine learning techniques, and real-time signal generation across multiple timeframes to provide actionable insights. The indicator is optimized for both bullish and bearish market conditions and includes features like backtesting metrics, take-profit tools, and customizable alerts.
Key Features
1. Machine Learning and Statistical Clustering
The script implements the K-Means clustering algorithm , a widely used unsupervised machine learning technique, to segment historical price movements into distinct clusters based on magnitude and distribution characteristics. These clusters represent quantized levels of bullish and bearish momentum, enabling the system to adaptively model market behavior across varying volatility regimes.
By applying this statistical clustering approach to real-time price data, the algorithm dynamically identifies meaningful thresholds for key Smart Money Concepts (SMC) such as Break of Structure (BOS) and Change of Character (CHOCH) . This integration enhances classical SMC logic with a data-driven, self-adjusting mechanism that responds to evolving market conditions, effectively bridging traditional price action analysis with modern machine learning methodologies.
2.Multi-Timeframe Table:
A dynamic, real-time multi-timeframe table displayed on the chart that provides at-a-glance insight into:
-Current trend or signal status per timeframe
-Percentage price change relative to the previous bar
-Countdown to the next bar open , updated every second
This table empowers traders with cross-timeframe context , helping them identify confluence, reversals, or divergences across multiple horizons — from scalping (1m) to long-term trends (1D).
3.Dynamic Trailing Stops with Enhanced Visualization
The dynamic trailing stop mechanism adjusts based on volatility clusters, ensuring tighter risk
management during low-volatility periods and wider stops during high-volatility phases.
The feed speed feature enhances visualization by adjusting the transparency of candle
coloring relative to the trailing stop. This makes it easier to interpret trend strength and
momentum, allowing traders to stay ahead of price action.
4.Customizable Alerts for Seamless Execution
Sublimia Signals offers highly customizable alerts that can be tailored to specific timeframes
and trading preferences.
With the intra-bar calculation feature, alerts can be triggered on every tick rather than just
on bar close, empowering traders to act swiftly in fast-moving markets.
Personalized alert messages allow you to create clear and concise notifications for entry and
exit points, streamlining your trading workflow.
5.Comprehensive Backtesting Metrics
The built-in performance metrics table provides detailed backtesting results, including total
trades, win rates, cumulative profit/loss, profit factor, best profit, and worst loss for both
long and short positions.
These metrics enable traders to evaluate the effectiveness of their strategies and optimize
input parameters for better performance.
6.Non-Standard Candle Integration for Smoother Price Action Analysis
The optional Non-Standard Candle toggle allows users to switch between "Traditional", "Heikin-Ashi", "Volume-Weighted" and "Hybrid" candles.
This feature is particularly useful for identifying trends and filtering out market noise, while
backtesting remains based on normal candles to ensure accuracy.
7.Intra-Bar Calculation for Granular Insights
When enabled, the intra-bar calculation feature provides granular insights into price
movements within each bar, offering traders a deeper understanding of market dynamics.
This feature also modifies the algorithm's logic, triggering alerts on every tick rather than just
on bar close, making it ideal for scalpers and day traders who need ultra-responsive tools.
8.Take-Profit/Trailing-Profit Tools: Precision and Flexibility
This feature allows you to set multiple profit levels with customizable percentage
distances, giving you unparalleled control over your trades.
Selectable Type of exit mode : Take-Profit or Trailing-Profit.
Selectable Number of Profit Levels: Define as many profit targets as you need,
ensuring you can capture profits at different stages of price movement.
Percentage-Based Distance: Set each profit level based on a percentage distance from
your entry point. This ensures precise positioning tailored to your risk-reward preferences.
Integrated Alerts: Never miss an opportunity! The tool includes built-in alerts that notify you
when each take-profit level is reached, keeping you informed in real-time.
9.Optimized Visualization
The script ensures optimized visualization of trend strength through smooth transitions in
candle transparency, making it easier to interpret market momentum.
The feed speed parameter calculates how quickly the candle coloring adjusts relative to the
trailing stop, enhancing clarity and decision-making.
How it work
Identify the Primary Trend Using Multi-Timeframe Analysis :
Focus on Higher Timeframes : Start by analyzing the 4h, 8h, or 24h timeframes to determine the primary trend. These higher timeframes provide a clearer picture of long-term momentum.
The built-in table provides real-time updates across all primarly timeframes. Look for confluence—when multiple timeframes align in the same direction.
Confirm Entry Points Using Lower Timeframes :
Fine-Tune Entries with Shorter Timeframes : Once you’ve identified the primary trend, use lower timeframes (e.g., 1m, 5m, or 15m ) to confirm entry points.
Set Take-Profit Levels Based on Percentage Distances :
Customizable Take-Profit Tools : Use the take-profit feature to set multiple levels based on percentage distances from your entry point.
Use Customizable Alerts for Real-Time Updates :
Enable alerts for specific timeframes (e.g., 4h, 8h, 15m) to stay informed about changes in the primary trend or short-term opportunities.
For fast-moving markets, enable the intra-bar calculation feature to receive alerts on every tick, ensuring you don’t miss critical entries or exits.
Backtesting for Strategy Optimization :
Performance Metrics : Use the backtesting metrics table to evaluate how well your trend-following strategy performs over time. Analyze win rates, profit factor, and best/worst trades to refine your approach.
Adjust Inputs : Fine-tune settings like slippage and commission(%) to optimize the indicator for your prefer pair.
Please Note:
This indicator is provided for informational and educational purposes only. It is not financial advice, and it should not be considered a recommendation to buy, sell, or trade any financial instrument. Trading involves significant risks, including the potential loss of your entire investment. Always conduct your own research and consult with a licensed financial advisor before making any trading decisions.
The results and images provided are based on algorithms and historical/paid real-time market data but do not guarantee future results or accuracy. Use this tool at your own risk, and understand that past performance is not indicative of future outcomes.
MirPapa:ICT:HTF: Candle OB Threeple# MirPapa:ICT:HTF: Candle OB Threeple
**Version:** Pine Script® v6
---
## Installation
1. Open TradingView’s Pine Editor.
2. Paste the entire script (including `import goodia/MirPapa_Library_ICT/3 as lib`).
3. Click **“Add to Chart”**.
---
## Inputs & Configuration
After adding to chart, open the indicator’s settings panel:
1. **Box Close Color**
- Choose the color applied when a Candle OB box is finalized (recolored).
2. **HighTF COB Settings**
- **HighTF Label:** Select a higher timeframe (e.g., “4시간” for 4H).
- **Enable HighTF COB Boxes:** Toggle drawing of HighTF boxes.
- **Enable HighTF COB Midlines:** Toggle drawing of the horizontal midpoint line inside each HighTF box.
- **HighTF COB Close Count:** Number of HTF closes beyond the box required to finalize (1–10).
- **HighTF COB Bull Color / Bear Color:** Select fill/border colors for bullish and bearish HighTF boxes.
- **HighTF Box Transparency:** Adjust box opacity (1–100).
3. **MidTF COB Settings**
- **MidTF Label:** Select a middle timeframe (e.g., “1시간” for 1H).
- **Enable MidTF COB Boxes:** Toggle drawing of MidTF boxes.
- **Enable MidTF COB Midlines:** Toggle the midpoint line inside each MidTF box.
- **MidTF COB Close Count:** Number of MidTF closes beyond the box required to finalize (1–10).
- **MidTF COB Bull Color / Bear Color:** Select fill/border colors for bullish and bearish MidTF boxes.
- **MidTF Box Transparency:** Adjust box opacity (1–100).
4. **CurrentTF COB Settings**
- **Enable CurrentTF COB Boxes:** Toggle drawing of COB boxes on the chart’s own timeframe.
- **Enable CurrentTF COB Midlines:** Toggle the midpoint line inside each CurrentTF box.
- **CurrentTF COB Close Count:** Number of closes beyond the box required to finalize (1–10).
- **COB Detection Level:** Choose pivot strength for detection (1 or 2).
- **CurrentTF COB Bull Color / Bear Color:** Select fill/border colors for bullish and bearish CurrentTF boxes.
- **CurrentTF Box Transparency:** Adjust box opacity (1–100).
---
## Display & Interpretation
- **Candle OB Boxes**
- Each box appears at the moment a reversal candle is detected on the chosen timeframe.
- Bullish boxes have the “Bull Color”; bearish boxes have the “Bear Color.”
- The midpoint line (if enabled) is drawn across the box’s center.
- **Box Extension**
- Once created, each box extends to the right on every new bar of the chart.
- You will see the box tracking along with price until it is finalized.
- **Box Finalization (Recoloring)**
- After the specified number of closes beyond the candle range, the box’s border and fill change to the **Box Close Color**.
- Finalized boxes remain visible in semi-transparent form, indicating that the zone has been “tested.”
- **Multiple Timeframes**
- If HighTF, MidTF, and/or CurrentTF boxes are all enabled, you’ll see up to three separate layers of boxes (one per timeframe).
- Higher-timeframe boxes typically span more candles; MidTF and CurrentTF boxes will be narrower.
---
## Tips
- **Adjust Opacity** to avoid clutter when multiple boxes overlap.
- **Use Distinct Colors** for each timeframe to quickly differentiate HighTF vs. MidTF vs. CurrentTF.
- **Experiment with Close Count** to control how long boxes remain active before finalizing.
- **Toggle Midlines** if you prefer seeing only the box or want an added visual cue at its center.
Enjoy clear, multi-timeframe Candle Order Block visualization on your chart!
MirPapa:ICT:HTF: FVG OB Threeple# MirPapa:ICT:HTF: FVG OB (Fair Value Gap Order Block)
**Version:** Pine Script® v6
**Author:** © goodia
**License:** MPL-2.0 (Mozilla Public License 2.0)
---
## Overview
“FVG OB” (Fair Value Gap Order Block) identifies higher-timeframe candle ranges where a gap (imbalance) exists between two non-consecutive candles, signaling potential institutional order blocks. This module draws bullish or bearish FVG OB boxes on your lower-timeframe chart, extends them until price interacts a specified number of times, and then finalizes (recolors) the box.
---
## Inputs
- **Enable FVG OB Boxes** (`bool`)
Toggle drawing of HTF FVG OB boxes on the chart.
- **Enable FVG OB Midlines** (`bool`)
Toggle drawing of a midpoint line inside each FVG OB box.
- **FVG OB Close Count** (`int` 1–10)
Number of HTF closes beyond the FVG range required to finalize (recolor) the box.
- **FVG OB Bull Color** (`color`)
Fill & border color for bullish FVG OB boxes.
- **FVG OB Bear Color** (`color`)
Fill & border color for bearish FVG OB boxes.
- **FVG OB Box Transparency** (`int` 1–100)
Opacity level for FVG OB box fills (higher = more transparent).
---
## How It Works
1. **HTF Data Retrieval**
- The script uses `request.security()` (via `GetHTFrevised()`) to fetch HTF OHLC and historical values:
- `_htfHigh3` (high three bars ago) and `_htfLow1` (low one bar ago) for bullish FVG OB.
- `_htfLow3` (low three bars ago) and `_htfHigh1` (high one bar ago) for bearish FVG OB.
- It also tracks the HTF `bar_index` on the lower timeframe to align drawing.
2. **FVG OB Detection**
- **Bullish FVG OB**: Occurs when the HTF low of the previous bar (`low `) is strictly above the HTF high of three bars ago (`high `), creating a gap.
- **Bearish FVG OB**: Occurs when the HTF high of the previous bar (`high `) is strictly below the HTF low of three bars ago (`low `), creating a gap.
3. **Box Creation**
- On each new HTF bar (`ta.change(time(HTF)) != 0`), if a bullish or bearish FVG OB condition is met, the script calls `CreateBoxData()` with:
- **Bullish**: `bottom = HTF low `, `top = HTF high `, `_isBull = true`.
- **Bearish**: `bottom = HTF low `, `top = HTF high `, `_isBull = false`.
- Midline toggled by input.
- A `BoxData` struct is created and stored in either the Bull or Bear array.
4. **Box Extension & Finalization**
- On **every LTF bar**, `ProcessBoxDatas(...)` iterates over all active FVG OB boxes:
1. **Extend Right Edge**: `box.set_right(bar_index)` ensures the box follows the latest bar.
2. **Record Volume Delta**: Tracks buy/sell volume inside the box.
3. **Touch Stage Update**: `modBoxUpdateStage()` increments `_stage` when price touches its “basePoint” (for FVG OB, the basePrice is one side of the gap).
4. **Finalize**: `setBoxFinalize()` checks if the configured number of closes beyond the FVG gap (`FVG OB Close Count`) has occurred. If so:
- `_isActive := false`
- Border and background colors are changed to the “Box Close Color” (input).
- Finalized boxes remain on screen semi-transparent, indicating that the FVG OB zone has been tested.
5. **Midline (Optional)**
- If “Enable FVG OB Midlines” is checked, `ProcessBoxDatas()` also extends a horizontal midpoint line inside the box with `line.set_x2(bar_index)`.
---
## Usage Instructions
1. **Installation**
- Copy the FVG OB section of the Pine Script into TradingView’s Pine Editor (ensure the library import is included).
- Click “Add to Chart.”
2. **Configure Inputs**
- Choose a Higher Time Frame via the dropdown (e.g., “4시간” maps to a 4H timeframe).
- Toggle “Enable FVG OB Boxes” and “Enable FVG OB Midlines.”
- Select colors for bullish and bearish boxes and set transparency.
- Adjust “FVG OB Close Count” to control how many closes beyond the gap finalize the box.
3. **Interpretation**
- **Active FVG OB Boxes** extend to the right until price closes beyond the gap range the specified number of times.
- When finalized, each box changes to the “Box Close Color,” signaling that institutional orders in that gap have likely been filled.
Enjoy precise visualization of higher-timeframe Fair Value Gap Order Blocks on your lower-timeframe chart!
MirPapa:ICT:HTF: FVG Threeple# MirPapa:ICT:FVG Double HTF
**Version:** Pine Script® v6
**Author:** © goodia
**License:** MPL-2.0 (Mozilla Public License 2.0)
---
## Overview
“MirPapa:ICT:FVG Double HTF” is a TradingView indicator that identifies and visualizes Fair Value Gaps (FVG) on two higher time frames (HighTF and MidTF) simultaneously. It can also draw FVG boxes on the current chart’s time frame. When “Overlap Mode” is enabled, the indicator displays only the intersection of HighTF and MidTF FVG areas.
---
## Key Features
- **HighTF FVG**
- Detects bullish and bearish FVGs on a user-selected upper time frame (e.g., 4H).
- Draws colored boxes around gap ranges, optionally with a midpoint line.
- Automatically extends boxes on every bar and finalizes (recolors) them after a specified number of closes beyond the gap.
- **MidTF FVG**
- Same as HighTF FVG but for a second, intermediate time frame (e.g., 1H).
- Runs in parallel to HighTF logic, with separate color and transparency settings.
- **CurrentTF FVG (Optional)**
- If enabled, draws FVG boxes using the chart’s own time frame.
- Behaves identically: extends until broken by price, then finalizes.
- **Overlap Mode**
- When enabled, hides all individual HighTF and MidTF boxes.
- Instead, computes and displays only their overlapping rectangle(s)—separate for bullish and bearish gaps.
---
## Inputs & Configuration
- **Common Inputs**
- **Enable High/Mid Overlap Mode** (`boolean`): Show only overlapping HighTF + MidTF FVG areas.
- **Box Close Color** (`color`): Color applied to any FVG box when it is finalized.
- **HighTF FVG Settings**
- **HighTF Label** (`dropdown`): Choose a Korean label (e.g., “4시간”) that maps to a Pine timeframe (e.g., “240”).
- **Enable HighTF FVG Boxes** (`boolean`): Toggle drawing of HighTF FVG boxes.
- **Enable HighTF FVG Midlines** (`boolean`): Toggle midpoint line inside each HighTF box.
- **HighTF FVG Close Count** (`integer` 1–10): Number of closes beyond the gap before finalizing the box.
- **HighTF FVG Bull Color** (`color`): Fill & border color for bullish HighTF gaps.
- **HighTF FVG Bear Color** (`color`): Fill & border color for bearish HighTF gaps.
- **HighTF Box Transparency** (`integer` 1–100): Opacity level for HighTF box fills.
- **MidTF FVG Settings**
- **MidTF Label** (`dropdown`): Choose a Korean label (e.g., “1시간”) mapped to a Pine timeframe.
- **Enable MidTF FVG Boxes** (`boolean`): Toggle drawing of MidTF FVG boxes.
- **Enable MidTF FVG Midlines** (`boolean`): Toggle midpoint line inside each MidTF box.
- **MidTF FVG Close Count** (`integer` 1–10): Number of closes beyond the gap before finalizing the box.
- **MidTF FVG Bull Color** (`color`): Fill & border color for bullish MidTF gaps.
- **MidTF FVG Bear Color** (`color`): Fill & border color for bearish MidTF gaps.
- **MidTF Box Transparency** (`integer` 1–100): Opacity level for MidTF box fills.
- **CurrentTF FVG Settings**
- **Enable CurrentTF FVG Boxes** (`boolean`): Draw FVG boxes on the chart’s own timeframe.
- **Enable CurrentTF FVG Midlines** (`boolean`): Toggle midpoint line inside each CurrentTF box.
- **CurrentTF FVG Close Count** (`integer` 1–10): Number of closes beyond the gap before finalizing the box.
- **CurrentTF FVG Bull Color** (`color`): Fill & border color for bullish CurrentTF gaps.
- **CurrentTF FVG Bear Color** (`color`): Fill & border color for bearish CurrentTF gaps.
- **CurrentTF Box Transparency** (`integer` 1–100): Opacity level for CurrentTF box fills.
---
## How It Works
1. **Time Frame Conversion**
Korean labels (e.g., “4시간”, “1시간”) are converted internally to Pine timeframe strings via `GetHtfFromLabel()`.
2. **Data Retrieval**
For each chosen TF (HighTF, MidTF, and optionally CurrentTF), the script fetches OHLC and historical values using `GetHTFrevised()`.
- Tracks `bar_index` from that TF to align box drawing on the chart’s base timeframe.
3. **Box Lifecycle**
- **Creation**: On each new TF bar, if a bullish gap (`low > high `) or bearish gap (`low > high `) is detected, `CreateBoxData()` registers a new `BoxData` struct and draws an initial box.
- **Extension**: On every chart bar, `ProcessBoxDatas()` extends each active box’s right edge and updates internal “touch stage” and volume.
- **Finalization**: After the specified number of closes beyond the gap, `setBoxFinalize()` disables the box and changes its border & fill to the “Box Close Color”.
4. **Overlap Mode**
- When enabled, HighTF and MidTF boxes are not drawn individually.
- Instead, at each bar, the script iterates over all active HighTF boxes and all active MidTF boxes, computes their intersection rectangle (if any), and draws only that overlapping area (distinct handling for bullish vs. bearish gaps).
---
## Installation & Usage
1. **Copy & Paste**
Copy the entire Pine Script code into TradingView’s Pine Editor.
Click “Add to Chart.”
2. **Configure Inputs**
- Choose your HighTF and MidTF via the dropdown menus.
- Enable or disable FVG boxes/midlines for each TF.
- Adjust colors, transparency, and “Close Count” settings to taste.
- Toggle “Overlap Mode” if you only want to see common areas between HighTF and MidTF gaps.
3. **Interpretation**
- **Active Boxes** extend to the right as new bars form. When price closes beyond a gap (per “Close Count”), the box is finalized and recolored to the close color.
- In **Overlap Mode**, you’ll see only the overlapping region between HighTF and MidTF gaps, updated on every bar.
Enjoy precise FVG visualization across multiple time frames!
RSI Multi-TF TabRSI Multi-Timeframe Table 📊
A tool for multi-timeframe RSI analysis with visual overbought/oversold level highlighting.
Description
This indicator calculates the Relative Strength Index (RSI) for the current chart and displays RSI values across five additional timeframes (15m, 1h, 4h, 1d, 1w) in a dynamic table. The color-coded system simplifies identifying overbought (>70), oversold (<30), and neutral zones. Visual signals on the chart enhance analysis for the current timeframe.
Key Features
✅ Multi-Timeframe Analysis :
Track RSI across 15m, 1h, 4h, 1d, and 1w in a compact table.
Color-coded alerts:
🔴 Red — Overbought (potential pullback),
🔵 Blue — Oversold (potential rebound),
🟡 Yellow — Neutral zone.
✅ Visual Signals :
Background shading for oversold/overbought zones on the main chart.
Horizontal lines at 30 and 70 levels for reference.
✅ Customizable Settings :
Adjust RSI length (default: 14), source (close, open, high, etc.), and threshold levels.
How to Use
Table Analysis :
Compare RSI values across timeframes to spot divergences (e.g., overbought on 15m vs. oversold on D).
Use colors for quick decisions.
Chart Signals :
Blue background suggests bullish potential (oversold), red hints at bearish pressure (overbought).
Always confirm with other tools (volume, trends, or candlestick patterns).
Examples :
RSI(1h) > 70 while RSI(4h) < 30 → Possible reversal upward.
Sustained RSI(1d) above 50 may indicate a bullish trend.
Settings
RSI Length : Period for RSI calculation (default: 14).
RSI Source : Data source (close, open, high, low, hl2, hlc3, ohlc4).
Overbought/Oversold Levels : Thresholds for alerts (default: 70/30).
Important Notes
No direct trading signals : Use this as an analytical tool, not a standalone strategy.
Test strategies historically and consider market context before trading.
ALMA Shifting Band Oscillator | QuantMACALMA Shifting Band Oscillator | QuantMAC
🎯 Advanced Technical Analysis Tool Combining ALMA with Dynamic Oscillator Technology
The ALMA Shifting Band Oscillator represents a sophisticated fusion of the Arnaud Legoux Moving Average (ALMA) with an innovative oscillator-based signaling system. This indicator transforms traditional moving average analysis into a comprehensive trading solution with dynamic band visualization and precise entry/exit signals.
Core Technology 🔧
Arnaud Legoux Moving Average Foundation
Built upon the mathematically superior ALMA calculation, this indicator leverages the unique properties of ALMA's phase shift and noise reduction capabilities. The ALMA component provides a responsive yet smooth baseline that adapts to market conditions with minimal lag.
Dynamic Band System
The indicator generates adaptive upper and lower bands around the ALMA centerline using statistical deviation analysis. These bands automatically adjust to market volatility, creating a dynamic envelope that captures price extremes and potential reversal zones.
Normalized Oscillator Engine
The heart of the system transforms price action relative to the dynamic bands into a normalized oscillator that oscillates around a zero line. This oscillator provides clear visual representation of momentum and position within the established bands.
Visual Features 🎨
Multi-Pane Display Architecture
Primary oscillator plotted in separate pane for clarity
Dynamic band overlay on price chart with elegant fill visualization
ALMA centerline marked with distinctive styling
Customizable threshold lines for signal identification
Advanced Color Schemes
Choose from 9 professionally designed color palettes:
Classic series offering various aesthetic preferences
High contrast options for different chart backgrounds
State-based coloring that changes with market conditions
Candle coloring that reflects current oscillator state
Enhanced Visual Elements
Smooth gradient band fills for easy trend identification
Dynamic line thickness and styling options
Professional transparency settings for overlay clarity
Customizable threshold visualization
Signal Generation System 📊
Dual Threshold Architecture
The indicator employs two distinct threshold levels that create a sophisticated signal framework:
Long Threshold : Triggers bullish signal generation
Short Threshold : Activates bearish signal conditions
Intelligent State Management
Advanced state tracking ensures clean signal generation without false triggers:
Prevents redundant signals in same direction
Maintains position awareness for proper entries/exits
Implements crossover logic for precise timing
Flexible Trading Modes
Long/Short Mode : Full bidirectional trading capabilities
Long/Cash Mode : Conservative approach with cash positions during bearish conditions
Professional Analytics Suite 📈
Comprehensive Performance Metrics
Integrated real-time performance analysis including:
Maximum Drawdown percentage tracking
Sortino Ratio for downside risk assessment
Sharpe Ratio for risk-adjusted returns
Omega Ratio for comprehensive performance evaluation
Profit Factor calculation
Win rate percentage analysis
Half Kelly percentage for position sizing guidance
Total trade count and net profit tracking
Advanced Risk Management
Real-time equity curve tracking
Peak-to-trough drawdown monitoring
Downside deviation calculations
Risk-adjusted return measurements
Customization Options ⚙️
ALMA Parameter Control
ALMA Length (Default: 42) - Controls the lookback period for the moving average calculation. Lower values (20-30) create faster, more responsive signals but increase noise. Higher values (50-100) produce smoother signals with less false alerts but slower reaction to price changes.
ALMA Offset (Default: 0.68) - Determines the phase shift of the moving average. Values closer to 0 behave like a simple moving average. Values closer to 1 act more like an exponential moving average. 0.68 provides optimal balance between responsiveness and smoothness.
ALMA Sigma (Default: 1.8) - Controls the smoothness factor of the ALMA calculation. Lower values (1.0-2.0) create sharper, more reactive averages. Higher values (4.0-8.0) produce extremely smooth but slower-responding averages. Affects how quickly the ALMA adapts to price changes.
Source Selection - Choose between Close, Open, High, Low, or custom price combinations. Close price is standard for most analysis. HL2 or HLC3 can provide different market perspectives and reduce single-price volatility.
Oscillator Fine-tuning
Standard Deviation Length (Default: 27) - Determines the lookback period for volatility calculation. Shorter periods (10-20) make bands more reactive to recent volatility changes. Longer periods (40-60) create more stable bands that filter out short-term volatility spikes.
SD Multiplier (Default: 2.8) - Controls the width of the dynamic bands. Lower values (1.5-2.0) create tighter bands with more frequent signals but higher false signal rate. Higher values (3.0-4.0) produce wider bands with fewer but potentially more reliable signals.
Oscillator Multiplier (Default: 100) - Scales the oscillator for visual clarity. This is purely cosmetic and doesn't affect signal generation. Adjust based on your preferred oscillator range visualization.
Long Threshold (Default: 82) - Sets the level where bullish signals trigger. Lower values (70-80) generate more frequent long signals but may include weaker setups. Higher values (85-95) create fewer but potentially stronger bullish signals.
Short Threshold (Default: 50) - Determines where bearish signals activate. Higher values (55-65) produce more short signals. Lower values (35-45) wait for stronger bearish conditions before signaling.
Trading Mode Configuration
Long/Short Mode - Full bidirectional trading that takes both long and short positions. Suitable for trending markets and experienced traders comfortable with short selling.
Long/Cash Mode - Conservative approach that only takes long positions or moves to cash during bearish signals. Ideal for bull market conditions or traders who prefer not to short.
Display Customization
Color Schemes (9 Options) - Choose from Classic to Classic9 palettes. Each offers different visual contrast for various chart backgrounds and personal preferences.
Metrics Table Position - Place performance metrics in any of 6 chart locations: Top Left/Right, Middle Left/Right, Bottom Left/Right.
Show/Hide Metrics Table - Toggle the comprehensive performance analytics display on or off based on your analysis needs.
Date Range Limiter - Set specific start dates for backtesting and signal generation. Useful for testing strategies on specific market periods or excluding unusual market events.
Parameter Optimization Tips
Volatile Markets - Use shorter ALMA Length (25-35), lower SD Multiplier (2.0-2.5), and moderate thresholds
Trending Markets - Employ longer ALMA Length (45-60), higher SD Multiplier (3.0-4.0), and extreme thresholds
Sideways Markets - Try medium ALMA Length (35-45), standard SD Multiplier (2.5-3.0), and closer thresholds (75/55)
Higher Timeframes - Generally use longer periods and higher multipliers for smoother signals
Lower Timeframes - Opt for shorter periods and lower multipliers for more responsive signals
Practical Applications 💡
Trend Following
Identify and follow established trends using the dynamic band system and oscillator position relative to thresholds.
Momentum Analysis
Gauge market momentum through oscillator readings and their relationship to historical levels.
Reversal Detection
Spot potential reversal points when price reaches extreme oscillator levels combined with band interactions.
Risk Management
Utilize integrated metrics for position sizing and risk assessment decisions.
Technical Specifications 🔍
Calculation Methodology
The indicator employs sophisticated mathematical formulations for ALMA calculation combined with statistical analysis for band generation. The oscillator normalization process ensures consistent readings across different market conditions and timeframes.
Performance Optimization
Designed for efficient processing with minimal computational overhead while maintaining calculation accuracy across all timeframes.
Multi-Timeframe Compatibility
Functions effectively across all trading timeframes from intraday scalping to long-term position trading.
Installation and Usage 📋
Simple Setup Process
Add indicator to chart
Configure ALMA parameters for your preferred responsiveness
Adjust threshold levels based on market volatility
Select desired color scheme and display options
Enable metrics table for performance tracking
Best Practices
Use multiple timeframe analysis for context
Monitor metrics table for strategy performance
Adjust parameters based on market conditions
This indicator represents a professional-grade tool designed for serious traders seeking advanced technical analysis capabilities with comprehensive performance tracking. The combination of ALMA's mathematical precision with dynamic oscillator technology creates a unique analytical framework suitable for various trading styles and market conditions.
🚀 Transform your technical analysis with this advanced ALMA-based oscillator system!
⚠️ IMPORTANT DISCLAIMER
Past Performance Warning: 📉⚠️
PAST PERFORMANCE IS NOT INDICATIVE OF FUTURE RESULTS. Historical backtesting results, while useful for strategy development and parameter optimization, do not guarantee similar performance in live trading conditions. Market conditions change continuously, and what worked in the past may not work in the future.
Remember: Successful trading requires discipline, continuous learning, and adaptation to changing market conditions. No indicator or strategy guarantees profits, and all trading involves substantial risk of loss.
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.
[Top] Simple Position + SL CalculatorThis indicator is a user-friendly tool designed to help traders easily calculate optimal position sizing, determine suitable stop-loss levels, and quantify maximum potential losses in dollar terms based on their personalized trading parameters.
Key Features:
Position Size Calculation: Automatically computes the number of shares to purchase based on the trader’s total account size and specified percentage of the account allocated per trade.
Stop-Loss Level: Suggests an appropriate stop-loss price point calculated based on the trader’s defined risk percentage per trade.
Max Loss Visualization: Clearly displays the maximum potential loss (in dollars) should the stop-loss be triggered.
Customizable Interface: Provides the flexibility to place the calculation table in different chart positions (Top Left, Top Right, Bottom Left, Bottom Right) according to user preference.
How to Use:
Enter your total Account Size.
Set the desired Position Size as a percentage of your account. (Typically, 1%–5% per trade is recommended for cash accounts.)
Define the Risk per Trade percentage (commonly between 0.05%–0.5%).
Choose your preferred Table Position to comfortably integrate with your trading chart.
Note:
If you identify a technical support level below the suggested stop-loss point, consider reducing your position size to manage the increased risk effectively.
Keep in mind that the calculations provided by this indicator are based solely on standard industry best practices and the specific inputs entered by you. They do not account for market volatility, news events, or any other factors outside the provided parameters. Always complement this indicator with sound technical and fundamental analysis.
Kijun Shifting Band Oscillator | QuantMAC🎯 Kijun Shifting Band Oscillator | QuantMAC
📊 **Revolutionary Technical Analysis Tool Combining Ancient Ichimoku Wisdom with Cutting-Edge Statistical Methods**
🌟 Overview
The Kijun Shifting Band Oscillator represents a sophisticated fusion of traditional Japanese technical analysis and modern statistical theory. Built upon the foundational concepts of the Ichimoku Kinko Hyo system, this indicator transforms the classic Kijun-sen (base line) into a dynamic, multi-dimensional analysis tool that provides traders with unprecedented market insights.
This advanced oscillator doesn't just show you where price has been – it reveals the underlying momentum dynamics and volatility patterns that drive market movements, giving you a statistical edge in your trading decisions.
🔥 Key Features & Innovations
Dual Trading Modes for Maximum Flexibility: 🚀
Long/Short Mode: Full bidirectional trading capability for aggressive traders seeking to capitalize on both bullish and bearish market conditions
Long/Cash Mode: Conservative approach perfect for risk-averse traders, taking long positions during uptrends and moving to cash during downtrends (avoiding short exposure)
Advanced Visual Intelligence: 🎨
9 Professional Color Schemes: From classic blue/navy to vibrant orange/purple combinations, each optimized for different chart backgrounds and personal preferences
Dynamic Gradient Histogram: Color intensity reflects oscillator strength, providing instant visual feedback on momentum magnitude
Intelligent Overlay Bands: Semi-transparent fills create clear visual boundaries without cluttering your chart
Smart Candle Coloring: Real-time color changes reflect current market state and trend direction
Customizable Threshold Lines: Clearly marked entry and exit levels with contrasting colors
Professional-Grade Analytics: 📊
Real-Time Performance Metrics: Live calculation of 9 key performance indicators
Risk-Adjusted Returns: Sharpe, Sortino, and Omega ratios for comprehensive performance evaluation
Position Sizing Guidance: Half-Kelly percentage for optimal risk management
Drawdown Analysis: Maximum drawdown tracking for risk assessment
📈 Deep Technical Foundation
Kijun-Based Mathematical Framework: 🧮
The indicator begins with the traditional Kijun-sen calculation but extends it significantly:
Statistical Enhancements: 📉
Adaptive Volatility: Bands expand and contract based on market volatility
Momentum Filtering: EMA smoothing of oscillator for trend confirmation
State Management: Intelligent signal filtering prevents whipsaws and false signals
Multi-Timeframe Compatibility: Optimized algorithms work across all timeframes
⚙️ Comprehensive Parameter Control
Kijun Core Settings: 🎛️
Kijun Length (Default: 30): Controls the lookback period for the base calculation. Shorter periods = more responsive, longer periods = smoother signals
Source Selection: Choose from Close, Open, High, Low, or HL2. Close price recommended for most applications
Calculation Method: Uses traditional Ichimoku methodology ensuring compatibility with classic analysis
Advanced Oscillator Configuration: 📊
Standard Deviation Length (Default: 36): Determines volatility measurement period. Affects band width and sensitivity
SD Multiplier (Default: 2.1): Fine-tune band distance from basis line. Higher values = wider bands, lower values = tighter bands
Oscillator Multiplier (Default: 100): Scales the final oscillator output. Useful for matching other indicators or personal preference
Smoothing Algorithm: Built-in EMA smoothing prevents noise while maintaining responsiveness
Signal Threshold Optimization: 🎯
Long Threshold (Default: 83): Oscillator level that triggers long entries. Higher values = fewer but stronger signals
Short Threshold (Default: 42): Oscillator level that triggers short entries. Lower values = fewer but stronger signals
Threshold Logic: Crossover-based system with state management prevents signal overlap
Customization Range: Fully adjustable to match your trading style and risk tolerance
Precision Date Control: 📅
Start Date/Month/Year: Precise backtesting control down to the day
Historical Analysis: Test strategies on specific market periods or events
Strategy Validation: Isolate performance during different market conditions
📊 Professional Metrics Dashboard
Risk Assessment Metrics: 💼
Maximum Drawdown %: Largest peak-to-trough decline in portfolio value. Critical for understanding worst-case scenarios and position sizing
Sortino Ratio: Risk-adjusted return measure focusing only on downside volatility. Superior to Sharpe ratio for asymmetric return distributions
Sharpe Ratio: Classic risk-adjusted performance metric. Values above 1.0 considered good, above 2.0 excellent
Omega Ratio: Probability-weighted ratio capturing all moments of return distribution. More comprehensive than Sharpe or Sortino
Performance Analytics: 📈
Profit Factor: Gross Profit ÷ Gross Loss. Values above 1.0 indicate profitability, above 2.0 considered excellent
Win Rate %: Percentage of profitable trades. Consider alongside average win/loss size for complete picture
Net Profit %: Total return on initial capital. Accounts for compounding effects
Total Trades: Sample size for statistical significance assessment
Advanced Position Sizing: 🎯
Half Kelly %: Optimal position size based on Kelly Criterion, reduced by 50% for safety margin
Risk Management: Helps determine appropriate position size relative to account equity
Mathematical Foundation: Based on win probability and profit factor calculations
Practical Application: Directly usable percentage for position sizing decisions
🎨 Advanced Display Options
Flexible Interface Design: 🖥️
6 Positioning Options: Top/Bottom/Middle × Left/Right combinations for optimal chart organization
Toggle Functionality: Show/hide metrics table for clean chart presentation during analysis
Color Coordination: Metrics table colors match selected oscillator color scheme
Professional Styling: Clean, readable format with proper spacing and alignment
Visual Hierarchy: 🎭
Oscillator Histogram: Primary focus with gradient intensity showing momentum strength
Threshold Lines: Clear horizontal references for entry/exit levels
Zero Line: Neutral reference point for trend bias determination
Background Bands: Subtle overlay context without chart clutter
🚀 Advanced Signal Generation System
Multi-Layer Signal Logic: ⚡
Primary Signal Generation: Oscillator crossover above Long Threshold (default 83) triggers long entries
Exit Signal Processing: Oscillator crossunder below Short Threshold (default 42) triggers position exits
State Management System: Prevents duplicate signals and ensures clean position transitions
Mode-Specific Logic: Different behavior for Long/Short vs Long/Cash modes
Date Range Filtering: Signals only generated within specified backtesting period
Confirmation Requirements: Bar confirmation prevents false signals from intrabar price spikes
Intelligent Position Management: 🧠
Entry Tracking: Precise entry price recording for accurate P&L calculations
Position State Monitoring: Continuous tracking of long/short/cash positions
Automatic Exit Logic: Seamless position closure and new position initiation
Performance Calculation: Real-time P&L tracking with compounding effects
📉📈 Comprehensive Band Interpretation Guide
Dynamic Band Analysis: 🔍
Upper Band Function: Represents dynamic resistance based on recent volatility. Price approaching upper band suggests potential reversal or breakout
Lower Band Function: Represents dynamic support with volatility adjustment. Price near lower band indicates oversold conditions or support testing
Middle Line (Basis): Trend direction indicator. Price above = bullish bias, price below = bearish bias
Band Width Interpretation: Wide bands = high volatility, narrow bands = low volatility/potential breakout setup
Band Slope Analysis: Rising bands = strengthening trend, falling bands = weakening trend
Oscillator Interpretation: 📊
Values Above 50: Price in upper half of recent range, bullish momentum
Values Below 50: Price in lower half of recent range, bearish momentum
Extreme Values (>80 or <20): Overbought/oversold conditions, potential reversal zones
Momentum Divergence: Oscillator direction vs price direction for early reversal signals
Trend Confirmation: Oscillator direction confirming or contradicting price trends
💡 Strategic Trading Applications
Primary Trading Strategies: 🎯
Trend Following: Use threshold crossovers to capture major directional moves. Best in trending markets with clear directional bias
Mean Reversion: Identify extreme oscillator readings for counter-trend opportunities. Effective in range-bound markets
Breakout Trading: Monitor band compressions followed by expansions for breakout signals
Swing Trading: Combine oscillator signals with band interactions for swing position entries/exits
Risk Management: Use metrics dashboard for position sizing and risk assessment
Market Condition Optimization: 🌊
Trending Markets: Increase threshold separation for fewer, stronger signals
Choppy Markets: Decrease threshold separation for more responsive signals
High Volatility: Increase SD multiplier for wider bands
Low Volatility: Decrease SD multiplier for tighter bands and earlier signals
⚙️ Advanced Configuration Tips
Parameter Optimization Guidelines: 🔧
Kijun Length Adjustment: Shorter periods (10-20) for faster signals, longer periods (50-100) for smoother trends
SD Length Tuning: Match to your trading timeframe - shorter for responsive, longer for stability
Threshold Calibration: Backtest different levels to find optimal entry/exit points for your market
Color Scheme Selection: Choose schemes that provide best contrast with your chart background and other indicators
Integration with Other Indicators: 🔗
Volume Indicators: Confirm oscillator signals with volume spikes
Support/Resistance: Use key levels to filter oscillator signals
Momentum Indicators: RSI, MACD confirmation for signal strength
Trend Indicators: Moving averages for overall trend bias confirmation
⚠️ Important Usage Notes & Limitations
Indicator Characteristics: ⚡
Lagging Nature: Based on historical price data - signals occur after moves have begun
Best Practice: Combine with leading indicators and price action analysis
Market Dependency: Performance varies across different market conditions and instruments
Backtesting Essential: Always validate parameters on historical data before live implementation
Optimization Recommendations: 🎯
Parameter Testing: Systematically test different combinations on your preferred instruments
Walk-Forward Analysis: Regularly re-optimize parameters to maintain effectiveness
Market Regime Awareness: Adjust parameters for different market conditions (trending vs ranging)
Risk Controls: Implement maximum drawdown limits and position size controls
🔧 Technical Specifications
Performance Optimization: ⚡
Efficient Algorithms: Optimized calculations for smooth real-time operation
Memory Management: Smart array handling for metrics calculations
Visual Optimization: Balanced detail vs performance for responsive charts
Multi-Symbol Ready: Consistent performance across different assets
---
The Kijun Shifting Band Oscillator represents the evolution of technical analysis, bridging the gap between traditional methods and modern quantitative approaches. This indicator provides traders with a comprehensive toolkit for market analysis, combining the intuitive wisdom of Japanese candlestick analysis with the precision of statistical mathematics.
🎯 Designed for serious traders who demand professional-grade analysis tools with institutional-quality metrics and risk management capabilities. Whether you're a discretionary trader seeking visual confirmation or a systematic trader building quantitative strategies, this indicator provides the foundation for informed trading decisions.
⚠️ IMPORTANT DISCLAIMER
Past Performance Warning: 📉⚠️
PAST PERFORMANCE IS NOT INDICATIVE OF FUTURE RESULTS. Historical backtesting results, while useful for strategy development and parameter optimization, do not guarantee similar performance in live trading conditions. Market conditions change continuously, and what worked in the past may not work in the future.
Remember: Successful trading requires discipline, continuous learning, and adaptation to changing market conditions. No indicator or strategy guarantees profits, and all trading involves substantial risk of loss.
Day Separator with Day LabelsAdjustable day separator that paints vertical lines through the start of day. Default set to GMT however totally customisable.
Has the day of week ladled also which is also optional in position.
there is a check box for a light chart background chart but default is dark background.
Vertical lines are customisable regarding thickness and colour.
Pretty new to it all so welcome feedback and amendment ideas.
(ICT)Liquidity Grab + FVG + MSS/BOSThis script is a comprehensive educational indicator that combines and enhances several well-known trading concepts:
Liquidity Grabs (Swing Failure Patterns)
Fair Value Gaps (FVG)
Market Structure Shifts / Break of Structure (MSS/BOS)
Alerts
It identifies potential bullish and bearish liquidity grabs, confirms them optionally using volume validation on a lower timeframe, and tracks subsequent price structure changes. The indicator visually marks key swing highs/lows, FVG zones, and BOS/MSS levels—allowing traders to observe how price reacts to liquidity and imbalance zones.
🔍 Features:
Swing Failure Patterns (SFP):
Highlights possible liquidity grabs based on recent highs/lows and candle structure.
Volume Validation (Optional):
Filter signals using relative volume outside the swing on a lower timeframe. Adjustable threshold.
Fair Value Gaps (FVG):
Detects imbalance gaps and extends them for easy visualization.
Market Structure (MSS/BOS):
Displays Break of Structure (BOS) and Market Structure Shift (MSS) based on pivot highs/lows and closing conditions.
Dashboard:
A compact info panel displaying lower timeframe settings and validation status.
Custom Styling:
Adjustable colors, line styles, and label visibility for clean charting.
🧠 Ideal For:
Traders studying ICT concepts, smart money theories, and price-action-based strategies who want a visual tool for analysis and backtesting.
How to Use:
Wait for a Liquidity Grab (SFP) to form
The first condition for a potential entry is the formation of a Stop Hunt / Swing Failure Pattern (SFP).
This indicates that liquidity has been taken above or below a key level (e.g., previous high/low), and the market may be ready to reverse.
Confirmation with Fair Value Gap (FVG) and Market Structure Shift (MSS)
After the SFP, do not enter immediately. Wait for confirmation:
FVG : A Fair Value Gap (an imbalance in price action) must appear, signaling potential institutional activity.
MSS : A Market Structure Shift (break in the current trend) confirms a possible trend reversal or strong corrective move.
Enter the trade
Once both the FVG and MSS are confirmed after the SFP, you can safely enter a trade in the direction of the shift.
Alert Feature
The indicator includes an alert system to notify you when all conditions are met (SFP + FVG + MSS), so you can react quickly without constantly watching the chart.
Advanced Moving Average ChannelAdvanced Moving Average Channel (MAC) is a comprehensive technical analysis tool that combines multiple moving average types with volume analysis to provide a complete market perspective.
Key Features:
1. Dynamic Channel Formation
- Configurable moving average types (SMA, EMA, WMA, VWMA, HMA, TEMA)
- Separate upper and lower band calculations
- Customizable band offsets for precise channel adjustment
2. Volume Analysis Integration
- Multi-timeframe volume analysis (1H, 24H, 7D)
- Relative volume comparison against historical averages
- Volume trend detection with visual indicators
- Price-level volume distribution profile
3. Market Context Indicators
- RSI integration for overbought/oversold conditions
- Channel position percentage
- Volume-weighted price levels
- Breakout detection with visual signals
Usage Guidelines:
1. Channel Interpretation
- Price within channel: Normal market conditions
- Price above upper band: Potential overbought condition
- Price below lower band: Potential oversold condition
- Channel width: Indicates market volatility
2. Volume Analysis
- High relative volume (>150%): Strong market interest
- Low relative volume (<50%): Weak market interest
- Volume trend arrows: Indicate increasing/decreasing market participation
- Volume profile: Shows price levels with highest trading activity
3. Trading Signals
- Breakout arrows: Potential trend continuation
- RSI extremes: Confirmation of overbought/oversold conditions
- Volume confirmation: Validates price movements
Customization:
- Adjust MA length for different market conditions
- Modify band offsets for tighter/looser channels
- Fine-tune volume analysis parameters
- Customize visual appearance
This indicator is designed for traders who want to combine price action, volume analysis, and market structure in a single, comprehensive tool.
Timeframe % TrakcerPulls historical closes from nine higher-timeframe look-backs (1 H, 12 H, 1 D, 7 D, 14 D, 1 M, 3 M, 6 M, 1 Y, 3 Y) with request.security().
2. Calculates the percent change between each look-back close and the current price:
(close − close₍look-back₎) / close₍look-back₎ × 100
3. Renders a two-column table in the chart’s top-right corner.
• Left column = timeframe label
• Right column = % move, rounded to two decimals
4. Heat-codes the cells — green if the asset is up, red if it’s down — so you can spot momentum (or pain) instantly.
5. Stays lightweight by updating only on the last bar; no excess runtimes.
Grid TLong V1The “Grid TLong V1” strategy is based on the classic Grid strategy, but in the mode of buying and selling in favor of the trend and only on Long. This allows to take advantage of large uptrend movements to maximize profits in bull markets. For this reason, excessively sideways or bearish markets may not be very conducive to this strategy.
Like our Grid strategies in favor of the trend, you can enter and exit with the balance with controlled risk, as the distance between each grid functions as a natural and adaptable stop loss and take profit. What differentiates it from bidirectional strategies is that Short uses a minimum amount of follow-through, so that the percentage distance between the grids is maintained.
In this version of the script the entries and exits can be chosen at market or limit , and are based on the profit or loss of the current position, not on the percentage change in price.
The user may also notice that the strategy setup is risk-controlled, because it risks 5% on each trade, has a fairly standard commission and modest initial capital, all in order to protect the strategy user from unrealistic results.
As with all strategies, it is strongly recommended to optimize the parameters for the strategy to be effective for each asset and for each time frame.
Previous Highs & Lows (Customizable)Previous Highs & Lows (Customizable)
This Pine Script indicator displays horizontal lines and labels for high, low, and midpoint levels across multiple timeframes. The indicator plots levels from the following periods:
Today's session high, low, and midpoint
Yesterday's high, low, and midpoint
Current week's high, low, and midpoint
Last week's high, low, and midpoint
Last month's high, low, and midpoint
Last quarter's high, low, and midpoint
Last year's high, low, and midpoint
Features
Individual Controls: Each timeframe has separate toggles for showing/hiding high/low levels and midpoint levels.
Custom Colors: Independent color selection for lines and labels for each timeframe group.
Display Options:
Adjustable line width (1-5 pixels)
Variable label text size (tiny, small, normal, large, huge)
Configurable label offset positioning
Organization: Settings are grouped by timeframe in a logical sequence from most recent (today) to least recent (last year).
Display Logic: Lines span the current trading day only. Labels are positioned to the right of the price action. The indicator automatically removes previous drawings to prevent chart clutter.
Volume pressure by GSK-VIZAG-AP-INDIA🔍 Volume Pressure by GSK-VIZAG-AP-INDIA
🧠 Overview
“Volume Pressure” is a multi-timeframe, real-time table-based volume analysis tool designed to give traders a clear and immediate view of buying and selling pressure across custom-selected timeframes. By breaking down buy volume, sell volume, total volume, and their percentages, this indicator helps traders identify demand/supply imbalances and volume momentum in the market.
🎯 Purpose / Trading Use Case
This indicator is ideal for intraday and short-term traders who want to:
Spot aggressive buying or selling activity
Track volume dynamics across multiple timeframes *1 min time frame will give best results*
Use volume pressure as a confirming tool alongside price action or trend-based systems
It helps determine when large buying/selling activity is occurring and whether such behavior is consistent across timeframes—a strong signal of institutional interest or volume-driven trend shifts.
🧩 Key Features & Logic
Real-Time Table Display: A clean, dynamic table showing:
Buy Volume
Sell Volume
Total Volume
Buy % of total volume
Sell % of total volume
Multi-Time frame Analysis: Supports 8 user-selectable custom time frames from 1 to 240 minutes, giving flexibility to analyze volume pressure at various granularities.
Color-Coded Volume Bias:
Green for dominant Buy pressure
Red for dominant Sell pressure
Yellow for Neutral
Intensity-based blinking for extreme values (over 70%)
Dynamic Data Calculation:
Uses volume * (close > open) logic to estimate buy vs sell volumes bar-by-bar, then aggregates by timeframe.
⚙️ User Inputs & Settings
Timeframe Selectors (TF1 to TF8): Choose any 8 timeframes you want to monitor volume pressure across.
Text & Color Settings:
Customize text colors for Buy, Sell, Total volumes
Choose Buy/Sell bias colors
Enable/disable blinking for visual emphasis on extremes
Table Appearance:
Set header color, metric background, and text size
Table positioning: top-right, bottom-right, etc.
Blinking Highlight Toggle: Enable this to visually highlight when Buy/Sell % exceeds 70%—a sign of strong pressure.
📊 Visual Elements Explained
The table has 6 rows and 10 columns:
Row 0: Headers for Today and TF1 to TF8
Rows 1–3: Absolute values (Buy Vol, Sell Vol, Total Vol)
Rows 4–5: Relative percentages (Buy %, Sell %), with dynamic background color
First column shows the metric names (e.g., “Buy Vol”)
Cells blink using alternate background colors if volume pressure crosses thresholds
💡 How to Use It Effectively
Use Buy/Sell % rows to confirm potential breakout trades or identify volume exhaustion zones
Look for multi-timeframe confluence: If 5 or more TFs show >70% Buy pressure, buyers are in control
Combine with price action (e.g., breakouts, reversals) to increase conviction
Suitable for equities, indices, futures, crypto, especially on lower timeframes (1m to 15m)
🏆 What Makes It Unique
Table-based MTF Volume Pressure Display: Most indicators only show volume as bars or histograms; this script summarizes and color-codes volume bias across timeframes in a tabular format.
Customization-friendly: Full control over colors, themes, and timeframes
Blinking Alerts: Rare visual feature to capture user attention during extreme pressure
Designed with performance and readability in mind—even for fast-paced scalping environments.
🚨 Alerts / Extras
While this script doesn’t include TradingView alert functions directly, the visual blinking serves as a strong real-time alert mechanism.
Future versions may include built-in alert conditions for buy/sell bias thresholds.
🔬 Technical Concepts Used
Volume Dissection using close > open logic (to estimate buyer vs seller pressure)
Simple aggregation of volume over custom timeframes
Table plotting using Pine Script table.new, table.cell
Dynamic color logic for bias identification
Custom blinking logic using na(bar_index % 2 == 0 ? colorA : colorB)
⚠️ Disclaimer
This indicator is a tool for analysis, not financial advice. Always backtest and validate strategies before using any indicator for live trading. Past performance is not indicative of future results. Use at your own risk and apply proper risk management.
✍️ Author & Signature
Indicator Name: Volume Pressure
Author: GSK-VIZAG-AP-INDIA
TradingView Username: prowelltraders
HTF Candle Breakout Fibonacci LevelsThis indicator automatically plots Fibonacci retracement levels on a lower timeframe (LTF) after detecting a breakout candle on a selected higher timeframe (HTF).
🔍 How It Works
When a candle on your selected HTF closes beyond the high or low of the previous candle, the indicator automatically draws Fibonacci levels on the LTF.
These levels remain visible until the next HTF candle is formed — allowing you to trade retracements with contextual precision.
⸻
⚙️ Customization Options
From the indicator settings, you can modify:
• The HTF candle timeframe (default is 1D)
• Fibonacci levels and colors
• Enable or disable “Show Only the Latest Levels” — ideal for live trading to keep the chart clean and focused.
⸻
🟪 HTF Candles Preview
After applying the indicator, you’ll see 3 vertical bars on the right edge of your LTF chart. These represent a live preview of the last three HTF candles and update in real-time.
If you prefer a cleaner chart, disable this feature via the “Show HTF Candles” toggle in the settings.
⸻
Feel free to reach out if you have any questions.
DD IFVG [Pro+] (Dodgy)Introduction
DD IFVG° is an automated charting tool built to track inversion logic after displacement events—specifically when Fair Value Gaps (FVGs) are closed through and act as an inversion gap. The tool adheres to logic taught by DodgyDD and inspired by Inner Circle Trader (ICT) methodology, offering a clean visual interface to support traders studying price behaviour after liquidity sweeps, FVG closures, and delivery to targets.
This indicator does not draw zones or suggest direction. It operates entirely on confirmed price events and produces logic-bound visuals designed for traders who already understand IFVG-based reasoning and seek visual consistency across sessions and Timeframes.
Key Terms and Definitions
Swing High / Swing Low: A swing high is a local price peak with lower highs on either side. A swing low is a local trough with higher lows on either side. These are used to detect where liquidity may rest and are required for confirming the initial raid condition in the IFVG model.
Liquidity Raid: This occurs when price breaks a prior swing high or low, effectively “sweeping” a level where orders may be clustered. A raid is a required precursor to inversion logic in this model. The tool will not evaluate a potential Fair Value Gap or DD Inversion unless a swing high or low has been taken first.
Fair Value Gap (FVG): A Fair Value Gap is a price imbalance that occurs when a strong move leaves a gap between candles—specifically, when the high of one candle and the low of a later candle do not overlap. FVGs often emerge during displacement and are commonly studied as inefficiencies within a price leg.
DD Inversion: A DD inversion happens when price fully closes through an existing Fair Value Gap after raiding liquidity, suggesting the original imbalance rebalanced, and looks to reverse its original role. For example, when a bearish FVG is closed above after raiding a swing low, it may behave with a change of orderflow (bullish inversion). The tool recognizes IFVGs as “inverted” after a full-body candle closes through the gap post raid.
Displacement: A strong, directional price move—typically with momentum—that leaves a Fair Value Gap behind. Displacement is important in inversion logic, as it creates the context and confidence in comparing and contrasting FVGs and DD Inversions for obvious flips in market behaviour.
DD Line: Once inversion occurs, the tool draws a single horizontal array on the candle's close. It marks the model’s activation level—not a prediction level or a support/resistance zone. It serves as a reference for when model logic is sequentially active.
Opposing Swing: The swing high or low opposite the one that was swept during the initial raid. This becomes the model’s first target for mechanical delivery and is automatically drawn once the DD line is triggered. When price reaches this swing, the model has reached its objective and could offer opportunities for further continuation to additional liquidity pools.
Invalidation: A DD Inversion is considered invalid in one of two scenarios, which the user can toggle individually: a body print back above/below the inversion in bearish/bullish conditions, or trading above/below the most recent swing high/low after the liquidity raid in bearish/bullish conditions. The DD line will continue extending when traded to until the setup is invalidated, or when the Opposing Swing is reached.
Consequent Encroachment (CE): The midpoint (50%) of the FVG or IFVG. This line can be optionally displayed for users who use midpoint reference logic. It is not required by the model’s internal logic but may assist with discretionary interpretation.
Description
At its core, DD IFVG° follows a structured three-step logic sequence: a FVG is created, liquidity is taken, and the Fair Value Gap (FVG) inside of the leg of the raid is closed through, signally a potential orderflow shift. Once inversion is confirmed, a DD line is plotted at the close of the candle that caused the inversion, making it the structural anchor for the model.
The tool does not account for partial fills or candle wicks for FVGs or IFVGs. Only full-body closures through a qualifying FVG are recognized. When this occurs, a bullish or bearish inversion is validated and the model becomes active. From there, the opposing swing (the unswept high or low from the displacement leg) is automatically drawn as the target for the IFVG model.
The model remains active until either the opposing swing is tagged (completion) or Invalidation Condition is triggered (close through DD IFVG, or price violating the liquidity raid swing). Upon invalidation, the DD line turns gray, signalling that the structure is no longer valid for ongoing tracking.
Key Features
The Bias allows traders to define whether to track bullish inversions (closing above bearish FVGs), bearish inversions (closing below bullish FVGs), or neutral for both. This allows isolate directional focus or display all structures on the same chart mechanically.
The Liquidity Timeframe defines the Timeframe for swing highs and lows that are identified for the required liquidity raid. The Chart mode allows analysts to use the active chart Timeframe. Auto enables a custom Timeframe Alignment, explained inside of the setting tooltip. Custom allows for specific frame alignment, which is helpful when syncing with specific higher-Timeframe structure. Session allows the user to use session highs and lows for the liquidity raid. Observe the difference in the DD IFVG's frequency based on different Liquidity Timeframe configurations:
Chart:
Automatic:
Custom (1H):
Session:
The FVG Filter Timeframe requires the DD setup to trade into a FVG before qualifying the raid filter. For instance, setting this to 4H ensures that only setups that form within a 4-hour FVG. This gives analysts an additional filter to qualify the start of the mechanical model.
Session Filter enables traders to define up to four specific Time blocks when the model is permitted to trigger. The Macros Only toggle filters setups further by limiting activation to the first and last 10 minutes of each hour—a filter inspired for intraday traders and scalpers.
The Invalidation Condition determines when a DD inversion is considered not longer valid. Close will maintain the inversion as active until price prints a body past the DD IFVG. Swing will maintain the inversion as active until the most recent swing from the liquidity raid is traded through; in this case a warning will appear once price prints a candle body past the DD IFVG.
Model Style includes customizable controls for the DD line, the opposing swing marker, and invalidated states. Label appearance, line styles, and extension behaviour are fully user-controlled. Traders can also enable the Consequent Encroachment (CE) line, which marks the 50% midpoint of the FVG and IFVG.
An Info Table is available to display current model state, including user bias, active Timeframes, asset, and Time filter. Its position is fully customizable and can be moved to match chart preferences.
How Traders Can Use the Indicator Effectively
DD IFVG° is not meant to identify trade signals, entries, or exits. It is best used as a visual tracker and confluence for structure-based delivery, particularly for those following DodgyDD-style IFVG logic. The tool excels as a companion for:
Journaling and reviewing IFVG-based setups across Timeframes and sessions
Studying structural completion or invalidation behaviour
Tracking delayed deliveries and retracement-based logic
Traders using the tool should be familiar with FVG formation, inversion criteria, and the importance of opposing swing resolution.
Usage Guidance
Add DD IFVG° to a TradingView chart. This is a fractal script and can be applied across any Timeframe or asset pairing depending on your session model and preferences.
Use the DD line to track inversion structure, monitor when inversions are created and negated, and reference the opposing swing to determine whether structural delivery has completed.
Use the DD IFVG° in combination with your own discretion and narrative to assess when the model has flipped, held, or broken.
Terms and Conditions
Our charting tools are products provided for informational and educational purposes only and do not constitute financial, investment, or trading advice. Our charting tools are not designed to predict market movements or provide specific recommendations. Users should be aware that past performance is not indicative of future results and should not be relied upon for making financial decisions. By using our charting tools, the purchaser agrees that the seller and the creator are not responsible for any decisions made based on the information provided by these charting tools. The purchaser assumes full responsibility and liability for any actions taken and the consequences thereof, including any loss of money or investments that may occur as a result of using these products. Hence, by purchasing these charting tools, the customer accepts and acknowledges that the seller and the creator are not liable nor responsible for any unwanted outcome that arises from the development, the sale, or the use of these products. Finally, the purchaser indemnifies the seller from any and all liability. If the purchaser was invited through the Friends and Family Program, they acknowledge that the provided discount code only applies to the first initial purchase of any Toodegrees product. The purchaser is therefore responsible for cancelling – or requesting to cancel – their subscription in the event that they do not wish to continue using the product at full retail price. If the purchaser no longer wishes to use the products, they must unsubscribe from the membership service, if applicable. We hold no reimbursement, refund, or chargeback policy. Once these Terms and Conditions are accepted by the Customer, before purchase, no reimbursements, refunds or chargebacks will be provided under any circumstances.
By continuing to use these charting tools, the user acknowledges and agrees to the Terms and Conditions outlined in this legal disclaimer.
FVG Premium [no1x]█ OVERVIEW
This indicator provides a comprehensive toolkit for identifying, visualizing, and tracking Fair Value Gaps (FVGs) across three distinct timeframes (current chart, a user-defined Medium Timeframe - MTF, and a user-defined High Timeframe - HTF). It is designed to offer traders enhanced insight into FVG dynamics through detailed state monitoring (formation, partial fill, full mitigation, midline touch), extensive visual customization for FVG representation, and a rich alert system for timely notifications on FVG-related events.
█ CONCEPTS
This indicator is built upon the core concept of Fair Value Gaps (FVGs) and their significance in price action analysis, offering a multi-layered approach to their detection and interpretation across different timeframes.
Fair Value Gaps (FVGs)
A Fair Value Gap (FVG), also known as an imbalance, represents a range in price delivery where one side of the market (buying or selling) was more aggressive, leaving an inefficiency or an "imbalance" in the price action. This concept is prominently featured within Smart Money Concepts (SMC) and Inner Circle Trader (ICT) methodologies, where such gaps are often interpreted as footprints left by "smart money" due to rapid, forceful price movements. These methodologies suggest that price may later revisit these FVG zones to rebalance a prior inefficiency or to seek liquidity before continuing its path. These gaps are typically identified by a three-bar pattern:
Bullish FVG : This is a three-candle formation where the second candle shows a strong upward move. The FVG is the space created between the high of the first candle (bottom of FVG) and the low of the third candle (top of FVG). This indicates a strong upward impulsive move.
Bearish FVG : This is a three-candle formation where the second candle shows a strong downward move. The FVG is the space created between the low of the first candle (top of FVG) and the high of the third candle (bottom of FVG). This indicates a strong downward impulsive move.
FVGs are often watched by traders as potential areas where price might return to "rebalance" or find support/resistance.
Multi-Timeframe (MTF) Analysis
The indicator extends FVG detection beyond the current chart's timeframe (Low Timeframe - LTF) to two higher user-defined timeframes: Medium Timeframe (MTF) and High Timeframe (HTF). This allows traders to:
Identify FVGs that might be significant on a broader market structure.
Observe how FVGs from different timeframes align or interact.
Gain a more comprehensive perspective on potential support and resistance zones.
FVG State and Lifecycle Management
The indicator actively tracks the lifecycle of each detected FVG:
Formation : The initial identification of an FVG.
Partial Fill (Entry) : When price enters but does not completely pass through the FVG. The indicator updates the "current" top/bottom of the FVG to reflect the filled portion.
Midline (Equilibrium) Touch : When price touches the 50% level of the FVG.
Full Mitigation : When price completely trades through the FVG, effectively "filling" or "rebalancing" the gap. The indicator records the mitigation time.
This state tracking is crucial for understanding how price interacts with these zones.
FVG Classification (Large FVG)
FVGs can be optionally classified as "Large FVGs" (LV) if their size (top to bottom range) exceeds a user-defined multiple of the Average True Range (ATR) for that FVG's timeframe. This helps distinguish FVGs that are significantly larger relative to recent volatility.
Visual Customization and Information Delivery
A key concept is providing extensive control over how FVGs are displayed. This control is achieved through a centralized set of visual parameters within the indicator, allowing users to configure numerous aspects (colors, line styles, visibility of boxes, midlines, mitigation lines, labels, etc.) for each timeframe. Additionally, an on-chart information panel summarizes the nearest unmitigated bullish and bearish FVG levels for each active timeframe, providing a quick glance at key price points.
█ FEATURES
This indicator offers a rich set of features designed to provide a highly customizable and comprehensive Fair Value Gap (FVG) analysis experience. Users can tailor the FVG detection, visual representation, and alerting mechanisms across three distinct timeframes: the current chart (Low Timeframe - LTF), a user-defined Medium Timeframe (MTF), and a user-defined High Timeframe (HTF).
Multi-Timeframe FVG Detection and Display
The core strength of this indicator lies in its ability to identify and display FVGs from not only the current chart's timeframe (LTF) but also from two higher, user-selectable timeframes (MTF and HTF).
Timeframe Selection: Users can specify the exact MTF (e.g., "60", "240") and HTF (e.g., "D", "W") through dedicated inputs in the "MTF (Medium Timeframe)" and "HTF (High Timeframe)" settings groups. The visibility of FVGs from these higher timeframes can be toggled independently using the "Show MTF FVGs" and "Show HTF FVGs" checkboxes.
Consistent Detection Logic: The FVG detection logic, based on the classic three-bar imbalance pattern detailed in the 'Concepts' section, is applied consistently across all selected timeframes (LTF, MTF, HTF)
Timeframe-Specific Visuals: Each timeframe's FVGs (LTF, MTF, HTF) can be customized with unique colors for bullish/bearish states and their mitigated counterparts. This allows for easy visual differentiation of FVGs originating from different market perspectives.
Comprehensive FVG Visualization Options
The indicator provides extensive control over how FVGs are visually represented on the chart for each timeframe (LTF, MTF, HTF).
FVG Boxes:
Visibility: Main FVG boxes can be shown or hidden per timeframe using the "Show FVG Boxes" (for LTF), "Show Boxes" (for MTF/HTF) inputs.
Color Customization: Colors for bullish, bearish, active, and mitigated FVG boxes (including Large FVGs, if classified) are fully customizable for each timeframe.
Box Extension & Length: FVG boxes can either be extended to the right indefinitely ("Extend Boxes Right") or set to a fixed length in bars ("Short Box Length" or "Box Length" equivalent inputs).
Box Labels: Optional labels can display the FVG's timeframe and fill percentage on the box. These labels are configurable for all timeframes (LTF, MTF, and HTF). Please note: If FVGs are positioned very close to each other on the chart, their respective labels may overlap. This can potentially lead to visual clutter, and it is a known behavior in the current version of the indicator.
Box Borders: Visibility, width, style (solid, dashed, dotted), and color of FVG box borders are customizable per timeframe.
Midlines (Equilibrium/EQ):
Visibility: The 50% level (midline or EQ) of FVGs can be shown or hidden for each timeframe.
Style Customization: Width, style, and color of the midline are customizable per timeframe. The indicator tracks if this midline has been touched by price.
Mitigation Lines:
Visibility: Mitigation lines (representing the FVG's opening level that needs to be breached for full mitigation) can be shown or hidden for each timeframe. If shown, these lines are always extended to the right.
Style Customization: Width, style, and color of the mitigation line are customizable per timeframe.
Mitigation Line Labels: Optional price labels can be displayed on mitigation lines, with a customizable horizontal bar offset for positioning. For optimal label placement, the following horizontal bar offsets are recommended: 4 for LTF, 8 for MTF, and 12 for HTF.
Persistence After Mitigation: Users can choose to keep mitigation lines visible even after an FVG is fully mitigated, with a distinct color for such lines. Importantly, this option is only effective if the general setting 'Hide Fully Mitigated FVGs' is disabled, as otherwise, the entire FVG and its lines will be removed upon mitigation.
FVG State Management and Behavior
The indicator tracks and visually responds to changes in FVG states.
Hide Fully Mitigated FVGs: This option, typically found in the indicator's general settings, allows users to automatically remove all visual elements of an FVG from the chart once price has fully mitigated it. This helps maintain chart clarity by focusing on active FVGs.
Partial Fill Visualization: When price enters an FVG, the indicator offers a dynamic visual representation: the portion of the FVG that has been filled is shown as a "mitigated box" (typically with a distinct color), while the original FVG box shrinks to clearly highlight the remaining, unfilled portion. This two-part display provides an immediate visual cue about how much of the FVG's imbalance has been addressed and what potential remains within the gap.
Visual Filtering by ATR Proximity: To help users focus on the most relevant price action, FVGs can be dynamically hidden if they are located further from the current price than a user-defined multiple of the Average True Range (ATR). This behavior is controlled by the "Filter Band Width (ATR Multiple)" input; setting this to zero disables the filter entirely, ensuring all detected FVGs remain visible regardless of their proximity to price.
Alternative Usage Example: Mitigation Lines as Key Support/Resistance Levels
For traders preferring a minimalist chart focused on key Fair Value Gap (FVG) levels, the indicator's visualization settings can be customized to display only FVG mitigation lines. This approach leverages these lines as potential support and resistance zones, reflecting areas where price might revisit to address imbalances.
To configure this view:
Disable FVG Boxes: Turn off "Show FVG Boxes" (for LTF) or "Show Boxes" (for MTF/HTF) for the desired timeframes.
Hide Midlines: Disable the visibility of the 50% FVG Midlines (Equilibrium/EQ).
Ensure Mitigation Lines are Visible: Keep "Mitigation Lines" enabled.
Retain All Mitigation Lines:
Disable the "Hide Fully Mitigated FVGs" option in the general settings.
Enable the feature to "keep mitigation lines visible even after an FVG is fully mitigated". This ensures lines from all FVGs (active or fully mitigated) remain on the chart, which is only effective if "Hide Fully Mitigated FVGs" is disabled.
This setup offers:
A Decluttered Chart: Focuses solely on the FVG opening levels.
Precise S/R Zones: Treats mitigation lines as specific points for potential price reactions.
Historical Level Analysis: Includes lines from past, fully mitigated FVGs for a comprehensive view of significant price levels.
For enhanced usability with this focused view, consider these optional additions:
The on-chart Information Panel can be activated to display a quick summary of the nearest unmitigated FVG levels.
Mitigation Line Labels can also be activated for clear price level identification. A customizable horizontal bar offset is available for positioning these labels; for example, offsets of 4 for LTF, 8 for MTF, and 12 for HTF can be effective.
FVG Classification (Large FVG)
This feature allows for distinguishing FVGs based on their size relative to market volatility.
Enable Classification: Users can enable "Classify FVG (Large FVG)" to identify FVGs that are significantly larger than average.
ATR-Based Threshold: An FVG is classified as "Large" if its height (price range) is greater than or equal to the Average True Range (ATR) of its timeframe multiplied by a user-defined "Large FVG Threshold (ATR Multiple)". The ATR period for this calculation is also configurable.
Dedicated Colors: Large FVGs (both bullish/bearish and active/mitigated) can be assigned unique colors, making them easily distinguishable on the chart.
Panel Icon: Large FVGs are marked with a special icon in the Info Panel.
Information Panel
An on-chart panel provides a quick summary of the nearest unmitigated FVG levels.
Visibility and Position: The panel can be shown/hidden and positioned in any of the nine standard locations on the chart (e.g., Top Right, Middle Center).
Content: It displays the price levels of the nearest unmitigated bullish and bearish FVGs for LTF, MTF (if active), and HTF (if active). It also indicates if these nearest FVGs are Large FVGs (if classification is enabled) using a selectable icon.
Styling: Text size, border color, header background/text colors, default text color, and "N/A" cell background color are customizable.
Highlighting: Background and text colors for the cells displaying the overall nearest bullish and bearish FVG levels (across all active timeframes) can be customized to draw attention to the most proximate FVG.
Comprehensive Alert System
The indicator offers a granular alert system for various FVG-related events, configurable for each timeframe (LTF, MTF, HTF) independently. Users can enable alerts for:
New FVG Formation: Separate alerts for new bullish and new bearish FVG formations.
FVG Entry/Partial Fill: Separate alerts for price entering a bullish FVG or a bearish FVG.
FVG Full Mitigation: Separate alerts for full mitigation of bullish and bearish FVGs.
FVG Midline (EQ) Touch: Separate alerts for price touching the midline of a bullish or bearish FVG.
Alert messages are detailed, providing information such as the timeframe, FVG type (bull/bear, Large FVG), relevant price levels, and timestamps.
█ NOTES
This section provides additional information regarding the indicator's usage, performance considerations, and potential interactions with the TradingView platform. Understanding these points can help users optimize their experience and troubleshoot effectively.
Performance and Resource Management
Maximum FVGs to Track : The "Max FVGs to Track" input (defaulting to 25) limits the number of FVG objects processed for each category (e.g., LTF Bullish, MTF Bearish). Increasing this value significantly can impact performance due to more objects being iterated over and potentially drawn, especially when multiple timeframes are active.
Drawing Object Limits : To manage performance, this script sets its own internal limits on the number of drawing objects it displays. While it allows for up to approximately 500 lines (max_lines_count=500) and 500 labels (max_labels_count=500), the number of FVG boxes is deliberately restricted to a maximum of 150 (max_boxes_count=150). This specific limit for boxes is a key performance consideration: displaying too many boxes can significantly slow down the indicator, and a very high number is often not essential for analysis. Enabling all visual elements for many FVGs across all three timeframes can cause the indicator to reach these internal limits, especially the stricter box limit
Optimization Strategies : To help you manage performance, reduce visual clutter, and avoid exceeding drawing limits when using this indicator, I recommend the following strategies:
Maintain or Lower FVG Tracking Count: The "Max FVGs to Track" input defaults to 25. I find this value generally sufficient for effective analysis and balanced performance. You can keep this default or consider reducing it further if you experience performance issues or prefer a less dense FVG display.
Utilize Proximity Filtering: I suggest activating the "Filter Band Width (ATR Multiple)" option (found under "General Settings") to display only those FVGs closer to the current price. From my experience, a value of 5 for the ATR multiple often provides a good starting point for balanced performance, but you should feel free to adjust this based on market volatility and your specific trading needs.
Hide Fully Mitigated FVGs: I strongly recommend enabling the "Hide Fully Mitigated FVGs" option. This setting automatically removes all visual elements of an FVG from the chart once it has been fully mitigated by price. Doing so significantly reduces the number of active drawing objects, lessens computational load, and helps maintain chart clarity by focusing only on active, relevant FVGs.
Disable FVG Display for Unused Timeframes: If you are not actively monitoring certain higher timeframes (MTF or HTF) for FVG analysis, I advise disabling their display by unchecking "Show MTF FVGs" or "Show HTF FVGs" respectively. This can provide a significant performance boost.
Simplify Visual Elements: For active FVGs, consider hiding less critical visual elements if they are not essential for your specific analysis. This could include box labels, borders, or even entire FVG boxes if, for example, only the mitigation lines are of interest for a particular timeframe.
Settings Changes and Platform Limits : This indicator is comprehensive and involves numerous calculations and drawings. When multiple settings are changed rapidly in quick succession, it is possible, on occasion, for TradingView to issue a "Runtime error: modify_study_limit_exceeding" or similar. This can cause the indicator to temporarily stop updating or display errors.
Recommended Approach : When adjusting settings, it is advisable to wait a brief moment (a few seconds) after each significant change. This allows the indicator to reprocess and update on the chart before another change is made
Error Recovery : Should such a runtime error occur, making a minor, different adjustment in the settings (e.g., toggling a checkbox off and then on again) and waiting briefly will typically allow the indicator to recover and resume correct operation. This behavior is related to platform limitations when handling complex scripts with many inputs and drawing objects.
Multi-Timeframe (MTF/HTF) Data and Behavior
HTF FVG Confirmation is Essential: : For an FVG from a higher timeframe (MTF or HTF) to be identified and displayed on your current chart (LTF), the three-bar pattern forming the FVG on that higher timeframe must consist of fully closed bars. The indicator does not draw speculative FVGs based on incomplete/forming bars from higher timeframes.
Data Retrieval and LTF Processing: The indicator may use techniques like lookahead = barmerge.lookahead_on for timely data retrieval from higher timeframes. However, the actual detection of an FVG occurs after all its constituent bars on the HTF have closed.
Appearance Timing on LTF (1 LTF Candle Delay): As a natural consequence of this, an FVG that is confirmed on an HTF (i.e., its third bar closes) will typically become visible on your LTF chart one LTF bar after its confirmation on the HTF.
Example: Assume an FVG forms on a 30-minute chart at 15:30 (i.e., with the close of the 30-minute bar that covers the 15:00-15:30 period). If you are monitoring this FVG on a 15-minute chart, the indicator will detect this newly formed 30-minute FVG while processing the data for the 15-minute bar that starts at 15:30 and closes at 15:45. Therefore, the 30-minute FVG will become visible on your 15-minute chart at the earliest by 15:45 (i.e., with the close of that relevant 15-minute LTF candle). This means the HTF FVG is reflected on the LTF chart with a delay equivalent to one LTF candle.
FVG Detection and Display Logic
Fair Value Gaps (FVGs) on the current chart timeframe (LTF) are detected based on barstate.isconfirmed. This means the three-bar pattern must be complete with closed bars before an FVG is identified. This confirmation method prevents FVGs from being prematurely identified on the forming bar.
Alerts
Alert Setup : To receive alerts from this indicator, you must first ensure you have enabled the specific alert conditions you are interested in within the indicator's own settings (see 'Comprehensive Alert System' under the 'FEATURES' section). Once configured, open TradingView's 'Create Alert' dialog. In the 'Condition' tab, select this indicator's name, and crucially, choose the 'Any alert() function call' option from the dropdown list. This setup allows the indicator to trigger alerts based on the precise event conditions you have activated in its settings
Alert Frequency : Alerts are designed to trigger once per bar close (alert.freq_once_per_bar_close) for the specific event.
User Interface (UI) Tips
Settings Group Icons: In the indicator settings menu, timeframe-specific groups are marked with star icons for easier navigation: 🌟 for LTF (Current Chart Timeframe), 🌟🌟 for MTF (Medium Timeframe), and 🌟🌟🌟 for HTF (High Timeframe).
Dependent Inputs: Some input settings are dependent on others being enabled. These dependencies are visually indicated in the settings menu using symbols like "↳" (dependent setting on the next line), "⟷" (mutually exclusive inline options), or "➜" (directly dependent inline option).
Settings Layout Overview: The indicator settings are organized into logical groups for ease of use. Key global display controls – such as toggles for MTF FVGs, HTF FVGs (along with their respective timeframe selectors), and the Information Panel – are conveniently located at the very top within the '⚙️ General Settings' group. This placement allows for quick access to frequently adjusted settings. Other sections provide detailed customization options for each timeframe (LTF, MTF, HTF), specific FVG components, and alert configurations.
█ FOR Pine Script® CODERS
This section provides a high-level overview of the FVG Premium indicator's internal architecture, data flow, and the interaction between its various library components. It is intended for Pine Script™ programmers who wish to understand the indicator's design, potentially extend its functionality, or learn from its structure.
System Architecture and Modular Design
The indicator is architected moduarly, leveraging several custom libraries to separate concerns and enhance code organization and reusability. Each library has a distinct responsibility:
FvgTypes: Serves as the foundational data definition layer. It defines core User-Defined Types (UDTs) like fvgObject (for storing all attributes of an FVG) and drawSettings (for visual configurations), along with enumerations like tfType.
CommonUtils: Provides utility functions for common tasks like mapping user string inputs (e.g., "Dashed" for line style) to their corresponding Pine Script™ constants (e.g., line.style_dashed) and formatting timeframe strings for display.
FvgCalculations: Contains the core logic for FVG detection (both LTF and MTF/HTF via requestMultiTFBarData), FVG classification (Large FVGs based on ATR), and checking FVG interactions with price (mitigation, partial fill).
FvgObject: Implements an object-oriented approach by attaching methods to the fvgObject UDT. These methods manage the entire visual lifecycle of an FVG on the chart, including drawing, updating based on state changes (e.g., mitigation), and deleting drawing objects. It's responsible for applying the visual configurations defined in drawSettings.
FvgPanel: Manages the creation and dynamic updates of the on-chart information panel, which displays key FVG levels.
The main indicator script acts as the orchestrator, initializing these libraries, managing user inputs, processing data flow between libraries, and handling the main event loop (bar updates) for FVG state management and alerts.
Core Data Flow and FVG Lifecycle Management
The general data flow and FVG lifecycle can be summarized as follows:
Input Processing: User inputs from the "Settings" dialog are read by the main indicator script. Visual style inputs (colors, line styles, etc.) are consolidated into a types.drawSettings object (defined in FvgTypes). Other inputs (timeframes, filter settings, alert toggles) control the behavior of different modules. CommonUtils assists in mapping some string inputs to Pine constants.
FVG Detection:
For the current chart timeframe (LTF), FvgCalculations.detectFvg() identifies potential FVGs based on bar patterns.
For MTF/HTF, the main indicator script calls FvgCalculations.requestMultiTFBarData() to fetch necessary bar data from higher timeframes, then FvgCalculations.detectMultiTFFvg() identifies FVGs.
Newly detected FVGs are instantiated as types.fvgObject and stored in arrays within the main script. These objects also undergo classification (e.g., Large FVG) by FvgCalculations.
State Update & Interaction: On each bar, the main indicator script iterates through active FVG objects to manage their state based on price interaction:
Initially, the main script calls FvgCalculations.fvgInteractionCheck() to efficiently determine if the current bar's price might be interacting with a given FVG.
If a potential interaction is flagged, the main script then invokes methods directly on the fvgObject instance (e.g., updateMitigation(), updatePartialFill(), checkMidlineTouch(), which are part of FvgObject).
These fvgObject methods are responsible for the detailed condition checking and the actual modification of the FVG's state. For instance, the updateMitigation() and updatePartialFill() methods internally utilize specific helper functions from FvgCalculations (like checkMitigation() and checkPartialMitigation()) to confirm the precise nature of the interaction before updating the fvgObject’s state fields (such as isMitigated, currentTop, currentBottom, or isMidlineTouched).
Visual Rendering:
The FvgObject.updateDrawings() method is called for each fvgObject. This method is central to drawing management; it creates, updates, or deletes chart drawings (boxes, lines, labels) based on the FVG's current state, its prev_* (previous bar state) fields for optimization, and the visual settings passed via the drawSettings object.
Information Panel Update: The main indicator script determines the nearest FVG levels, populates a panelData object (defined in FvgPanelLib), and calls FvgPanel.updatePanel() to refresh the on-chart display.
Alert Generation: Based on the updated FVG states and user-enabled alert settings, the main indicator script constructs and triggers alerts using Pine Script's alert() function."
Key Design Considerations
UDT-Centric Design: The fvgObject UDT is pivotal, acting as a stateful container for all information related to a single FVG. Most operations revolve around creating, updating, or querying these objects.
State Management: To optimize drawing updates and manage FVG lifecycles, fvgObject instances store their previous bar's state (e.g., prevIsVisible, prevCurrentTop). The FvgObject.updateDrawings() method uses this to determine if a redraw is necessary, minimizing redundant drawing calls.
Settings Object: A drawSettings object is populated once (or when inputs change) and passed to drawing functions. This avoids repeatedly reading numerous input() values on every bar or within loops, improving performance.
Dynamic Arrays for FVG Storage: Arrays are used to store collections of fvgObject instances, allowing for dynamic management (adding new FVGs, iterating for updates).
Enhanced Scalping IndicatorEnhanced Scalping Indicator - Professional Multi-Confirmation Trading System
Overview
The Enhanced Scalping Indicator is a sophisticated trading tool designed for short-term traders seeking high-probability entry and exit signals. This indicator combines multiple technical analysis techniques with adaptive market conditions to filter noise and identify optimal trading opportunities.
Key Features
🎯 Multi-Confirmation Signal System
- Enhanced RSI with Adaptive Thresholds: Dynamic overbought/oversold levels that adjust based on market volatility (ATR)
- Higher Timeframe Confirmation: Uses 1-hour RSI to validate signals from lower timeframes
- Volume-Weighted Momentum: Incorporates volume analysis to confirm price movements
- Market Structure Analysis: Evaluates price position within recent 20-bar range
📊 Advanced Signal Generation
- Buy Signals: Triggered when RSI is oversold with upward momentum, confirmed by higher timeframe bearish conditions and strong volume
- Sell Signals: Activated when RSI is overbought with downward momentum, validated by higher timeframe bullish conditions and high volume
- Exit Signals: Smart exit conditions based on RSI mean reversion and momentum shifts
🔄 Divergence Detection (Optional)
- Bullish Divergence: Identifies when price makes lower lows while RSI makes higher lows
- Bearish Divergence: Spots when price makes higher highs while RSI makes lower highs
- Volume Confirmation: All divergence signals require above-average volume for validation
⚙️ Customizable Parameters
- RSI Settings: Adjustable length (default: 14) and source
- Moving Average Options: Choose from SMA, EMA, SMMA, WMA, VWMA, or Bollinger Bands
- Higher Timeframe: Configurable confirmation timeframe (default: 1 hour)
- ATR Period: [
/b] Volatility measurement period for adaptive thresholds
📈 Visual Elements
- Dynamic Threshold Lines: Adaptive overbought/oversold levels
- Signal Shapes: Clear buy/sell and exit signals on chart
- Background Highlighting: Color-coded background for active signals
- Real-time Information Table: Displays current RSI, higher timeframe RSI, volatility ratio, market position, and momentum
🚨 Alert System
Complete alert functionality for:
- Enhanced buy signals
- Enhanced sell signals
- Long position exits
- Short position exits
Best Use Cases
- Scalping: 1-5 minute timeframes for quick trades
- Day Trading: 15-30 minute timeframes for intraday positions
- Swing Trading: Higher timeframes with divergence detection enabled
Market Conditions
Works effectively in:
- T rending Markets: Momentum and higher timeframe filters reduce false signals
- Range-bound Markets: Adaptive thresholds adjust to market volatility
- High Volume Sessions: Built-in volume filters ensure signal quality
Strategy Integration
This indicator works well with:
- Support/resistance levels
- Price action analysis
- Risk management rules (stop losses, position sizing)
- Market session awareness (built-in US market hours filter)
Technical Implementation
- Built on Pine Script v6
- Utilizes proper RMA calculations for RSI
- Implements consistent historical data access
- Optimized for performance with minimal repainting
Risk Disclaimer
This indicator is a technical analysis tool and should not be used as the sole basis for trading decisions. Always combine with proper risk management, fundamental analysis, and your trading strategy. Past performance does not guarantee future results.
---
Perfect for: Scalpers, day traders, and swing traders looking for a comprehensive, multi-confirmation trading system with built-in risk management features.
Paul_BDT Osc. MACD, ADX, CHOP, RSI & CVD🔧 Overview
Modular multi-oscillator engine designed for actionable and filtered trading signals. It combines the power of MACD, ADX, CHOP, RSI, and CVD, integrates advanced divergence detection, a multi-timeframe dashboard, and a built-in risk management system.
⸻
🚨 Alert System
Alerts are organized by signal type, oscillator used, and timeframe block, with precision controls for filtering and sensitivity.
1. Oscillator Alerts (Osc.)
Triggers ▲ / ▼ triangle markers based on trend momentum shifts detected on the selected oscillator:
• MACD: triggers when histogram crosses 0 with bullish or bearish slope
• ADX: triggers on directional breakout with increasing trend strength
• CHOP: signals trend resumption after choppy market phase
• RSI: breakout from dynamic support/resistance using pivot detection
• CVD: shift in buy/sell pressure based on aggregated volume delta
✅ All signals optionally trigger on bar close only (if enabled)
2. Divergence Alerts (Div.)
Automatic detection of:
• 🔼 Regular Divergences
• Bullish: Lower lows in price, higher lows in oscillator
• Bearish: Higher highs in price, lower highs in oscillator
• 🔁 Hidden Divergences
• Hidden Bullish: Higher lows in price, lower lows in oscillator
• Hidden Bearish: Lower highs in price, higher highs in oscillator
Alert trigger logic:
• Divergences only trigger if confirmed by price action:
→ breakout from wick or close beyond BB/RSI dynamic bands
• Alerts are non-repeating (fires only on signal change)
🔔 divergeUP and divergeDN are fired when divergence AND price condition are met.
3. Reversal Alerts (Rev.)
Strict combo alert:
• reverseUP = divergeUP AND bullish wick breakout
• reverseDN = divergeDN AND bearish wick breakout
🧠 These are high-conviction signals, ideal for swing entries or reversion trades.
📊 Multi-Timeframe Support (4 Blocks)
4 independent blocks:
• Scalp, Intra, Swing, Custom
• Each block accepts 3 sorted timeframes
• You can individually enable:
• Oscillator alerts
• Divergences
• Reversals
Example:
• Scalp: RSI only, no divergence
• Intra: CVD + reversal only
• Swing: MACD + divergence + reversal
Each timeframe is dynamically sorted and shown in a structured dashboard grid (TF01 to TF12), making the multi-timeframe readout seamless.
⸻
⚙️ Additional Features
• Full visual panel with color-coded trend indicators
• Take Profit/Exit Alerts available on a custom timeframe
• Built-in Money Management:
• % or USD risk
• Configurable R/R ratio
• Minimum PnL threshold (filter out low-return setups)
⸻
✅ Best Use Cases
• High-frequency scalping (1s–1min) with real-time oscillator breakouts
• Structured intraday/swing planning using divergence + reversal logic
• Manual backtesting and alert-based discretionary entries
⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻
🧠 Fonctionnalités
• Oscillateurs personnalisables : activez un indicateur à la fois (MACD, ADX, CHOP, RSI, ou CVD) pour une analyse ciblée et lisible.
• Détection des divergences :
• Divergences classiques (bullish/bearish),
• Divergences cachées (hidden bullish/bearish),
• Filtres avancés pour ne détecter que les signaux pertinents (crossover/crossunder + break de mèche).
• Multi-timeframes :
• Jusqu’à 4 blocs configurables (scalp, intra, swing, custom),
• Tri automatique des UT,
• Alertes différenciées par bloc et par type de signal.
• Visualisation modulaire :
• Tableau de synthèse personnalisable, affichant l’état de chaque indicateur par UT,
• Affichage hors graphique ou directement sur le chart,
• Couleurs dynamiques pour les signaux haussiers, baissiers ou neutres.
• Gestion du risque intégrée :
• Paramétrez le risque en % du capital ou en valeur absolue (USD),
• Ratio risk/reward configurable pour filtrer les signaux,
• Seuil de profit minimum (PnL) configurable pour filtrer les signaux.
• Support de volumes agrégés multi-exchange pour CVD : compatible avec les plateformes crypto (BITGET, BINANCE, etc).
⸻
⚙️ Personnalisation
• Choix du type de moyenne mobile (EMA, RMA, VWAP, etc.).
• Activation sélective des signaux (Oscillateur, Divergence, Renversement) pour chaque bloc de timeframes.
⸻
📈 Alertes intégrées
• Compatibles avec les alertes automatiques de TradingView,
• Détection de signaux d’entrée (achat/vente), divergences, renversements,
• Configuration des alertes par type de signal et par timeframe (scalp/intra/swing/custom).
⸻
🔍 Utilisations recommandées
• Scalping haute fréquence (1s à 1min),
• Intraday en multi-UT (5 à 30min),
• Swing trading (1H à 1D),
• Analyse technique avancée sur crypto, indices, forex ou actions.
⸻
📌 Conclusion
Ce script combine précision algorithmique et flexibilité de personnalisation.