MQL4 Reference
Standard constants
Object types
|
Object type identifier constants used with
ObjectCreate(),
ObjectsDeleteAll()
and ObjectType() functions.
It can be any of the following values:
Objects can have 1-3 coordinates related to type.
| Constant | Value | Description |
| OBJ_VLINE | 0 | Vertical line. Uses time part of first coordinate. |
| OBJ_HLINE | 1 | Horizontal line. Uses price part of first coordinate. |
| OBJ_TREND | 2 | Trend line. Uses 2 coordinates. |
| OBJ_TRENDBYANGLE | 3 | Trend by angle. Uses 1 coordinate. To set angle of line use ObjectSet() function. |
| OBJ_REGRESSION | 4 | Regression. Uses time parts of first two coordinates. |
| OBJ_CHANNEL | 5 | Channel. Uses 3 coordinates. |
| OBJ_STDDEVCHANNEL | 6 | Standard deviation channel. Uses time parts of first two coordinates. |
| OBJ_GANNLINE | 7 | Gann line. Uses 2 coordinate, but price part of second coordinate ignored. |
| OBJ_GANNFAN | 8 | Gann fan. Uses 2 coordinate, but price part of second coordinate ignored. |
| OBJ_GANNGRID | 9 | Gann grid. Uses 2 coordinate, but price part of second coordinate ignored. |
| OBJ_FIBO | 10 | Fibonacci retracement. Uses 2 coordinates. |
| OBJ_FIBOTIMES | 11 | Fibonacci time zones. Uses 2 coordinates. |
| OBJ_FIBOFAN | 12 | Fibonacci fan. Uses 2 coordinates. |
| OBJ_FIBOARC | 13 | Fibonacci arcs. Uses 2 coordinates. |
| OBJ_EXPANSION | 14 | Fibonacci expansions. Uses 3 coordinates. |
| OBJ_FIBOCHANNEL | 15 | Fibonacci channel. Uses 3 coordinates. |
| OBJ_RECTANGLE | 16 | Rectangle. Uses 2 coordinates. |
| OBJ_TRIANGLE | 17 | Triangle. Uses 3 coordinates. |
| OBJ_ELLIPSE | 18 | Ellipse. Uses 2 coordinates. |
| OBJ_PITCHFORK | 19 | Andrews pitchfork. Uses 3 coordinates. |
| OBJ_CYCLES | 20 | Cycles. Uses 2 coordinates. |
| OBJ_TEXT | 21 | Text. Uses 1 coordinate. |
| OBJ_ARROW | 22 | Arrows. Uses 1 coordinate. |
| OBJ_LABEL | 23 | Text label. Uses 1 coordinate in pixels. |
|
|
|