Skip to content

CCurve

CCurve

The CCurve class works with the properties of the curves generated on the chart.

Description

The CCurve class sets, installs and receives the coordinates and various properties of the curves when working with the CGraphic class.

There are three curve plotting modes: dots, lines and histogram. Separate parameters are implemented for each plotting mode in the class.

Declaration

class CCurve : public CObject

Title

#include <Graphics\Curve.mqh>

Inheritance hierarchy

CObject

CCurve

Class methods

MethodDescription
TypeGet the curve type
NameGet the curve name
ColorGet the curve color
XMaxGet the maximum value of the X function
XMinGet the minimum value of the X function
YMaxGet the maximum value of the Y function
YMinGet the minimum value of the Y function
SizeGet the number of dots defining a curve
PointsSizeGet/set the linear size of dots defining a curve
PointsFillGet/set the flag for filling dots defining a curve
PointsColorGet/set the dot filling color
GetXGets X values of all curve dots to the array
GetYGets Y values of all curve dots to the array
LinesStyleGet/set a line style when plotting a curve using lines
LinesIsSmoothGet/set the smoothing flag when drawing using lines
LinesSmoothTensionGet/set the curve smoothing parameter when drawing using lines
LinesSmoothStepGet/set the length of the approximating lines for smoothing when plotting by lines
LinesWidthGet/set a line width when plotting a curve using lines
HistogramWidthGet/set the width of columns when plotting using a histogram
CustomPlotCBDataGet/set the pointer to the object to be used in the custom curve plotting mode.
CustomPlotFunctionGet/set the pointer to the function implementing the custom curve plotting mode.
PointsTypeGet/set the flag pointing at the type of dots used when plotting a dotted curve.
StepsDimensionGet/set the value indicating the dimension used in step-type curve rendering.
TrendLineCoefficientsGet/set trend line ratios for writing them into an array.
TrendLineColorGet/set a color of a trend line for a curve.
TrendLineVisibleGet/set the trend line visibility flag.
UpdateUpdate the curve coordinates.
VisibleGet/set the flag defining if a function is visible on the chart.

Methods inherited from class CObject

: Prev, Prev, Next, Next, Save, Load, Compare

Last updated on