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

Automated Trading Language Documentation

The Largest Collection of Forex Robots is on Display in MQL 5 Code Base

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)
   )

Parameters

new_color

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

Returned value

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


Updated: 2014.08.27