Diamond

View as Markdown

Definition

Represents an interface that exposes information regarding a Diamond IDrawingTool.

Methods and Properties

ParameterDescription
AnchorAn IDrawingTool’s ChartAnchor representing the point of the drawing object
AreaBrushA Brush object representing the fill color of the draw object
OutlineBrushA Brush object representing the color of the draw object’s outline

Examples

1// Instantiates a red diamond on the current bar 1 tick below the low
2Diamond myDiamond = Draw.Diamond(this, "tag1", true, 0, Low[0] - TickSize, Brushes.Red);
3
4// Set the area fill color to Red
5myDiamond.AreaBrush = Brushes.Red;