Week And Month Separators
Day Separators covers intraday day boundaries; this indicator is the sibling for the two coarser boundaries a swing trader actually plans around - the trading week and the calendar month - drawn together so neither needs its own separate indicator slot. Week starts are detected by day-of-week rather than a fixed day count, so a holiday that removes Monday's bar does not push the line onto Tuesday by mistake and does not leave the week undetected - the line simply lands on whichever bar is first that week. Month lines get a text label (month and year); week lines stay unlabelled by default to avoid cluttering an already busy chart with two label styles. Notes and limitations - Week and month boundaries follow the terminal's server time. - On weekly or monthly charts the corresponding separator effectively marks every bar; this is intended for daily and lower timeframes. - Purely cosmetic: it does not evaluate or signal anything about price, so there is nothing here that can repaint. - Week lines have no label by design, to keep two overlapping boundary types readable on one chart; disable InpShowWeeks if only monthly structure is wanted.
Indicator · MT4 · v1.0 · Free
About Week And Month Separators
Week And Month Separators is an indicator for MetaTrader 4. It has 8 settings, such as Show weeks, Week color and Week style. MQL source code included.
Files in the download: PeriodSeparators.ex4, PeriodSeparators.mq4, PeriodSeparators.txt.
Settings
| Setting | Default | What it does |
|---|---|---|
| Show weeks | true | Show week separators |
| Week color | clrSilver | Week separator colour |
| Week style | STYLE_DOT | Week separator style |
| Show months | true | Show month separators |
| Month color | clrDodgerBlue | Month separator colour |
| Month style | STYLE_DASH | Month separator style |
| Days back | 180 | Calendar days of history to mark |
| Show labels | true | Show month labels (week lines stay unlabelled to avoid clutter) |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Indicators.
- Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
- Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the indicator from the Navigator onto a chart and adjust the settings.
Tags: MT4 Indicator · MQL4 Source Code