Author: Kozak Andrey
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 supported. Formatting help

Markdown Formatting Guide

Element Markdown Syntax
Heading # H1
## H2
### H3
Bold **bold text**
Italic *italicized text*
Link [title](https://www.example.com)
Image ![alt text](image.jpg)
Code `code`
Code Block ```
code block
```
Quote > blockquote
Unordered List - Item 1
- Item 2
Ordered List 1. First item
2. Second item
Horizontal Rule ---