0
Views
0
Downloads
0
Favorites
Delete Object
//+------------------------------------------------------------------+
//| Delete Object.mq4 |
//| Yuriy Tokman (YTG) |
//| https://ytg.com.ua |
//+------------------------------------------------------------------+
#property copyright "Yuriy Tokman (YTG)"
#property link "https://ytg.com.ua"
#property version "1.00"
#property strict
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
//---
GetDell();
}
//+------------------------------------------------------------------+
//+----
void GetDell( string name = "#")
{
string vName;
for(int i=ObjectsTotal()-1; i>=0;i--)
{
vName = ObjectName(i);
if (StringFind(vName,name) !=-1) ObjectDelete(vName);
}
}
//----
Comments
Markdown Formatting Guide
# H1
## H2
### H3
**bold text**
*italicized text*
[title](https://www.example.com)

`code`
```
code block
```
> blockquote
- Item 1
- Item 2
1. First item
2. Second item
---