New free code from MQL5: indicators, EAs, and scripts for traders.
Real author:
ycomp
DeMark's Oscillator with an option of setting a fixed timeframe for the calculation of the indicator in the input parameters.
Trade the powerful Traders Dynamic Index strategy automatically with this dedicated TDI Expert Advisor. More details.
//+-------------------------------------+ //| 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 barsThis indicator was first implemented in MQL4 and published in Code Base at mql4.com on 04.04.2008.

Figure 1. The DeMarker_HTF indicator
Level up your trading with professional RobotFX expert advisors and indicators. Visit www.robotfx.org for proven MT4/MT5 tools.
1770