PROTECTED SOURCE SCRIPT

Session + FVG + Order Blocks + EMAs

196
1. Overall Purpose
This indicator combines four key functions into one pane to help you:

Highlight major market sessions (Asia, London, New York)

Plot Fair Value Gaps (FVG) and Order Blocks

Display up to four fully customizable Exponential Moving Averages (EMAs)

Shift all times via a configurable UTC offset

Together, these features let you see session activity zones, price imbalances, and underlying trend direction all at a glance.


2. Time Zone
Input: “Time Zone”

Set your chart’s UTC offset (e.g. “UTC+2”) so that each session box aligns with your local clock.

3. Market Sessions
Each session is drawn as a shaded rectangle labeled by name:

Session Default UTC Hours Color Toggle Visibility
Asia 00:00 – 08:15 Light blue fill ☑️ Show Asia session
London 09:00 – 12:00 Light green fill ☑️ Show London session
New York 14:30 – 18:00 Soft red fill ☑️ Show NY session

Enable or disable each session via its checkbox.

Adjust start/end times and the fill color for any session.

Border style and thickness are set in “Box Line Style” and “Box Line Thickness.”

4. Fair Value Gaps & Order Blocks
Controls for identifying imbalances and institutional zones:

Setting Description
Max Blocks Maximum number of gaps/order-blocks to display
Filter Gaps by % Only show gaps larger than this percentage
Lookback Bars How many bars back to scan for gaps and blocks
Bullish OB/FVG Color Fill color for bullish blocks & gaps
Bearish OB/FVG Color Fill color for bearish blocks & gaps
Show Fair Value Gaps Toggle visibility of FVG rectangles
Show Order Blocks Toggle visibility of Order Block rectangles

Fair Value Gaps mark small untraded price areas.

Order Blocks highlight previous zones of major buying or selling.

5. EMAs (Exponential Moving Averages)
Up to four EMAs can be displayed independently:

EMA Enable? Length (periods) Color
EMA 1 ☑️ Show EMA 1 20 Orange
EMA 2 ☑️ Show EMA 2 50 Blue
EMA 3 ☑️ Show EMA 3 100 Green
EMA 4 ☑️ Show EMA 4 200 Red

Tick the box to plot an EMA on your chart.

Change its length to match your strategy’s lookback.

Pick a color that stands out against your background.

6. Recommended Workflow
Set your Time Zone so session boxes align with your local trading hours.

Enable only the sessions you trade (e.g. deselect Asia if you focus on London & NY).

Tweak FVG/Order Block parameters:

Adjust Lookback Bars and Filter Gaps by % to fine-tune the number of zones.

Customize your EMAs (periods and colors) to suit your trend-following or mean-reversion approach.

Combine the layers: watch how price behaves within session boxes, around FVG/Order Blocks, and relative to your EMAs to plan entries and exits.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.