AddChartTriangleUp()

Description

AddChartTriangleUp() draws a small upwards-pointing triangle:

See

Usage

AddChartTriangleUp(string name, bool autoScale, int barsAgo, double y, Color color)
AddChartTriangleUp(string name, bool autoScale, DateTime time, double y, Color color)

Return Value

A drawing object of the type ITriangleUp (interface)

Parameter

name

A clearly identifiable name for the drawing object

autoScale

Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety

barsAgo

Sets how many bars ago the triangle should be drawn

time

Date/time for the bar at which the triangle should be drawn

y

y-value at which the triangle should be drawn

color

Color of the drawing object

Example

// Draws a small light green triangle at the current bar 10 ticks below the low
AddChartTriangleUp("MyTriangleUp-" + ProcessingBarIndex, true, 0, Low[0] - 10*TickSize, Color.LightGreen);

Last updated