Loading…

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 · MT5 · v1.0 · Free

About Week And Month Separators

Week And Month Separators is an indicator for MetaTrader 5. It has 8 settings, such as Show weeks, Week color and Week style. MQL source code included.

Files in the download: PeriodSeparators.ex5, PeriodSeparators.mq5, PeriodSeparators.txt.

Settings

SettingDefaultWhat it does
Show weekstrueShow week separators
Week colorclrSilverWeek separator colour
Week styleSTYLE_DOTWeek separator style
Show monthstrueShow month separators
Month colorclrDodgerBlueMonth separator colour
Month styleSTYLE_DASHMonth separator style
Days back180Calendar days of history to mark
Show labelstrueShow month labels (week lines stay unlabelled to avoid clutter)

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 5 open File → Open Data Folder, then go to MQL5 → Indicators.
  3. Copy the .mq5 file(s) there. Put any .mqh files in MQL5 → Include.
  4. Open the .mq5 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the indicator from the Navigator onto a chart and adjust the settings.

Download the PDF guide

Tags: MT5 Indicator · MQL5 Source Code

MetaTrader 4 & 5 indicators · PolyMaria