MQL4 - automated forex trading   /  

Documentation

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.

ConstantValueDescription
OBJ_VLINE0Vertical line. Uses time part of first coordinate.
OBJ_HLINE1Horizontal line. Uses price part of first coordinate.
OBJ_TREND2Trend line. Uses 2 coordinates.
OBJ_TRENDBYANGLE3Trend by angle. Uses 1 coordinate. To set angle of line use ObjectSet() function.
OBJ_REGRESSION4Regression. Uses time parts of first two coordinates.
OBJ_CHANNEL5Channel. Uses 3 coordinates.
OBJ_STDDEVCHANNEL6Standard deviation channel. Uses time parts of first two coordinates.
OBJ_GANNLINE7Gann line. Uses 2 coordinate, but price part of second coordinate ignored.
OBJ_GANNFAN8Gann fan. Uses 2 coordinate, but price part of second coordinate ignored.
OBJ_GANNGRID9Gann grid. Uses 2 coordinate, but price part of second coordinate ignored.
OBJ_FIBO10Fibonacci retracement. Uses 2 coordinates.
OBJ_FIBOTIMES11Fibonacci time zones. Uses 2 coordinates.
OBJ_FIBOFAN12Fibonacci fan. Uses 2 coordinates.
OBJ_FIBOARC13Fibonacci arcs. Uses 2 coordinates.
OBJ_EXPANSION14Fibonacci expansions. Uses 3 coordinates.
OBJ_FIBOCHANNEL15Fibonacci channel. Uses 3 coordinates.
OBJ_RECTANGLE16Rectangle. Uses 2 coordinates.
OBJ_TRIANGLE17Triangle. Uses 3 coordinates.
OBJ_ELLIPSE18Ellipse. Uses 2 coordinates.
OBJ_PITCHFORK19Andrews pitchfork. Uses 3 coordinates.
OBJ_CYCLES20Cycles. Uses 2 coordinates.
OBJ_TEXT21Text. Uses 1 coordinate.
OBJ_ARROW22Arrows. Uses 1 coordinate.
OBJ_LABEL23Text label. Uses 1 coordinate in pixels.