Watch how to download trading robots for free

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

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

votes: 13
2012.10.12 08:26
2016.11.22 07:32
macd_atr.mq5 (7.89 KB)view

Real author:


The indicator is simple enough. When MACD is in positive area its values are shifted downwards by the amount of ATR, when MACD is in negative area, its values are shifted upwards.

Therefore, the resulting curve enters the same area with MACD only when the value of the latter one is big enough to cover the value of the trading range. Besides, this method allows users to track decreasing of ATR at the end of the movement – the resulting curve enters the area where MACD is located at the moment.

Blue line - result of MACD shift by ATR. Highlighted histogram bars indicate places where MACD and shift result have the same sign (±).

The additional condition for their emerging is MACD slope in the direction of the price movement. 



This indicator was first implemented in MQL4 and published in Code Base at 18.08.2011 (in Russian). 

Translated from Russian by MetaQuotes Software Corp.
Original code:

ColorStochastic_HTF ColorStochastic_HTF

Standard Stochastic oscillator displayed as a cloud that can be located by setting the indicator timeframe value different from the chart one.

PositionInfo PositionInfo

The simple indicator for displaying some relevant information about a position right in the chart window.

XprofuterDD XprofuterDD

XprofuterDD presents an attempt to predict the future price behavior.

XprofuterOverlay XprofuterOverlay

XprofuterOverlay shows the line of the price future movement.