Skip to content

ChartArea

Summary

The Chart Area Interface.

Signature

1
public abstract interface ChartArea

Namespace

cAlgo.API

Methods

Name Description
DrawArrow Draws an arrow.
AddControl Adds a chart control from the Control Base to the main chart area or to the indicator area.
RemoveControl Remove a chart control from the chart area.
SetYRange Sets the Y-axis lowest and highest values range. Allows scrolling the chart by the Y-axis. If only one of the values is set, then the chart will be expanded regarding the lowest or highest value respectively.
FindAllObjects Finds all the chart objects of the specified type.
FindObject Finds the chart object of the specified name.
RemoveObject Removes the chart object of the specified name.
RemoveAllObjects Removes all interactive and non-interactive objects available for the cBot or Indicator.
DrawHorizontalLine Draws a horizontal line.
DrawVerticalLine Draws a vertical line.
DrawTrendLine Draws a trend line.
DrawEquidistantChannel Draws an equidistant channel.
DrawText Draws the text.
DrawStaticText Draws the static text.
DrawIcon Draws an icon.
DrawFibonacciRetracement Draws a Fibonacci retracement.
DrawFibonacciExpansion Draws a Fibonacci expansion.
DrawFibonacciFan Draws a Fibonacci fan.
DrawFibonacciTimezones Draws a Fibonacci timezones.
DrawAndrewsPitchfork Draws an Andrew's pitchfork.
DrawRectangle Draws a rectangle.
DrawEllipse Draws an ellipse.
DrawTriangle Draws a triangle.

Properties

Name Description
IsAlive { get; } Checks whether the instance is still on the chart area.
Width { get; } Gets the width of the chart area.
Height { get; } Gets the hight of the chart area.
BottomY { get; } Gets the lowest visible Y-axis value.
TopY { get; } Gets the highest visible Y-axis value.
Objects { get; } Gets the chart objects collection.
SelectedObjects { get; } Gets the list of currently selected objects if any.

Events

Name Description
MouseEnter Occurs when the cursor hover over the chart area.
MouseLeave Occurs when the cursor leaves the chart area
MouseMove Occurs when the cursor moves over the chart area.
MouseDown Occurs when the left mouse button is pressed down.
MouseUp Occurs when the left mouse button is released.
MouseWheel Occurs when the mouse wheel button is rotated.
DragStart Occurs when MouseDown event is happening on a chart area and a mouse is captured for dragging.
DragEnd Occurs when mouse button is released while dragging a chart area or a chart area loses mouse capture.
Drag Occurs when dragging a chart area.
SizeChanged Occurs when the chart area size has changed.
ScrollChanged Occurs when the X-axis position value or the Y-axis position value changes while scrolling.
ObjectsAdded Occurs when one or several chart objects are added to the chart area.
ObjectsUpdated Occurs when one or several chart objects are updated.
ObjectsRemoved Occurs when one or several chart object are removed from the chart area.
ObjectsSelectionChanged Occurs when chart objects are selected or deselected.
ObjectHoverChanged Occurs when the cursor hovers over or leaves the object.
ObjectAdded
ObjectUpdated
ObjectRemoved
ObjectSelectionChanged

Last update: March 23, 2023