TObjectType
An enumeration that defines the different types of chart objects that can be created in the trading platform.
Values
ANY_OBJECT
Represents any type of chart object
V_LINE
A vertical line on the chart
H_LINE
A horizontal line on the chart
TREND_LINE
A trend line connecting two points
RAY
A ray extending from one point in a direction
POLYLINE
A line consisting of multiple connected segments
FIBO_RETRACEMENT
Fibonacci retracement levels
FIBO_TIME_ZONES
Fibonacci time zones
FIBO_ARC
Fibonacci arcs
FIBO_FAN
Fibonacci fan lines
ANDREWS_PITCHFORK
Andrews' Pitchfork technical analysis tool
TEXT
Simple text object
TEXT_LABEL
Text label with additional formatting options
RECTANGLE
A rectangular shape
ELLIPSE
An elliptical shape
TRIANGLE
A triangular shape
FIBO_CHANNEL
Fibonacci channel
LR_CHANNEL
Linear regression channel
FIBO_EXTENSION
Fibonacci extension levels
GANN_BOX
Gann box analysis tool
Example Usage
// Create a trend line object
const trendLine = this.api.CreateChartObject(
"MyTrendLine",
TObjectType.TREND_LINE,
0,
startDate,
startPrice,
endDate,
endPrice
);
// Create a text label
const label = this.api.CreateChartObject(
"MyLabel",
TObjectType.TEXT_LABEL,
0,
date,
price
);
Last updated