Daily 10 & 20 EMA (Shown on All Timeframes)The 10-day EMA is the quicker one. It hugs price closely, reacting fast to every twitch and hesitation. When price respects it, momentum feels alive. When price slices through it, you sense hesitation before it shows up elsewhere.
The 20-day EMA moves with more weight. It doesn’t flinch at noise. It represents the market’s short-term memory, the line price keeps returning to when trends are healthy. Above it, bias feels constructive. Below it, gravity takes over.
Together, they form a rhythm pair:
When the 10 EMA rides above the 20 EMA, the market is leaning forward.
When the 10 EMA sinks below the 20 EMA, momentum is cooling or rolling over.
When price compresses between them, indecision is building energy.
Across all timeframes, they scale like a fractal:
On lower timeframes, they act as tactical guides for entries, pullbacks, and exits.
On higher timeframes, they define structure, trend health, and whether moves are worth trusting.
They don’t predict. They contextualize.
They don’t command. They frame the battlefield
المؤشرات والاستراتيجيات
MACD Buy E Sell EditavelMacd personalizavel com sell para cruzamento de venda e buy para cruzamento de compra
ChunkbrAI-NN INDIChunkbrAI-NN INDI: The Neural Network Odyssey
A Native Pine Script Neural Network Research Engine
Welcome to ChunkbrAI-NN 5.3. This is not a standard technical indicator; it is a proof-of-concept Artificial Intelligence engine built entirely from scratch within Pine Script.
Neural Networks typically require iterating over massive datasets, a task that usually times out on TradingView. ChunkbrAI solves this by introducing a novel "Chunking Architecture"—a system that breaks history into digestible learning blocks and trains a Multilayer Perceptron (MLP) using a "Chunking" approach.
It features a living ecosystem where neurons have "genes," grow mature, and adapt to market regimes using a highly sophisticated Context-Aware normalization engine.
-----------------------------------------------------------
The Core Concept: "The Time Wheel"
To bypass Pine Script's execution limits, this script does not train linearly from the beginning of time. Instead, it operates like a spinning wheel of experience.
* The Chunk System: On every bar update, the engine reaches back into history (up to 5000 bars) and grabs random or sequential "Chunks" of data. It treats these chunks as isolated training samples.
* Experience Replay: By constantly revisiting past market scenarios (Chunks), the network slowly converges its weights, learning to recognize patterns across different eras of price action.
-----------------------------------------------------------
Architecture & Modules
A. The Neural Core (MLP)
At the heart is a raw neural network built with arrays:
* Topology: A dense network with a customizable Hidden Layer (Default: 60 Neurons).
* Timewarp (Stride): When enabled, the network uses "dilated" inputs (skipping bars, e.g., 1, 3, 5...). This increases the network's Field of View without increasing computational load.
* Forecasting: The network outputs a standardized prediction which is then de-normalized to project the future price path on your chart.
B. The Context System (The "Eyes")
Raw prices confuse neural networks. A $1000 move in Bitcoin is massive in 2016 but noise in 2024. ChunkbrAI uses a relativistic Context System:
* Regime Detection: It uses a Zero-Lag Moving Average (ZLMA) and Non-Linear Regression to measure the current market "Vibe" (Volatility & Trend).
* Dynamic Normalization: The inputs are scaled based on this context. If the market is volatile, the data is compressed; if calm, it is expanded. This ensures the brain receives consistent signal patterns regardless of the absolute price.
C. The Gene System (Neuro-Plasticity)
This is the experimental "biology" layer. Neurons are not just static math; they have life cycles.
* Maturity: Neurons start "Young" (highly plastic, high mutation rate). As they successfully reduce error, they become "Wise" (stable, low mutation).
* Mutation: If a "Wise" neuron begins failing (high error), it is demoted and forced to mutate. This allows the brain to "forget" obsolete behaviors and adapt to new market paradigms automatically.
* Profiles: You can initialize the brain with different personalities (e.g., Dreamer, Young Chaos, Zen Monk).
D. The Brain Scheduler (Adaptive Learning)
A static Learning Rate (LR) is inefficient. The Brain Scheduler acts as the heartbeat:
* Panic vs. Flow: It monitors the derivative of the error. If the error spikes (Panic), the Scheduler slows down learning to prevent the model from exploding. If the error smooths out (Flow), it accelerates learning (Infinite LR Mode).
-----------------------------------------------------------
Forecasting Modes
The script provides two distinct ways to visualize the future:
1. Direct Projection (Green Line):
The network takes the current window of price action and predicts the immediate next step. If Timewarp is active, it interpolates the result to draw a smooth curve.
2. Autoregression (Cyan Line):
Available in "Auto" mode. The network feeds its *own* predictions back into itself as inputs to generate multi-step forecasts.
* Wave Segmentation: The script intelligently guesses the current market cycle length and attempts to project that specific duration forward.
-----------------------------------------------------------
Operation Manual
The script has two distinct training loops: first, when you add it to a chart, Pine runs through the available historical bars once, and this initial history pass is the main training phase where the network iterates chunk-by-chunk using your configured chunk count/iterations (e.g., if chunk count is 3, it performs 3 chunk updates per step), but pushing chunk count, iterations, or model sizing too high can hit Pine’s execution limits; after that, once real-time candles start printing, the script can either keep training (weights continue updating) or freeze the weights and run inference only, producing predictions from the learned parameters, and if live training is enabled it can also simulate “bars-back” style training during live mode by iterating across prior bars as if doing another history pass—which again can run into limits if chunks/iterations/sizing are too heavy—so when changing parameters to evaluate behavior you change them carefully and individually, because multiple simultaneous increases make it hard to attribute effects and can more easily trigger those execution constraints.
Weight Persistence (Save/Load):
Pine Script can’t write files or persist weights directly, so ChunkbrAI uses a library-based workaround that’s honestly tricky and kind of a pain: you enable the weight-export alerts so the script emits the weights (W1/W2/biases etc.) as text, and those payloads are chunked as well; then, outside TradingView, I use a separate Python script to parse the alert emails, reconstruct and format the chunked weights properly, and generate the corresponding library code files; after that, the libraries have to be published/updated, and only then can the main script “restore” by reading the published lib constants on chart load, effectively starting with the pre-trained weights instead of relying purely on the fresh history-run training pass. I don’t recommend this process unless you really have to—it’s fragile and high-effort—but until TradingView implements some simple built-in data storage for scripts, it’s basically the only practical way to save and reload your models.
-----------------------------------------------------------
Limitations & Notes
* Calculation Limits: This script pushes Pine Script to its absolute edge. If you increase Chunk Size or Hidden Size too much, you WILL hit execution limits. Use the defaults as a baseline.
* Non-Deterministic: Because the "Wheel" picks random chunks for training, two instances of this script might evolve slightly different brains unless you use the Restore Weights feature.
* Experimental: This is a research tool designed to explore Neural Networks and Genetic Algorithms on the chart. Treat it as an educational engine, not financial advice.
Credits: Concept and Engineering by funkybrown.
Horizontal EMAs9, 20, 50, 100, 200 EMA's displayed horizontally. Turn each on/off individually displaying on the 15M, 1H, 4H, and 1D time frames.
Educational Trend Direction (Up & Down)🔍 Overview
This indicator is designed to visually represent trend direction and trend transitions using a simple moving-average relationship. It is built strictly for educational and analytical purposes, allowing users to observe how price behaves during upward and downward market phases without relying on trading signals or predictions.
The indicator focuses on trend context, not trade execution.
⚙️ How the Indicator Works
The script calculates two exponential moving averages:
A fast trend line that reacts quickly to recent price changes
A slow trend line that represents broader market direction
Trend direction is determined by the relative position of these two lines.
When the fast line moves above the slow line, the market is considered to be in an upward trend phase
When the fast line moves below the slow line, the market is considered to be in a downward trend phase
This relationship helps visualize trend shifts and momentum changes in a simple and intuitive way.
🎨 Visual Components Explained
🟢 Green Trend Line
Represents the fast moving average during upward trend phases
Indicates that price is maintaining strength relative to the broader trend
Color reflects trend direction only, not confirmation or entry
🔴 Red Trend Line
Represents the fast moving average during downward trend phases
Indicates sustained weakness relative to the broader trend
Color does not imply selling or future continuation
⚪ Grey Trend Line
Represents the slow moving average
Acts as a baseline trend reference
Helps distinguish between short-term fluctuations and broader direction
🎨 Background Shading
Light green shading appears during upward trend environments
Light red shading appears during downward trend environments
Background color provides context only and does not signal market actions
🎯 Purpose & Benefits
Helps identify trend phases in a clear and minimal way
Improves understanding of trend transitions and momentum shifts
Reduces visual noise compared to raw price data
Encourages context-based analysis instead of signal dependency
Suitable for all markets and timeframes
⚠️ Important Notes
This indicator does not generate buy or sell signals
No targets, stop levels, or performance metrics are included
Trend conditions are descriptive, not predictive
Past behavior does not guarantee future outcomes
Users should always apply their own analysis and risk management when interpreting market data.
📚 Intended Use
This tool is intended for:
Market trend study
Educational demonstrations
Visual analysis of trend direction
Long-term chart structure awareness
It is not intended for automated trading or decision-making.
Overnight Mid-point v2Same idea as first script, just refined so it takes candlesticks and not swings.
MTF Volume Profile & Signal Scanner v5The MTF Signal Scanner is a multi-timeframe trading system designed for futures trading, particularly optimized for MNQ (Micro E-mini Nasdaq-100). It combines volume profile analysis, EMA trend filtering, and a confluence scoring system to identify high-probability trade setups.
GME Regime Detector [AntiGravity]regime change identifies large buying or selling not supported by price movement.
green signals a time to begi to look for entry. and red signals a time to look to trim.
i would not suggest massive position changes, but a quick dip might not hurt.
NFA.
SMC/ICT: High Prob Signal FINALSMC/ICT: High-Probability Trend Signal This professional-grade indicator combines ICT/SMC concepts with Moving Average momentum. It identifies the Daily Bias using Candle Range Theory and tracks the Midnight Open to define Premium and Discount zones. To minimize noise, it only triggers EMA 9/21 crossover signals when they align with the higher-timeframe trend and institutional pricing levels. It also features a dynamic New Week Opening Gap (NWOG) anchor for structural reference.
OAS Train Track MA SystemTrain tracks for any timeframe or EMA, helps to hold your trades with your specific EMAs
Educational Market Structure & Trend Context🔍 Overview
This time-limited indicator is designed for educational and analytical purposes only. It helps users visually study price structure behavior and trend context by marking key structural points on the chart and overlaying a trend reference line. The indicator does not generate trading signals, predictions, or recommendations.
⚙️ How the Indicator Works
The script analyzes price action over a user-defined lookback period to identify local structural points:
Higher Highs within the selected range
Lower Lows within the selected range
These points are plotted as simple visual markers to help users understand how price is evolving over time.
In addition, a moving average is applied to provide broader trend context.
🟢 Green Markers (Structure Strength)
Appear when price forms a local higher high within the lookback window
Represent relative strength in price structure
They are not buy signals and do not indicate future movement
🔴 Red Markers (Structure Weakness)
Appear when price forms a local lower low within the lookback window
Represent relative weakness in price structure
They are not sell signals and do not indicate reversals
➖ Grey Line (Trend Context Line)
This line is a moving average calculated over a fixed period
It provides trend context only, helping users visually distinguish between upward and downward environments
It does not act as support, resistance, or entry guidance
🎨 Background Shading (Optional Context)
A subtle background color may appear depending on price position relative to the trend line
This shading is purely visual context, not a signal or confirmation
🎯 Purpose & Benefits
Helps users study market structure in a clean and simple way
Encourages price-action awareness instead of signal dependency
Supports manual analysis, learning, and chart reading skills
Keeps the chart minimal, non-predictive, and professional
⚠️ Important Notes
This indicator does not provide buy/sell signals
No targets, stop levels, or profit expectations are included
Past structure points do not predict future outcomes
Users should apply their own analysis and risk management
QuCap Pure Liquidity: Untouched Liquidity PoolsOverview Most liquidity indicators on the Public Library suffer from "Chart Noise." They often leave levels on the chart long after they have been "wicked out," simply because the candle didn't manage to close past the level.
QuCap Pure Liquidity is designed for the precision trader who only cares about Intact Liquidity. This script identifies pivot-based liquidity pools and monitors them in real-time. If price wicks through a level by even a single tick, the level is immediately invalidated and removed from your chart.
Key Features
Instant Invalidation: Levels are deleted on wick touch (High/Low), not candle close.
Intact Levels Only: What you see on the chart is "Fresh" and has not been mitigated.
Memory Management: Includes customizable limits for Buy-Side and Sell-Side levels to keep your chart clean and your browser running fast.
Fully Customizable: Adjust pivot strength (Left/Right bars) and visual styles to match your personal template.
How to Use
Draw on Liquidity: Use the remaining lines as a magnet for price action.
Stop Runs: Observe how price reacts when it clears these levels.
Clean Charts: Perfect for traders who follow SMC or ICT concepts and need to see where the real "resting" orders are.
Settings
Pivot Strength: Increase these values (e.g., 5, 5) to find more significant historical levels, or keep them low (2, 2) for scalp targets.
Max Levels: Keeps the chart from showing lines from weeks ago that are no longer relevant to current intraday price action.
ICT Liquidity Zone [KTY]ICT Liquidity Zone Indicator
Overview
This indicator automatically detects and displays Liquidity Zones based on ICT (Inner Circle Trader) methodology.
Liquidity zones are areas where stop-loss orders cluster around swing highs and lows. Smart money targets these zones to grab liquidity before reversing price direction.
Key Features
Multi-Timeframe Support
Display liquidity zones from two different timeframes simultaneously (LTF & HTF)
HTF liquidity zones represent more significant levels
Buyside & Sellside Liquidity
Buyside Liquidity: Areas above swing highs where short sellers' stops accumulate → Smart money sweeps these before selling
Sellside Liquidity: Areas below swing lows where long buyers' stops accumulate → Smart money sweeps these before buying
Volume Analysis
Displays relative volume percentage at liquidity formation
Higher percentage indicates stronger liquidity concentration
Mitigation Tracking
Liquidity zones are automatically removed when price sweeps through
Option to display swept zones for reference
How to Use
Identify liquidity pools above recent highs or below recent lows
Wait for a sweep — price breaks the level then quickly reverses
Look for confirmation using CHoCH, Order Blocks, or FVGs
Enter on the reversal, set stop beyond the swept level
Pro Tips:
Multiple equal highs/lows create stronger liquidity pools
Liquidity sweep + immediate reversal = high probability setup
Combine with Order Blocks and FVGs for confluence
HTF liquidity is more significant than LTF liquidity
Asian session highs/lows often become liquidity targets
Settings
SettingDescriptionLTF / HTFEnable and select timeframes for liquidity detectionBuyside Liquidity CountNumber of buyside zones to displaySellside Liquidity CountNumber of sellside zones to displayShow Mitigated LiquidityRemove or Show swept liquidity zonesLabel ColorCustomize text color inside liquidity boxes
Alerts
🔴 Buyside Liquidity Detected
🟢 Sellside Liquidity Detected
🔴 Buyside Liquidity Break
🟢 Sellside Liquidity Break
🔴 Buyside Liquidity Touched
🟢 Sellside Liquidity Touched
Notes
This indicator is designed for educational purposes
Distinguish between genuine breakouts and liquidity sweeps
Always combine with proper risk management
If you find this indicator helpful, please leave a like and follow for more ICT-based tools!
[TehThomas] - Order Blocks█ OVERVIEW
This Order Blocks indicator identifies institutional-level support and resistance zones using fractal pattern recognition combined with Fair Value Gap (FVG) filtering. Order blocks represent areas where large institutional orders have been placed, creating significant price reactions when retested. This indicator uses a 5-bar fractal pattern to detect market structure breaks and highlights the last bearish or bullish candle before a strong impulse move.
█ KEY FEATURES
- Fractal-Based Detection: Uses 5-candle fractal patterns to identify key market structure highs and lows
- FVG Filtering: Optional Fair Value Gap confirmation ensures order blocks are followed by true market imbalances
- Automatic Mitigation: Order blocks are automatically removed when price breaks through them
- Overlap Prevention: Prevents cluttered charts by avoiding overlapping order block zones
- Customizable Display: Full control over colors, labels, line heights (body/wick), and maximum blocks shown
- Dual Polarity: Detects both bullish (OB+) and bearish (OB-) order blocks independently
█ HOW IT WORKS
The indicator scans price action for fractal patterns where the middle candle forms a local extreme (highest high or lowest low among 5 bars). When price breaks above a fractal high or below a fractal low, the script identifies the last opposing candle in the impulse move as the order block.
For bearish order blocks, it finds the highest bullish candle before a fractal low is broken, marking institutional selling pressure. For bullish order blocks, it locates the lowest bearish candle before a fractal high is breached, indicating institutional buying.
When FVG filtering is enabled, the indicator confirms that a Fair Value Gap (a 3-candle imbalance where price leaves an unfilled gap) occurred within the specified distance from the order block. This combination increases the probability that institutional traders are present in these zones.
█ SETTINGS
Bullish Order Block Settings
- Show/hide bullish order blocks
- Customize fill color and border color
- Toggle OB+ label display
Bearish Order Block Settings
- Show/hide bearish order blocks
- Customize fill color and border color
- Toggle OB- label display
Label Settings
- Label size: Tiny, Small, Normal, or Large
- Label text color customization
General Settings
- Bars Back to Check (10-200): Lookback period for order block detection
- Filter by FVG: Requires Fair Value Gap confirmation
- Max Bars Between OB and FVG (1-6): Distance tolerance for FVG filtering
- Line Height: Choose between Body or Wick for order block boundaries
- Prevent Overlapping OBs: Avoids drawing overlapping zones
- Max Order Blocks to Display (1-50): Limits active blocks on chart
- Length of Boxes (10-100): Horizontal projection length
█ HOW TO USE
1. Add the indicator to your TradingView chart
2. Configure settings based on your trading timeframe and style
3. Watch for OB+ labels (bullish order blocks) as potential support zones where price may bounce
4. Watch for OB- labels (bearish order blocks) as potential resistance zones where price may reverse
5. Wait for price retracement to the order block zone before taking entries
6. Use confirmation signals like volume spikes or reversal patterns at the order block
7. Place stop loss just outside the order block boundary to manage risk
8. Monitor mitigation: Order blocks disappear when price breaks through them completely
█ TRADING STRATEGY EXAMPLES
Bullish Order Block Strategy
Wait for a market structure shift from bearish to bullish. When price creates a bullish impulse breaking a fractal high, identify the OB+ zone. Enter long positions when price retraces to test the bullish order block, placing stop loss 10-20 pips below the zone's low. Target previous highs or resistance levels.
Bearish Order Block Strategy
Monitor for market structure shift from bullish to bearish. After price creates a bearish impulse breaking a fractal low, locate the OB- zone. Enter short positions when price retraces to test the bearish order block, placing stop loss 10-20 pips above the zone's high. Target previous lows or support levels.
FVG-Confirmed Entries
Enable FVG filtering to only display order blocks validated by Fair Value Gaps. These aligned setups increase probability as they combine institutional order placement with market inefficiencies. Trade retracements to these high-confluence zones for better risk-reward ratios.
█ IDEAL FOR
- ICT Traders: Follows Inner Circle Trader methodology for institutional order flow
- Smart Money Concepts: Tracks where large players place orders
- Swing Traders: Identifies key support/resistance for multi-day holds
- Price Action Traders: Pure chart-based approach without lagging indicators
- Breakout Traders: Confirms structure breaks with fractal patterns
- Forex, Crypto, and Stock Markets: Works on all liquid markets and timeframes
█ TECHNICAL SPECIFICATIONS
- Max Boxes: 500
- Max Labels: 500
- Detection Method: 5-bar fractal pattern recognition
- Mitigation Logic: Automatic removal when price breaks order block boundaries
- Time Projection: Uses time offset calculations for box extension
- Array Management: Dynamic array cleanup to prevent memory issues
█ NOTES & DISCLAIMERS
- Order blocks work best when combined with overall market context and trend analysis
- Not all order blocks result in price reversals; use proper risk management
- FVG filtering may reduce the number of signals but increases quality
- Fractal patterns require 5 bars to form, causing a 2-bar delay in detection
- Works optimally on higher timeframes (4H, Daily) for institutional footprints
- This indicator does not guarantee profitable trades; always use stop losses
- Past performance of order blocks does not predict future results
- Compatible with other ICT concepts like liquidity sweeps and market structure
ICT Fair Value Gap [KTY]ICT Fair Value Gap Indicator
Overview
This indicator automatically detects and displays Fair Value Gaps (FVG) based on ICT (Inner Circle Trader) methodology.
Fair Value Gaps are imbalances created when price moves rapidly across three candles, leaving a gap where no trading occurred. Price tends to return to these zones, making them valuable areas for potential entries.
Key Features
Multi-Timeframe Support
Display FVGs from two different timeframes simultaneously (LTF & HTF)
HTF Fair Value Gaps provide stronger, more reliable levels
Bullish & Bearish FVG
Bullish FVG: Forms during sharp up moves → Acts as support on pullbacks
Bearish FVG: Forms during sharp down moves → Acts as resistance on bounces
Centerline (CE)
Dashed line marking the 50% level of each FVG
Key reaction level for precise entries
Mitigation Tracking
FVGs are automatically removed when price fills the gap
Option to display mitigated FVGs for reference
Volume Analysis
Displays relative volume percentage at FVG formation
Higher percentage indicates stronger momentum behind the gap
How to Use
Identify the trend on higher timeframes
Wait for price to retrace into an FVG zone
Look for reaction at the FVG, especially at the centerline (CE)
Enter within the FVG, set stop loss beyond the FVG boundary
Pro Tips:
FVGs that overlap with Order Blocks have higher probability
Fresh (untested) FVGs tend to produce stronger reactions
The middle candle being the largest of the three increases reliability
HTF FVGs are more significant than LTF FVGs
Settings
SettingDescriptionLTF / HTFEnable and select timeframes for FVG detectionBullish FVG CountNumber of Bullish FVGs to displayBearish FVG CountNumber of Bearish FVGs to displayShow Mitigated FVGToggle display of filled/mitigated FVGsLabel ColorCustomize text color inside FVG boxes
Alerts
🟢 Bullish FVG Detected
🔴 Bearish FVG Detected
🟢 Bullish FVG Touched
🔴 Bearish FVG Touched
🟢 Bullish FVG Mitigated
🔴 Bearish FVG Mitigated
Notes
This indicator is designed for educational purposes
Always combine with proper risk management
Past performance does not guarantee future results
If you find this indicator helpful, please leave a like and follow for more ICT-based tools!
Standard Deviation Linesplot standard deviation lines for 1sd, 2sd, 3sd. The user gives the data for the standard deviation and the time.
Monitor de GeisThis Pine Script indicator is a Confluence-Based Trading Dashboard designed to filter market noise and identify high-probability entries using a "Traffic Light" (Semáforo) system.
Core Features:
Triple Confirmation: It analyzes the Trend (EMA 50/200), Momentum (RSI context), and Market Structure (CHoCH/Change of Character) simultaneously.
Dynamic Decision Table: A real-time dashboard that displays the current trend ("Erecting" vs. "Deflating") and a final verdict based on total confluence (0%, 50%, or 100%).
Psychological Filters: It uses localized Chilean slang to provide direct, "no-nonsense" advice (e.g., "Don't be afraid, Buy" vs. "High risk, Stay out").
Clean Visuals: It eliminates signal saturation by only plotting a single entry dot on the chart the moment all conditions align.
EMA10/201️⃣ Trend filter is already TRUE
Price above VWAP
EMA10 > EMA20
EMA20 rising
➡ This stays TRUE for many candles in a strong uptrend.
2️⃣ Pullback condition is TRUE
1–3 red candles already happened
Price is still near EMA20
➡ This condition does not reset immediately.
3️⃣ Engulfing logic is the key problem
Your current engulfing rule is roughly:
Candle is green
Closes above previous close
Above EMA20
Now look at your chart:
First green candle → BUY
Next candle is also green, still above EMA20 → BUY again
Next candle still satisfies all conditions → BUY again
📌 Result:
👉 BUY, BUY, BUY on consecutive candles
That’s why you see 3 BUY labels together.
Cruzamento MACD 15 min sauloCruzamento macd nos 15 min, quando acontece o cruzamento o indicador da o sinal de compra e venda.
Forex Sessions UTC + customise (DST Support)This Pine Script is designed to highlight forex trading sessions on a TradingView chart, showing which session (Asia, London, New York, Frankfurt, Sydney) is active based on your selected timezone offset and daylight saving time (DST) settings. It also includes an option to highlight session overlaps, like the London-New York and Asia-London overlaps.
Let's break down the script in detail:
### 1. **Inputs**:
* **`timezoneOffset`**:
* This input allows you to select your local timezone offset in hours relative to UTC (e.g., -2 for UTC-2 or +3 for UTC+3). It helps adjust the session times based on your local time.
* **`isDST`**:
* A boolean input that determines if Daylight Saving Time (DST) is active or not. If DST is enabled, the session times will be adjusted by one hour.
### 2. **Function: `timeInDailyRange`**:
This function checks if the current time (bar) is within a given session's start and end time.
* **`startH, startM`**: Start time of the session (hours and minutes).
* **`endH, endM`**: End time of the session (hours and minutes).
* **`tzOffset`**: The timezone offset in hours (which adjusts the start and end times for different regions).
The function handles sessions that cross over midnight. For example, the Asia session starts at 23:00 UTC and ends at 07:00 UTC, so it checks if the current time falls within that period.
### 3. **Session Times (in UTC)**:
Each trading session has specific times defined in UTC:
* **Asia Session**: 23:00 UTC to 07:00 UTC
* **London Session**: 08:00 UTC to 16:00 UTC
* **New York Session**: 13:00 UTC to 21:00 UTC
* **Frankfurt Session**: 07:00 UTC to 15:00 UTC
* **Sydney Session**: 21:00 UTC to 05:00 UTC
These times are defined in 24-hour format, and they represent the opening and closing hours for each market.
The script uses specific colors to represent different sessions:
* **Asia**: Yellow (`asiaColor`)
* **London**: Red (`londonColor`)
* **New York**: Navy Blue (`nyColor`)
* **Frankfurt**: Blue (`frankfurtColor`)
* **Sydney**: Green (`sydneyColor`)
* **Overlaps**:
* London-NY overlap: Purple (`overlapLN`)
* Asia-London overlap: Orange (`overlapAL`)
These colors are used to highlight the background during active sessions.
### 5. **Session Highlighting**:
The script uses the `bgcolor` function to change the background color of the chart when a session is active.
* For each session, it checks whether the current time (bar) falls within the session's time range (adjusted by the `timezoneOffset`).
* If a session is active, it will highlight the chart background in the corresponding session color.
### 6. **Overlaps**:
* **London-NY Overlap**: The script checks if both the London session and the New York session are active at the same time (i.e., if their time ranges overlap). If so, it highlights the overlap area in purple.
* **Asia-London Overlap**: Similarly, the script checks if both the Asia and London sessions are active at the same time, and if so, it highlights the overlap area in orange.
### 7. **Daylight Saving Time (DST) Adjustment**:
* If the **`isDST`** flag is enabled (i.e., DST is active), the script adjusts the session start and end times by adding one hour to each session. This is because during DST, trading hours shift by one hour (usually in regions that observe DST).
* This adjustment is applied to all session times, so the script accounts for the time change and ensures that the session times are correctly displayed.
### 8. **Final Background Color Logic**:
* The `bgcolor` function checks whether each session is active by calling `timeInDailyRange` for each session and then colors the chart accordingly.
* It also checks for overlapping sessions and colors the chart with the appropriate overlap color.
### Example Scenario:
1. **Timezone Offset**: If you select `timezoneOffset = 3` (UTC+3), the session times will be adjusted by adding 3 hours to the start and end times.
2. **Daylight Saving Time (DST)**: If `isDST = true` is selected, the session start times will shift by 1 hour forward (e.g., 23:00 UTC becomes 00:00 UTC for Asia).
3. **Visual Outcome**: The chart will display different colors in the background depending on which trading session is active (e.g., red for London, navy for New York), and purple or orange for overlap sessions.
### Key Features:
* **Customizable Timezone Offset**: Adjust session times to reflect your local timezone.
* **Daylight Saving Time Support**: Automatically adjusts session times during DST.
* **Highlighting Sessions**: Color the chart background to visualize when different trading sessions are active.
* **Overlap Highlighting**: Highlights the periods when certain sessions overlap (London-NY, Asia-London).
In summary, this script is useful for traders who want to visually see when different forex trading sessions are active on the chart, with flexibility for timezone and DST adjustments.
CPR OI Toolkit - All in one indicatorThis is experimental indicator which is an extend my pre triple EMA indicator. I have been using this indicator to identify potential entry and exit for commodity market. I had used it for couple of week and it helps.
I would like to share with you. It is meant identify and analyze then plan your trade. I have developed this indicator using Google Antigravity , which is an awesome tool for developing trading indicator and strategies.
My CPR OI tool kit includes following.
Triple EMA
Stochastic - for trend catching
Previous Low/high base trial and visual indication
Price action concepts
Reversion logic.
Visual indication - buy / sell / setup initialization / exit
Visual dashboard.
---
## 🎨 Visual Signal Guide
| Marker | Meaning | Action |
|--------|---------|--------|
| 🔵 Tiny Blue Circle | Stochastic bullish setup START | Wait for EMA + breakout |
| 🟢 Green Triangle UP | **LONG ENTRY** - All conditions met | **ENTER LONG** |
| 🔴 Red Triangle DOWN | **SHORT ENTRY** | **ENTER SHORT** |
| 🟠 Orange Circle | **EXIT** - EMA1/2 cross | **CLOSE POSITION** |
| 💧 Aqua "R" | Mean reversion long | Scalp opportunity |
| 💜 Fuchsia "R" | Mean reversion short | Scalp opportunity |
---
## 💰 Open Interest Interpretation
| Status | Price vs Prev | OI Change | Meaning |
|--------|---------------|-----------|---------|
| **Long Accumulation**🟢 | ↑ | ↑ | Bulls building positions |
| **Short Accumulation**🔴 | ↓ | ↑ | Bears building positions |
| **Short Covering**🟡 | ↑ | ↓ | Bears exiting (bullish) |
| **Long Unwinding**🟠 | ↓ | ↓ | Bulls exiting (bearish) |
---
## 🔔 Alerts (All Enabled by Default)
1. "LONG Signal | Stochastic confirmed | EMA Bullish"
2. "SHORT Signal | Stochastic confirmed | EMA Bearish"
3. "EMA Alignment: BULLISH/BEARISH"
4. "Position CLOSED - Trailing Stop Hit"
---






















