DinexSpace Rolling Drawdown from High
- 지표
- 버전: 1.0
DinexSpace Rolling Drawdown from High is an indicator for MetaTrader 5 (MT5) that shows how far the close of each closed bar is below the highest close of the last N bars, in percent. It is 0 when the close is at the highest close of the window and negative when it is lower. It describes the past; it does not forecast.
The rule
- For each closed bar, take the highest close of the last N bars, the bar itself included.
- The value is the close divided by that highest close, minus 1, in percent.
- The panel also shows the number of bars since that highest close and the deepest value of the last 3 x N bars.
What you get
- Bars in their own window: 0 at the high of the window, negative below it, with dotted lines at zero and at two levels you set (−2 and −5 percent by default).
- Three colours: blue when the close is above the first level, amber between the two levels, red below the second level.
- Panel on the chart: the current value, the bars since the high and the deepest value of the last 3 x N bars. You can turn it off or move it to any corner.
- Closed bars only, on any symbol and any timeframe. The number of bars calculated is an input.
How to use it
- Copy DinexRollingDrawdown.ex5 to MQL5\Indicators, or find it in the Navigator under Indicators > Market.
- Drag it onto a chart and choose the window and the two levels.
- Read the bars and the panel.
Checked
A test Expert Advisor reads the four indicator buffers on every new bar in the Strategy Tester and compares each value with a separate calculation over the close prices, on EURUSD H1 and GBPUSD M15 and with different windows and levels. It prints the number of checks and the number of failed checks.
Notes
- The window is a number of bars of the chart you attach it to. On a weekend gap or a thin session the value follows the closes of the chart.
- The text of the panel is built from the same buffers that the bars show.
- The indicator describes what has already happened. It gives no entries or exits and does not predict any move.
Requirements
- MetaTrader 5, any symbol and timeframe.
