ChartObjectType
enum cAlgo.API
DesktopCLICloud
The chart object types.
Definition
public enum ChartObjectType
Namespace: cAlgo.API · Group: Drawings
Examples
var trendLines = Chart.FindAllObjects(ChartObjectType.TrendLine);
Print("Trend lines on the chart: {0}", trendLines.Length);
foreach (var chartObject in Chart.Objects)
Print("{0} is a {1}", chartObject.Name, chartObject.ObjectType);
trendLines = api.Chart.FindAllObjects(ChartObjectType.TrendLine)
api.Print(f"Trend lines on the chart: {trendLines.Length}")
for chartObject in api.Chart.Objects:
api.Print(f"{chartObject.Name} is a {chartObject.ObjectType}")
Values
| Name | Value | Description |
|---|---|---|
HorizontalLine | 0 | The horizontal line. The line parallel to the X-axis that can be set on any Y-axis value. |
VerticalLine | 1 | The vertical line. The line parallel to the Y-axis that can be set on any X-axis value. used to mark certain time event or chart bar on the chart.TBD |
TrendLine | 2 | The trend line. The line with the start and end points that can be drawn in any direction on the chart. |
Text | 3 | The text that can be placed directly in the chart, bound to X-Y axises. |
StaticText | 4 | The static positioned text that can be placed on fixed locations in the chart |
Icon | 5 | The icon. The collection of icons that can be placed directly in the chart, bound to X-Y axises. |
FibonacciRetracement | 6 | The Fibonacci Retracement that can be placed directly in the chart, bound to X-Y axises. - a charting technique that uses the Fibonacci ratios to indicate the areas of support or resistance. |
FibonacciExpansion | 7 | The Fibonacci Expansion that can be placed directly in the chart, bound to X-Y axises. - a charting technique used to plot possible levels of support and resistance by tracking not only the primary trend but also the retracement. |
FibonacciFan | 8 | The Fibonacci Fan that can be placed directly in the chart, bound to X-Y axises. a charting technique used to estimate support and resistance levels by drawing the new trend lines based on the Fibonacci Retracement levels. |
AndrewsPitchfork | 9 | The Andrews Pitchfork that can be placed directly in the chart, bound to X-Y axises. |
GannFan | 10 | The Gann Fan that can be placed directly in the chart, bound to X-Y axises. A charting technique used to estimate support and resistance levels by drawing trend lines at different Gann angles (1x1, 2x1, 1x2, etc.). |
GannBox | 11 | The Gann Box that can be placed directly in the chart, bound to X-Y axises. A charting technique that combines Gann angles with horizontal and vertical lines to create a box structure for analyzing support and resistance levels. |
GannSquare | 12 | The Gann Square that can be placed directly in the chart, bound to X-Y axises. A charting technique that combines Gann box grid, fan rays from the start point, and arcs at level intersections for comprehensive market geometry analysis. |
GannSquareFixed | 13 | The Gann Square Fixed that can be placed directly in the chart with fixed screen-space size. A charting technique with a single anchor point and control point that renders a 5x5 grid, Gann fan rays, and circular arcs independent of zoom level. |
Rectangle | 14 | The rectangle of any preferable size and rotation that can be drawn directly in the chart, bound to X-Y axises. |
Ellipse | 15 | The ellipse of any preferable size and rotation that can be drawn directly in the chart, bound to X-Y axises. |
Triangle | 16 | The triangle of any preferable size and rotation that can be drawn directly in the chart, bound to X-Y axises. |
EquidistantChannel | 17 | The equidistant channel that can be placed directly in the chart, bound to X-Y axises. |
Drawing | 18 | The user drawings in the chart with Pencil |
ArrowLine | 19 | The arrow line. |
FibonacciTimezones | 20 | The Fibonacci Timezones |
RiskReward | 21 | The Risk Reward |
FibonacciArc | 22 | The Fibonacci Arc that can be placed directly in the chart, bound to X-Y axises. A charting technique using concentric arcs drawn at the Fibonacci levels off two anchor points to estimate support and resistance zones in both price and time. |
ElliottImpulse | 23 | The Elliott Impulse Wave (1-2-3-4-5). A five-wave motive pattern drawn as a labelled polyline over six pivots. |
ElliottCorrection | 24 | The Elliott Correction Wave (A-B-C). A three-wave corrective pattern drawn as a labelled polyline over four pivots. |
ElliottTriangle | 25 | The Elliott Triangle Wave (A-B-C-D-E). A five-leg triangle drawn as a labelled polyline over six pivots. |
ElliottDoubleCombo | 26 | The Elliott Double Combo Wave (W-X-Y). A complex correction drawn as a labelled polyline over four pivots. |
ElliottTripleCombo | 27 | The Elliott Triple Combo Wave (W-X-Y-X-Z). An extended complex correction drawn as a labelled polyline over six pivots. |