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

Automated Trading Language Documentation

ColorForeground (Get Method)

Gets the value of "ColorForeground" property (color of axes, scale and OHLC strings of the chart).

color  ColorForeground() const

Returned value

Value of "ColorForeground" property of the chart, assigned to the class instance. If there is no chart assigned, it returns CLR_NONE.

ColorForeground (Set Method)

Sets new value for "ColorForeground" property (for axes, scale, and OHLC string).

bool  ColorForeground(
   color  new_color      // New color



[in]  New color for axes, scale and OHLC string.

Returned value

true if successful, false if color hasn't changed.

Updated: 2014.10.23