Session Buffer Lines
- Indicateurs
-
Fabrizio Battaglini
I develop MetaTrader 5 tools, custom indicators, Expert Advisors and trading automation utilities. - Version: 1.0
Session Buffer Lines is a lightweight MetaTrader 5 indicator that marks the main trading sessions directly on the chart and exposes session information through indicator buffers.
The indicator draws configurable vertical markers for Tokyo, London, New York and the London-New York overlap. It is designed for traders who want a clean visual reference for session timing, and also for developers who want to read session open/close information from an Expert Advisor.
Main features:
- Tokyo, London, New York and London-New York overlap markers.
- Configurable session hours based on New York time.
- Broker server offset and daylight-saving adjustment.
- Individual visibility controls for each session.
- Custom colors and line widths.
- Solid and dotted line styles to separate open and close markers.
- Optional chart object labels.
- EA-readable buffers for session open/close events.
- No DLLs, no WebRequest calls and no external file dependencies.
EA-readable buffers:
- Buffer 0: Tokyo Open
- Buffer 1: Tokyo Close
- Buffer 2: London Open
- Buffer 3: London Close
- Buffer 4: New York Open
- Buffer 5: New York Close
- Buffer 6: Overlap Open
- Buffer 7: Overlap Close
When there is no session marker on a bar, the buffer value is EMPTY_VALUE. When a session marker is present, the corresponding buffer receives the bar high value, making it easy for an EA to detect the event with iCustom().
Important note:
Broker server time can vary between brokers. Adjust the broker-server offset and daylight-saving input so that the plotted sessions match your broker's time zone.
This indicator does not provide buy or sell signals. It is a visual and technical utility for session timing and EA integration.
Disclaimer:
This product is a technical indicator and utility tool. It does not provide financial advice, trading recommendations or guaranteed trading results. Trading involves risk, and users are responsible for their own decisions.
