MT5.RemoveAllChartsObjects.RdRemove all drawn objects in specifics MT5 charts.
MT5.RemoveAllChartsObjects(sSymbol = "0", iTF = 0)
| sSymbol | character(); you can specify which chart symbol. If not declared it will consider all symbols. See details. |
|---|---|
| iTF | int; you can specify which charts time frames. If not declared it will consider all time frames. See details. |
Returns TRUE if succeed, FALSE otherwise.
If arguments are not declared it will remove all drawn objects of all charts.
Supported time frames (iTF). See references for even more details.
1: PERIOD_M1
2: PERIOD_M2
5: PERIOD_M5
15: PERIOD_M15
30: PERIOD_M30
60: PERIOD_H1
120: PERIOD_H2
240: PERIOD_H4
480: PERIOD_H8
1440: PERIOD_D1
7200: PERIOD_W1
216000: PERIOD_MN1
https://www.mql5.com/en/docs/constants/chartconstants/enum_timeframes
if (FALSE) { ## Remove all drawn objects of all GBPUSD charts MT5.RemoveAllChartsObjects("GBPUSD") ## Remove all drawn objects of all 60 minutes (PERIOD_H1) charts MT5.RemoveAllChartsObjects(iTF = 60) }