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

Source code library - Expert Advisors, Indicators and Scripts

The Largest Collection of Forex Robots is on Display in MQL 5 Code Base
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

2013.08.02 19:27

DeMarker_HTF - indicator for MetaTrader 5

| English Russian Chinese Spanish Portuguese

votes: 18

Real author:



DeMark's Oscillator with an option of setting a fixed timeframe for the calculation of the indicator in the input parameters.

//| Indicator input parameters          |
input ENUM_TIMEFRAMES TimeFrame=PERIOD_H4; // Chart period
input uint DeMarker_Period=14;             // Averaging period
input int Shift=0;                         // Horizontal shift of the indicator in bars
This indicator was first implemented in MQL4 and published in Code Base at on 04.04.2008.


Figure 1. The DeMarker_HTF indicator

Figure 1. The DeMarker_HTF indicator

Translated from Russian by MetaQuotes Software Corp.
Original code: