Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Session Daylight Gradient – ​​Ambient Forex Session Coverage – MetaTrader 5 Script | Forex Indicator Download – MT4/MT5 Resource

author EAcpu | 6 reads | 0 comments |

Session Daylight Gradient — Ambient Forex Session Overlay - indicator for MetaTrader 5

Session Daylight Gradient — Ambient Forex Session Overlay - indicator for MetaTrader 5

Session Daylight Ramp is an ambient session-aware MetaTrader 5 indicator.
Instead of drawing heavy conversation boxes, it uses soft background gradients to visually convey current market conditions—quiet periods, rising activity, volatility spikes, and fades—at a glance.

This helps traders stay consistent with typical session behavior without cluttering the chart.

Meeting daylight background:
Color gradient that changes smoothly over the trading day:

Pacific (Quiet/Reset)

Asia (range/consolidation)

London (increased activity)

London/New York overlap (surge peak)

New York fades into the Pacific Ocean

Session event tag (optional):
Vertical dividers and compact labels for key events, such as:

Asian Open/Asian Close

London Open/London Course

New York Open (overlap start)

New York Close/Pacific Open

Sunlight (optional):
Add highlighted time windows for scheduled events such as economic news.
You can enter multiple times into a simple list, and each time a "sunshine" band is drawn around the timestamp.

Most session metrics display a box that dominates the chart. This metric focuses on low-noise, high-information visuals :

You instantly sense whether you are in a calm period or a volatile period.

The background is subtle (opacity is adjustable) so price action remains top priority.

Event markers provide structure without forcing you to read a schedule every day.

Markets trade globally, but brokers and PCs can use different time references.
The indicator offers three modes:

Universal Time — Recommended for consistent global session definitions.

Broker/Server Time — Use your broker’s server time (chart time).

Computer local time —Use your computer's local time.

Additionally, you can apply Manual Daylight Savings Adjustment (Hour) to correct situations where daylight saving time causes a one-hour offset in session alignment.

EnableGradient — Enable/disable background gradient.

EnableSunrays — Enable/disable news highlight strips.

SessionTimeMode — Select UTC/Broker-Server/PC Local.

ManualDSTShiftHours — Manually toggle session references by hours (+1 / -1 / 0).

Customize the session window using a simple string:

Asia Start/Asia End

London Open begins/London Open ends

overlap start/overlap end

New York shutdown begins / New York shutdown ends

Pacific starting point/Pacific ending point (ends at midnight by design)

Pacific color, Asian color, London color, New York color

MaxOpacity — Controls how subtle the background is (0–255).

SmoothingStrength — Smooth transition strength.

show conversation line

Conversation line color, conversation line style, conversation line width

SunrayTimes — Example: 14:30; 16:00 or 2026-01-11 14:30; 16:00

SunrayWidthMinutes, SunrayOpacity, SunrayColor

The indicator only draws the visible range of chart objects (rectangles/lines/texts) plus the buffer zone for the following purposes.
If you are using very short time frames and a large amount of visible history, consider reducing the visible bars or disabling certain visual features for maximum responsiveness.

Attach indicators to any chart.

Set the session time mode to Universal Time (recommended).

If sessions appear to shift, adjust ManualDSTShiftHours.

Enable ShowSessionLines for a clearer structure.

If you want news/event highlights, add SunrayTimes.


Attachment download

📎Session -Daylight-Gradient.mq5 (68.04 KB)

Source: MQL5 #68147

Verification code Refresh