Pivot DOTS Indicator for MT4 (with Source Code)

The Pivot DOTS Indicator for MetaTrader 4 (MT4) is a free custom tool that plots daily pivot points, support and resistance levels, and mid-level zones directly on your chart. Originally created by MetaQuotes Software Corp. and later enhanced by IgorAD from Forex-TSD, this indicator remains one of the most useful price structure tools ever made for intraday and swing traders. The version here includes the full MQL4 source code, allowing traders and developers to modify it, re-style it, or integrate it into their own automated systems.

What the Pivot DOTS Indicator Does

This indicator automatically calculates daily pivot points using the previous dayโ€™s high, low, and close values. From that, it plots the main pivot (P) line, three resistance levels (R1, R2, R3), three support levels (S1, S2, S3), and intermediate or โ€œmidpointโ€ levels (M0โ€“M5) between the pivots. The logic behind these levels is based on classical floor trader formulas that identify where price is likely to find balance, rejection, or continuation zones during the trading day.

Each level is drawn as a dot-style marker (instead of horizontal lines), giving a clean, minimalistic visual layout. This makes the chart less cluttered compared to traditional pivot indicators, especially when applied to multiple instruments or timeframes. The pivot dots can be color-coded โ€” typically Lime for central pivot, Blue for resistance levels, and Red for support zones โ€” with mid-levels marked in different shades for distinction.

  • When price stays above the central pivot, the day is typically bullish.
  • When price remains below the central pivot, the day is bearish.
  • Reaction zones around R1/R2 and S1/S2 often reveal profit-taking or breakout continuation zones.

Download the Pivot DOTS Indicator for MT4

You can download both the ready-to-use EX4 file and the editable MQ4 source code for free below.

How It Works Internally

The code uses daily candle data to calculate key levels. It first determines the previous dayโ€™s high, low, and close, storing those as variables for pivot computation. Using these values, it computes:

  • P = (High + Low + Close) / 3
  • R1 = (2 ร— P) โˆ’ Low, R2 = P + (High โˆ’ Low), R3 = (2 ร— P) + (High โˆ’ (2 ร— Low))
  • S1 = (2 ร— P) โˆ’ High, S2 = P โˆ’ (High โˆ’ Low), S3 = (2 ร— P) โˆ’ ((2 ร— High) โˆ’ Low)

The indicator also computes midpoints (M0โ€“M5) between each major level to create a smooth structure of price reaction zones.

Internally, functions like ObjDel() and PlotLine() handle object creation and deletion to ensure that pivot dots refresh every new day. The script uses ObjectCreate() to draw each arrow (dot) and label. Each label โ€” such as โ€œR1,โ€ โ€œS1,โ€ โ€œPivot,โ€ or โ€œM3โ€ โ€” is positioned precisely using a small Shift value so that it does not overlap with price bars. The GMT shift input allows traders to align the pivot start time with their brokerโ€™s server time or their local session time (useful when analyzing London, New York, or Asian sessions).

How to Install the Pivot DOTS Indicator on MT4

To install the Pivot DOTS indicator on your MetaTrader 4 platform:

  1. Open your MetaTrader 4 terminal.
  2. In the top menu, click File โ†’ Open Data Folder.
  3. Go to the MQL4 โ†’ Indicators directory.
  4. Paste the downloaded file Pivot_DOTS.mq4 or Pivot_DOTS.ex4 into that folder.
  5. Close the folder and restart MetaTrader 4 to refresh your indicator list.
  6. Open the Navigator panel (press Ctrl+N if hidden).
  7. Right-click on โ€œIndicatorsโ€ and click Refresh.
  8. Locate Pivot_DOTS in your custom indicators list.
  9. Drag and drop it onto any chart.
  10. Adjust parameters like GMTshift, DOT_Type, Colors, and Label visibility according to your preference.

After loading, youโ€™ll see a grid of color-coded dots representing pivots, supports, resistances, and mid-levels for the current day.

Key Features and Inputs

  • GMTshift โ€” Aligns pivot calculations with your brokerโ€™s or session time.
  • Plot_PIVOTS โ€” Toggles the display of the main pivot and S/R levels.
  • Plot_M_Levels โ€” Turns midpoint levels on or off.
  • DOT_Type โ€” Controls the shape of the dot marker (arrow code).
  • Central_PIVOT / R1_R2_R3 / S1_S2_S3 Colors โ€” Customize your color scheme.
  • ShowPivotLabels โ€” Enables or disables the label names like R1 or S2.
  • ShiftPivotLabels & AdjustLabel_UP_DN โ€” Fine-tune label positions for visibility.
  • Show_StartTime โ€” Draws a vertical line marking the start of the trading day.
Pivot DOTS Indicator for MT4 (with Source Code)

How to Use the Pivot DOTS Indicator

Pivot DOTS serves as both a bias filter and a trade planning tool. Hereโ€™s how traders typically use it:

1. Determining Daily Bias
Check whether price opens above or below the central pivot (P).

  • Above P โ†’ look for buy setups.
  • Below P โ†’ look for sell setups.

This quick check provides immediate directional context for the day.

2. Using Support and Resistance Levels
Price often reacts to R1, R2, S1, and S2. When price hits one of these levels with a reversal pattern, it signals potential exhaustion. When it breaks beyond them, it suggests strong continuation.

3. Intraday Entries and Exits
Scalpers may buy near S1/S2 with tight stops or short near R1/R2. Swing traders may wait for breakouts beyond R2 or S2 to trade trend extensions. The mid-levels (M0โ€“M5) work as micro zones for smaller timeframes (like M5 or M15), identifying interim pullback points.

4. Combining with Other Indicators
Many traders overlay Pivot DOTS with indicators such as RSI, CCI, or Bollinger Bands to confirm momentum. The combination of price structure (pivots) and oscillator divergence often produces strong high-probability entries.

5. Visual Clarity
Unlike line-based pivot tools, the dot visualization makes it easy to see active zones without obstructing candlestick patterns. This is ideal for traders who rely heavily on price action.

JustMarkets

Benefits of Using the Source Code (.mq4)

One of the biggest advantages of this version is that it includes the full MQL4 source code. Developers can open it in MetaEditor and explore how each pivot and object is constructed.
You can:

  • Change pivot formulas to weekly or monthly levels.
  • Modify arrow types and spacing.
  • Integrate alerts or notifications when price touches R1/S1.
  • Convert it into an Expert Advisor (EA) that trades based on pivot breaks.
  • Optimize parameters for synthetic indices or forex pairs.

Having access to editable code transforms this indicator into both a learning resource and a development foundation.

Why Pivot Points Still Work

Pivot points remain a cornerstone of market structure analysis. Institutions, day traders, and algorithms all use them because they are based on universal mathematical levels โ€” not broker-specific data. Even in modern electronic markets, prices often gravitate to pivots, pause, and react.

โš ๏ธ Educational Use and Risk Disclaimer

This indicator is provided for educational purposes only. It does not guarantee trading success or profit. All trading involves risk, and you should always test new indicators on a demo account before using them on a live account. If you modify or compile the source code, you are responsible for the results and performance of the version you use.

Download the Pivot DOTS Indicator for MT4

You can download both the ready-to-use EX4 file and the editable MQ4 source code for free below.

Learn More About Pivot Points

These trusted external resources explain how pivot points work, how to calculate them, and how professional traders apply them in forex and synthetic index trading.

Share your love
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments