The script SphereSample.mq5 illustrates control of graphic objects using the classes from the Standard Library (Base class of objects array CArrayObj , CChartObjectText ).
The ColorBars Indicator paints bars with different colors depending on the volume changes. If the volume has increased, the color is green, overwise the color is red.