Custom Session Range Indicator
- Indicadores
-
Denis Kislicyn
I recently joined the MQL5 platform as a freelancer, so I have a few reviews and completed projects. On the other hand, I’m a skilled coder with 15+ years of experience in C#, C++, Python, JS, Pascal, Lua, MQL, Visual Basic, 1C, X++, ABAP, and other languages. - Versão: 1.0
SessionRange-MT5-Ind is an indicator for MetaTrader 5 that builds a High/Low/Middle channel based on the given trading session.
Indicator:
- Defines the session range - builds a channel based on a given high/low window
- Draws three lines:
- SessionTop (blue) — maximum session
- SessionMiddle (grey) — channel center
- SessionBottom (orange) — minumum session
- Session mode (Mode):
- `Previous Day` — for classical PDH/PDL (previous day range)
- `Current Day` — to display the current day’s sessions
- Supports night sessions - correctly handles transition through midnight
- Caching calculations - optimized performance
Inputs
- `StartHour`: Session start time [0-23]
- Default: `9`
- `StartMin`: Minute of session start [0-59]
- Default: `0`
- `EndHour`: Session end time [0-23]
- Default: `18`
- `EndMin`: Minute at the end of the session [0-59]
- Default: `0`
- `Mode`: Session mode
- `Current Day`
- `Previous Day`
- Default: `Current Day`
