Object type determines anchor coordinates
A horizontal line needs a price anchor, while a trend line needs time and price coordinates for multiple points. Text, labels, arrows, rectangles, and Fibonacci tools each have their own coordinate and property requirements.
ObjectCreate returns false when the request fails. Check GetLastError immediately instead of assuming a later property call created or repaired the object.
| Object | Coordinates | Common use |
|---|---|---|
| OBJ_HLINE | One price | Level |
| OBJ_VLINE | One time | Event marker |
| OBJ_TREND | Two time-price points | Trend segment or ray |
| OBJ_LABEL | Screen corner and pixel offsets | Fixed chart UI |
