0
Views
0
Downloads
0
Favorites
ScalpRu
#property copyright "Kozak Andrey"
#property indicator_separate_window
#property indicator_color1 Red
#property indicator_buffers 1
extern bool work = TRUE;
extern bool signal = TRUE;
extern int colbars = 100;
double Masiv1[];
int init()
{
SetIndexBuffer (0, Masiv1);
SetIndexStyle (0, DRAW_LINE);
return;
}
int start()
{
double as;
for (int i=0; i<colbars; i++)
{
as = (High[i]+Low[i])/2;
Masiv1[i] = as;
}
if (Masiv1[0]>Open[0])
{
if (signal == TRUE)
{
Alert ("Ìîæíî ïðîäàâàòü!");
}
}
if (Masiv1[0]<Open[0])
{
if (signal == TRUE)
{
Alert ("Ìîæíî ïîêóïàòü!");
}
}
return;
}
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
---