Skip to content

CChartObject

CChartObject

CChartObject is a base class for the classes of chart graphical objects of the Standard MQL5 library.

Description

CChartObject class provides the simplified access to MQL5 API functions for all of its descendants.

Declaration

class CChartObject : public CObject

Title

#include <ChartObjects\ChartObject.mqh>

Inheritance hierarchy

CObject

CChartObject

Direct descendants

: CChartObjectArrow, CChartObjectBitmap, CChartObjectBmpLabel, CChartObjectCycles, CChartObjectElliottWave3, CChartObjectEllipse, CChartObjectFiboArc, CChartObjectFiboFan, CChartObjectFiboTimes, CChartObjectHLine, CChartObjectRectangle, CChartObjectSubChart, CChartObjectText, CChartObjectTrend, CChartObjectTriangle, CChartObjectVLine

Class Methods by Groups

Attributes
ChartIdGets the ID of the chart a graphical object belongs to
WindowGets the number of a chart window where a graphical object is located
NameGets/sets the name of a graphical object
NumPointsGets the number of anchor points
Assign
AttachBinds a chart graphical object
SetPointSets the anchor point parameters
Delete
DeleteDeletes a chart graphical object
DetachDetaches a chart graphical object
Shift
ShiftObjectThe relative object shift
ShiftPointThe relative object point shift
Object properties
TimeGets/sets the time coordinates of an object point
PriceGets/sets the price coordinate of an object point
ColorGets/sets the color of the object
StyleGets/sets the object line style
WidthGets/sets the object line width
BackGroundGets/sets the flag of drawing an object in the background
SelectedGets/sets the “selected” flag of a graphical object
SelectableGets/sets the selectable object flag
DescriptionGets/sets the text of the object
TooltipGets/sets the tooltip of the object
TimeframesGets/sets the mask of the object visibility flags
Z_OrderGets/sets the graphical object priority for receiving an event of mouse clicking on a chart
CreateTimeGets the time of the object creation
Object level properties
LevelsCountGets/sets the number of object levels
LevelColorGets/sets the level line color
LevelStyleGets/sets the level line style
LevelWidthGets/sets the level line width
LevelValueGets/sets the level
LevelDescriptionGets/sets the level text
Access to API MQL5 functions
GetIntegerGets the value of the object property
SetIntegerSets the value of the object property
GetDoubleGets the value of the object property
SetDoubleSets the value of the object property
GetStringGets the value of the object property
SetStringSets the value of the object property
Input/Output
virtual SaveVirtual method of writing to a file
virtual LoadVirtual method of reading from a file
virtual TypeVirtual method of identification

Methods inherited from class CObject

: Prev, Prev, Next, Next, Compare

Last updated on