Converter EasyLanguage to MQL4
нужен программист EasyLanguage
EntCondS = FastD(NS1)
/*
{ Strategy inputs }
Inputs: NS1 (21),
NS2 (34),
NBarEnL1 (18),
NATRL (74),
EntFrL (7.3871),
MMStopSz (100.00),
TargFrL (12.8180),
NATRS (68),
EntFrS (0.9058),
NBarExS (14);
*/
int NS1 = 21;
int NS2 = 34;
int NBarEnL1 = 18;
int NATRL =74;
double EntFrL=7.3871;
double MMStopSz =100.00;
double TargFrL =12.8180;
double NATRS =68;
double EntFrS=0.9058;
double NBarExS=14;
/*
{ Variables for average true range for entry and exit orders }
Var: ATRL (0),
ATRS (0);
{ Variables for entry and exit prices }
Var: EntPrL (0),
EntPrS (0),
TargPrL (0);
{ Variables for entry and exit conditions }
Var: EntCondL (false),
EntCondS (false),
EndofSess (false);
*/
double ATRL=0;
double ATRS=0;
double EntPrL=0;
double EntPrS=0;
double TargPrL=0;
bool EntCondL=false;
bool EntCondS=false;
bool EndofSess=false;
double motor(){
/*
{ Average true range }
ATRL = AvgTrueRange(NATRL);
ATRS = AvgTrueRange(NATRS);
*/
ATRL = iATR(NULL,0,NATRL,0);
ATRS = iATR(NULL,0,NATRS,0);
/*
{ Entry prices }
EntPrL = XAverage(O, NBarEnL1) - EntFrL * ATRL;
EntPrS = C - EntFrS * ATRS;
*/
EntPrL = iMA(NULL,0,NBarEnL1,0,MODE_EMA,Open[0],0) - EntFrL * ATRL;
EntPrS = Close[1] - EntFrS * ATRS;
/*
{ Entry and exit conditions }
EntCondL = true;
EntCondS = FastD(NS1)
EndofSess = false;
If DataCompression >= 1 and DataCompression
EndofSess = time = SessionEndTime(0, 1);
*/
EntCondL = true;
EntCondS = iStochastic(NULL,0,NS1,3,3,MODE_SMA,0,MODE_MAIN,0)
EndofSess = false;
//If DataCompression >= 1 and DataCompression
// EndofSess = time = SessionEndTime(0, 1);
/*