#include <stdlib.mqh>
#property show_inputs
extern double Lots = 0.1;
extern int profit = 3;
extern int loss = 15;
double SSP, SSSL, SSTP, BSP, BSSL, BSTP;
int magic=390349;
int ndir, dir=0;
bool sell=false, buy=false;
double spread;
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;// ?????? ?????
spread=MarketInfo(Symbol(),MODE_SPREAD)*Point;
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++;
}
if (y2>y1) {ndir=-1;}
if (y2<y1) {ndir=1;}
if ((dir==1) && (ndir==-1) && ((iHiПоказано первые 50% кода (символов: 1490)
Введите ваш email и нажмите кнопку, чтобы перейти к оплате.