MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Source code library - Expert Advisors, Indicators and Scripts

Copy Trading Works. Select a Signal!
To post a new code, please log in or register

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2012.12.05 10:47
Pivot Lines TimeZone

Pivot Lines TimeZone - indicator for MetaTrader 5

| English Russian Chinese Spanish Portuguese

votes: 13

The indicator is rewritten from MQL4, the author Alejandro Galindo, published by Scriptor, link to the source -

How it works

The indicator draws the Pivot levels, the Pivot sublevels and the Camarilla levels.

Levels can be displayed by indicator buffers (by the whole history) and/or only current levels by horizontal lines.

Drawing levels using the indicator buffers. 

Drawing levels using the horizontal lines.


  • DayStartHour - Hour of day start.
  • DayStartMinute - Minutes of day start.
  • PivotsBuffers - Draw the Pivot levels using the indicator buffers.
  • MidpivotsBuffers - Draw the Pivot sublevels using the indicator buffers.
  • CamarillaBuffers - Draw the Camarilla levels using the indicator buffers.
  • PivotsLines - Draw the current Pivot levels using the horizontal lines.
  • MidpivotsLines - Draw the current Pivot sublevels using the horizontal lines.
  • CamarillaLines - Draw the current Camarilla levels using the horizontal lines.
  • ClrPivot - Color of the Pivot horizontal line.
  • ClrS - Color of S1, S2, S3 horizontal lines.
  • ClrR - Color of R1, R2, R3 horizontal lines.
  • ClrM - Color of M0, M1, M2, M3, M4, M5 horizontal lines.
  • ClrCamarilla - Color of the Camarilla horizontal lines.
  • ClrTxt - Color of texts with horizontal lines names.
  • AttachSundToMond - Attach Sunday bars to Monday.

Translated from Russian by MetaQuotes Software Corp.
Original code: