Description Usage Arguments Details Value Author(s) References See Also Examples
Remove all drawn objects in specifics MT5 charts.
1 | 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. |
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
Returns TRUE
if succeed, FALSE
otherwise.
Guilherme Kinzel, guikinzel@gmail.com
https://www.mql5.com/en/docs/constants/chartconstants/enum_timeframes
1 2 3 4 5 6 7 8 9 | ## Not run:
## 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)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.