← Назад к списку файлов

piip.mq4

Поиск по коду файла

#include <stdlib.mqh>
#property show_inputs

extern double Lots = 0.1;
extern int    Filtr = 2;

       double SSP, SSSL, SSTP, BSP, BSSL, BSTP;
       int    magic=390349;
       int    ndir, dir=0;
       bool   sell=false, buy=false;

extern int  ExtDepth     = 12;
extern int  ExtDeviation = 5;
extern int  ExtBackstep  = 3;
       int  ShiftBars    = 0;

int start()

{
      // код доступен только после оплаты
   }
 int    i,j;
 double y3=0, y2=0, y1=0, zz;    // ?????????? ???-????
 int    x3, x2, x1, sh=ShiftBars;// ?????? ?????

 while (y3==0) {

   zz=iCustom(NULL, 0, "ZigZag2", ExtDepth, ExtDeviation, ExtBackstep, 0, sh);
   if (zz!=0 && zz!=EMPTY_VALUE) {
     if      (y1==0) { x1=sh; y1=zz; }
     else if (y2==0) { x2=sh; y2=zz; }
     else if (y3==0) { x3=sh; y3=zz; }
   }
   sh++;
 }

 Print(x1," ",x2," ",x3);

 if (y2>y1) {ndir=-1;}
 if (y2<y1) {ndir=1;}

 if ((dir==1) && (ndir==-1) && ((iHigh(Symbol(),0,x2)-iLow(Symbol(),0,x3))>10*Point)) {sell=true; buy=false;} else
 if ((dir==-1) && (ndir==1) && ((iHigh(Symbol(),0,x3)-iLow(S

Показано первые 50% кода (символов: 1638)

Как получить полную версию?

Введите ваш email и нажмите кнопку, чтобы перейти к оплате.