MQL4 Reference
Standard constants
Object visibility
|
Timeframes where object may be shown. Used in ObjectSet()
function to set OBJPROP_TIMEFRAMES property.
| Constant | Value | Description |
| OBJ_PERIOD_M1 | 0x0001 | Object shown is only on 1-minute charts. |
| OBJ_PERIOD_M5 | 0x0002 | Object shown is only on 5-minute charts. |
| OBJ_PERIOD_M15 | 0x0004 | Object shown is only on 15-minute charts. |
| OBJ_PERIOD_M30 | 0x0008 | Object shown is only on 30-minute charts. |
| OBJ_PERIOD_H1 | 0x0010 | Object shown is only on 1-hour charts. |
| OBJ_PERIOD_H4 | 0x0020 | Object shown is only on 4-hour charts. |
| OBJ_PERIOD_D1 | 0x0040 | Object shown is only on daily charts. |
| OBJ_PERIOD_W1 | 0x0080 | Object shown is only on weekly charts. |
| OBJ_PERIOD_MN1 | 0x0100 | Object shown is only on monthly charts. |
| OBJ_ALL_PERIODS | 0x01FF | Object shown is on all timeframes. |
| NULL | 0 | Object shown is on all timeframes. |
| EMPTY | -1 | Hidden object on all timeframes. |
|
|
|