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