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

Automated Trading Language Documentation

ColorVolumes (Get Method)

Gets the value of "ColorVolumes" property (color for volumes and levels of opened positions).

color  ColorVolumes() const

Returned value

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

ColorVolumes (Set Method)

Sets new value for "ColorVolumes" property.

bool  ColorVolumes(
   color  new_color      // new color of the volumes (open position levels)



[in]  New color of the volumes (open position levels).

Returned value

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

Updated: 2014.10.23