Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

Metatrader 4 Indicators | MACD_color | Free Download

Explore the latest free tools from the MQL5 community. Here's a new indicator, expert advisor, or script for MetaTrader.

Author: Korey


In manual trading, watching how zero bar is forming makes you impatient in vain.

Zero bar is often out of control in automated trading, because it is considered as not-yet formed.

Watch in-depth trading tutorials and EA reviews on the RobotFX YouTube channel. Subscribe for free tips.

From these considerations, we concluded that it would be useless to display zero bar of the indicator due to false signals that occur while it was being formed.

However, it is possible and necessary to display the indicator signal line on zero bar, since this line is rather integrated, i.e., forecast functions of the signal line are retained on zero bar.



It is proposed to evaluate an indicator that does not display zero bar, but displays the signal line on zero bar.

The indicator is colored in the B. Williams' AC/AO style.

If the next bar is below the preceding one, then the down-color=red.

If the next bar is above the preceding one, then the up-color=green.

Image for MACD_color

Recommendations:

You can restore displaying of zero bar directly in the indicator's code

a) no zero bar displayed: if(i>=1),

b) zero bar displayed:


Level up your trading with professional RobotFX expert advisors and indicators. Visit robotfx.org for proven MT4/MT5 tools.

8066

Best MetaTrader Indicators + Profitable Expert Advisors