0
Views
0
Downloads
0
Favorites
Kruglie 4isla
//+------------------------------------------------------------------+
//| Óðîâíè êðóãëûõ ÷èñåë.mq4 |
//| Samura
//| http://budobudda.wordpress.com/ |
//+------------------------------------------------------------------+
#property copyright "Samura"
#property link "http://budobudda.wordpress.com/"
#property indicator_chart_window
//---- input parameters
extern color Krug.4isla = Black;
extern int Shirina = 2;
extern double begin = 0.7;
extern int Koli4estvo = 10;
extern double Shag = 0.1;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
ObjectsDeleteAll();
// óäàëÿåì âñå îáúåêòû
return(0);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int counted_bars=IndicatorCounted();
//----
double kolvo = Koli4estvo*Shag;
for(double i =0; i<kolvo; i=i + Shag)
{
string obekt = i;
double price = begin + i;
ObjectCreate(obekt,OBJ_HLINE,0,0,price);
ObjectSet(obekt,OBJPROP_COLOR,Krug.4isla);
ObjectSet(obekt,OBJPROP_WIDTH,Shirina);
}
//----
return(0);
}
//+------------------------------------------------------------------+
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
---