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

Source code library - Expert Advisors, Indicators and Scripts

Freelancer services needed to perform 150+ jobs of traders
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

2005.12.23 15:53

DailyPivotPoints - indicator for MetaTrader 4

| English Spanish Portuguese Russian Chinese

votes: 3

    The DailyPivot Points indicator helps to get the idea of the future market movements, unlike other tools that are usually behind the market. Information that has become available during the previous day is used to calculate reference points for short trends of the current day.

    Pivot Point (PP) is the balance point, a level to which the price gravitates during the day. Having got three values of the previous day (High, Low, Close), one can calculate 13 levels for smaller timeframes: balance point, 6 resistance levels, and 6 support levels. These levels are named reference points. Reference points allow easy determination of changes in the short trend. The most important are the following three values: pivot point levels, Resistance1 (RES1.0), and Support1 (SUP1.0). When the price moves between these values, breaks are often to be seen in the movement, even returns.

    Thus, the DailyPivot Points indicator:

  • forecasts the range of price fluctuations;

  • shows where the price can stop;

  • shows possible point of changes in the price movement direction.

    If the market at the current day is opened above the pivot point level, that this is a signal for opening long position. If the market is opened below the pivot point level, that current day is favouring for opening short position.

    The technique using pivot points consists in following and detecting probable turns or breakdowns at the price clashing the levels of resistance RES1.0 or support SUP1.0. By the moment of price reaching levels of RES2.0, RES3.0 or SUP2.0, SUP3.0, the market has normally been overbought or oversold, so these levels are mostly used as exit levels.


  Based on HIGH, LOW and CLOSE of the previous day, new values are generated Pivot Point (PP), Resistance1 (RES1.0), Resistance2 (RES2.0), Resistance3(RES3.0), Support1 (SUP1.0), Support2 (SUP2.0) and Support3 (SUP3.0), as well as intermediate values: Resistance0.5(RES0.5), Resistance1.5 (RES1.5), Resistance2.5 (RES2.5), Support0.5(SUP0.5), Support1.5 (SUP1.5) and Support2.5 (SUP2.5). Thus, the highest and lowest prices of the previous day are projected on the future.

    PP = (HIGH + LOW + CLOSE) / 3

    RES1.0 = 2*PP - LOW

    RES2.0 = PP + (HIGH -LOW)

    RES3.0 = 2*PP + (HIGH – 2*LOW)

    SUP1.0 = 2*PP – HIGH

    SUP2.0 = PP - (HIGH – LOW)

    SUP3.0 = 2*PP - (2*HIGH – LOW)

    RES0.5 = (PP + RES1.0) / 2

    RES1.5 = (RES1.0 + RES2.0) / 2

    RES2.5 = (RES2.0 + RES3.0) / 2

    SUP0.5 = (PP + SUP1.0) / 2

    SUP1.5 = (SUP1.0 + SUP2.0) / 2

    SUP2.5 = (SUP2.0 + SUP3.0) / 2

HIGH — the highest price of the previous day;
LOW — the lowest price of the previous day;
CLOSE — close price of the previous day;
PP — pivot point (typical price of the previous day);
RES0.5, RES1.0, RES1.5, RES2.0, RES2.5, RES3.0 — reference points (resistance levels);
SUP0.5, SUP1.0, SUP1.5, SUP2.0, SUP2.5, SUP3.0 — reference points (support points).

Translated from Russian by MetaQuotes Software Corp.
Original code:

Last comments | Go to discussion (5)
MQL4 Comments
mql4_comments | 28 Nov 2006 at 17:49
what is the solid blue line on the chart mean?
MQL4 Comments
mql4_comments | 2 Feb 2007 at 01:05
It is the daily pivot price, day after day.
MQL4 Comments
mql4_comments | 17 Mar 2007 at 09:20
How do I apply this indicator? How can I get the RES or SUP level from iCustom() ? Anyone Pls help me. thanks.
MQL4 Comments
mql4_comments | 22 Mar 2008 at 11:58
sadly this good indicator is crashing my computer...
MQL4 Comments
mql4_comments | 26 Feb 2011 at 14:31
What a terrific indicator. Pivot Points clarifies entries & exit targets when used in conjunction with other indicators, in aid of successful trade execution. Thank you.