Drovasekl
Drovasekl

Drovasekl

更新日期:
2022-11-03
分类标签:
语言:
中文
平台:
没限制

30 人已下载 手机查看

Drovasekl

/*
Generated by ex4-to-mq4 decompiler FREEWARE 4.0.451.7
Website: HT TP : / / W W W . metaQ uot E s .n e T
E-mail : s upPORt @ME tA QU ote s . n e T
*/
#property copyright “Drovasek (橡铘羼耔铐嚯 疱骅? 襦祛耱?蝈朦磬 磬耱痤殛?”
#property link “http://Drovasek.ru”

#include <WinUser32.mqh>
#import “CorAcDe.dll”
bool prof_sumselll_closer(int a0, int a1, double a2, double a3, bool a4);
bool prof_sumbuy_closer(int a0, int a1, double a2, double a3, bool a4);
bool opener_buy(int a0, int a1, int a2, int a3, double& a4[]);
bool opener_sell(int a0, int a1, int a2, int a3, double& a4[]);
bool opener_buy_series(int a0, int a1, int a2, int a3, double a4, double a5, double a6);
bool opener_sell_series(int a0, int a1, int a2, int a3, double a4, double a5, double a6);
bool LK_Check(int a0, int a1);
#import

extern int LIC_KEY = 0;
extern double Lots = 0.1;
extern int Max_Kol_Orders = 8;
extern double Profit = 35.0;
extern double Stop_Los = 1000.0;
extern double Lot_Koef = 2.0;
extern double timestart1 = 0.0;
extern double timestop1 = 24.0;
extern double timestart2 = 0.0;
extern double timestop2 = 24.0;
bool Gi_148 = TRUE;
extern bool Closeorders = FALSE;
extern double Closeprocent = 50.0;
extern bool Sunday = TRUE;
extern bool Monday = TRUE;
extern bool Tuesday = TRUE;
extern bool Wednesday = TRUE;
extern bool Thursday = TRUE;
extern bool Friday = TRUE;
extern bool Saturday = TRUE;
int Gi_192 = 0;
bool Gi_unused_196 = FALSE;
extern double level2 = 22.0;
extern double level3 = 22.0;
extern double level4 = 22.0;
extern double level5 = 22.0;
extern double level6 = 22.0;
extern double level7 = 22.0;
extern double level8 = 22.0;
extern double level9 = 22.0;
extern double level10 = 22.0;
extern double level11 = 22.0;
extern double profit2 = 20.0;
extern double profit3 = 20.0;
extern double profit4 = 20.0;
extern double profit5 = 20.0;
extern double profit6 = 20.0;
extern double profit7 = 20.0;
extern double profit8 = 20.0;
extern double profit9 = 20.0;
extern double profit10 = 20.0;
extern double profit11 = 20.0;
extern int Magic_Number = 3394700;
int Gi_364;
bool Gi_368 = FALSE;
int G_fontsize_372 = 10;
int G_color_376 = LightSlateGray;
int Gi_380 = 0;
double G_str2dbl_384 = 0.0;
double Gda_392[15];

// 283D7577CC7EED7B57FAD1BCAB480330
double f0_1(int A_magic_0) {
double Ld_ret_4 = 0;
for (int pos_12 = OrdersTotal() – 1; pos_12 >= 0; pos_12–) {
OrderSelect(pos_12, SELECT_BY_POS, MODE_TRADES);
if (OrderType() == OP_BUY && OrderSymbol() == Symbol() && OrderMagicNumber() == A_magic_0) Ld_ret_4 = Ld_ret_4 + OrderProfit() + OrderSwap() + OrderCommission();
}
return (Ld_ret_4);
}

// 2C656F28A968949A2437676FE63FA636
double f0_2(int A_magic_0) {
double Ld_ret_4 = 0;
for (int pos_12 = OrdersTotal() – 1; pos_12 >= 0; pos_12–) {
OrderSelect(pos_12, SELECT_BY_POS, MODE_TRADES);
if (OrderType() == OP_SELL && OrderSymbol() == Symbol() && OrderMagicNumber() == A_magic_0) Ld_ret_4 = Ld_ret_4 + OrderProfit() + OrderSwap() + OrderCommission();
}
return (Ld_ret_4);
}

// F70F94345449C811FD57D3182E2F6689
double f0_11(int Ai_0, int Ai_4) {
int year_8;
int month_12;
int day_16;
int datetime_20;
int hist_total_24 = OrdersHistoryTotal();
double Ld_ret_28 = 0;
for (int pos_36 = OrdersHistoryTotal() – 1; pos_36 >= 0; pos_36–) {
OrderSelect(pos_36, SELECT_BY_POS, MODE_HISTORY);
datetime_20 = OrderCloseTime();
year_8 = TimeYear(datetime_20);
month_12 = TimeMonth(datetime_20);
day_16 = TimeDay(datetime_20);
if (year_8 == Year() && month_12 == Month() && day_16 == Day() – Ai_4 && OrderMagicNumber() == Magic_Number) {
if (Ai_0 == 1)
if (OrderType() == OP_BUY || OrderType() == OP_SELL) Ld_ret_28 = Ld_ret_28 + OrderProfit() + OrderSwap() + OrderCommission();
}
}
return (Ld_ret_28);
}

// 52D46093050F38C27267BCE42543EF60
int deinit() {
for (int Li_0 = ObjectsTotal() – 1; Li_0 >= 0; Li_0–)
if (ObjectType(ObjectName(Li_0)) == 23) ObjectDelete(ObjectName(Li_0));
return (0);
}

// E37F0136AA3FFAF149B351F6A4C948E9
int init() {
if (!IsConnected()) {
Print(“砚琰 铗耋蝰蜮箦?”);
Sleep(5000);
}
if (Digits == 5 || Digits == 3) {
Profit = 10.0 * Profit;
Stop_Los = 10.0 * Stop_Los;
level2 = 10.0 * level2;
level3 = 10.0 * level3;
level4 = 10.0 * level4;
level5 = 10.0 * level5;
level6 = 10.0 * level6;
level7 = 10.0 * level7;
level8 = 10.0 * level8;
level9 = 10.0 * level9;
level10 = 10.0 * level10;
level11 = 10.0 * level11;
profit2 = 10.0 * profit2;
profit3 = 10.0 * profit3;
profit4 = 10.0 * profit4;
profit5 = 10.0 * profit5;
profit6 = 10.0 * profit6;
profit7 = 10.0 * profit7;
profit8 = 10.0 * profit8;
profit9 = 10.0 * profit9;
profit10 = 10.0 * profit10;
profit11 = 10.0 * profit11;
}
int file_0 = FileOpen(“First_start” + Symbol() + “.txt”, FILE_CSV|FILE_READ);
if (file_0 > 0) {
Gi_380 = StrToTime(FileReadString(file_0));
G_str2dbl_384 = StrToDouble(FileReadString(file_0));
} else {
Sleep(10000);
if (file_0 > 0) FileClose(file_0);
file_0 = FileOpen(“First_start” + Symbol() + “.txt”, FILE_CSV|FILE_WRITE);
FileWrite(file_0, TimeToStr(TimeCurrent(), TIME_DATE));
Gi_380 = TimeCurrent();
FileWrite(file_0, DoubleToStr(AccountBalance(), 2));
G_str2dbl_384 = AccountBalance();
}
if (file_0 > 0) FileClose(file_0);
Print(TimeToStr(Gi_380, TIME_DATE), ” “, DoubleToStr(G_str2dbl_384, 2));
return (0);
}

// EA2B2676C28C0DB26D39331A336C6B92
int start() {
double price_0;
double price_8;
double price_16;
double price_24;
double pips_32;
double pips_40;
string Ls_76;
string Ls_84;
string Ls_92;
string Ls_100;
double Ld_112;
double Ld_120;
if (!IsConnected()) {
Print(“砚琰 铗耋蝰蜮箦?”);
return (0);
}
Gi_364 = WindowHandle(Symbol(), Period());
if (!f0_4()) return (0);
for (int pos_48 = 1; pos_48 <= 15; pos_48++) Gda_392[15] = Close[pos_48];
HideTestIndicators(TRUE);
double ima_52 = iMA(Symbol(), Period(), 8, 0, MODE_EMA, PRICE_TYPICAL, 1);
double icci_60 = iCCI(Symbol(), Period(), 14, PRICE_TYPICAL, 1);
double iadx_68 = iADX(Symbol(), Period(), 8, PRICE_TYPICAL, MODE_MAIN, 1);
HideTestIndicators(FALSE);
if (LK_Check(Gi_364, LIC_KEY)) {
if (Lots < 0.01) {
ObjectCreate(“Vsig_Ok” + Symbol(), OBJ_LABEL, 0, 0, 0, 0, 0);
ObjectSet(“Vsig_Ok” + Symbol(), OBJPROP_CORNER, 1);
ObjectSet(“Vsig_Ok” + Symbol(), OBJPROP_XDISTANCE, 50);
ObjectSet(“Vsig_Ok” + Symbol(), OBJPROP_YDISTANCE, 50);
ObjectSetText(“Vsig_Ok” + Symbol(), “http://drovasek.ru: Activation OK!”, G_fontsize_372, “Times New Roman”, G_color_376);
ObjectCreate(“Acc_ok” + Symbol(), OBJ_LABEL, 0, 0, 0, 0, 0);
ObjectSet(“Acc_ok” + Symbol(), OBJPROP_CORNER, 1);
ObjectSet(“Acc_ok” + Symbol(), OBJPROP_XDISTANCE, 50);
ObjectSet(“Acc_ok” + Symbol(), OBJPROP_YDISTANCE, 70);
ObjectSetText(“Acc_ok” + Symbol(), “袜 聍弪?” + DoubleToStr(AccountNumber(), 0) + ” 玎矬?痤犷?Drovasek”, G_fontsize_372, “Times New Roman”, G_color_376);
ObjectCreate(“Rejim” + Symbol(), OBJ_LABEL, 0, 0, 0, 0, 0);
ObjectSet(“Rejim” + Symbol(), OBJPROP_CORNER, 1);
ObjectSet(“Rejim” + Symbol(), OBJPROP_XDISTANCE, 50);
ObjectSet(“Rejim” + Symbol(), OBJPROP_YDISTANCE, 90);
ObjectSetText(“Rejim” + Symbol(), “绣骅?蝾疸钼腓 橡铘羼耔铐嚯”, G_fontsize_372, “Times New Roman”, G_color_376);
ObjectCreate(“Profit_Curday” + Symbol(), OBJ_LABEL, 0, 0, 0, 0, 0);
ObjectSet(“Profit_Curday” + Symbol(), OBJPROP_CORNER, 1);
ObjectSet(“Profit_Curday” + Symbol(), OBJPROP_XDISTANCE, 50);
ObjectSet(“Profit_Curday” + Symbol(), OBJPROP_YDISTANCE, 110);
ObjectSetText(“Profit_Curday” + Symbol(), “橡栳?玎 皴泐漤: ” + DoubleToStr(f0_11(1, 0), 2) + ” $ “, G_fontsize_372, “Times New Roman”, G_color_376);
ObjectCreate(“Profit_lastday” + Symbol(), OBJ_LABEL, 0, 0, 0, 0, 0);
ObjectSet(“Profit_lastday” + Symbol(), OBJPROP_CORNER, 1);
ObjectSet(“Profit_lastday” + Symbol(), OBJPROP_XDISTANCE, 50);
ObjectSet(“Profit_lastday” + Symbol(), OBJPROP_YDISTANCE, 130);
ObjectSetText(“Profit_lastday” + Symbol(), “橡栳?玎 怊屦? ” + DoubleToStr(f0_11(1, 1), 2) + ” $ “, G_fontsize_372, “Times New Roman”, G_color_376);
ObjectCreate(“Cur_Balance” + Symbol(), OBJ_LABEL, 0, 0, 0, 0, 0);
ObjectSet(“Cur_Balance” + Symbol(), OBJPROP_CORNER, 1);
ObjectSet(“Cur_Balance” + Symbol(), OBJPROP_XDISTANCE, 50);
ObjectSet(“Cur_Balance” + Symbol(), OBJPROP_YDISTANCE, 150);
ObjectSetText(“Cur_Balance” + Symbol(), “义牦?徉豚眈: ” + DoubleToStr(AccountBalance(), 2) + ” $ “, G_fontsize_372, “Times New Roman”, G_color_376);
ObjectCreate(“Start_Balance” + Symbol(), OBJ_LABEL, 0, 0, 0, 0, 0);
ObjectSet(“Start_Balance” + Symbol(), OBJPROP_CORNER, 1);
ObjectSet(“Start_Balance” + Symbol(), OBJPROP_XDISTANCE, 50);
ObjectSet(“Start_Balance” + Symbol(), OBJPROP_YDISTANCE, 170);
ObjectSetText(“Start_Balance” + Symbol(), “袜鬣朦睇?徉豚眈: ” + DoubleToStr(G_str2dbl_384, 2) + ” $ “, G_fontsize_372, “Times New Roman”, G_color_376);
ObjectCreate(“DayTradings” + Symbol(), OBJ_LABEL, 0, 0, 0, 0, 0);
ObjectSet(“DayTradings” + Symbol(), OBJPROP_CORNER, 1);
ObjectSet(“DayTradings” + Symbol(), OBJPROP_XDISTANCE, 50);
ObjectSet(“DayTradings” + Symbol(), OBJPROP_YDISTANCE, 190);
ObjectSetText(“DayTradings” + Symbol(), “翌疸钼? 忮溴蝰 ” + DoubleToStr(NormalizeDouble((TimeCurrent() – Gi_380) / 86400, 0), 0) + ” 漤彘”, G_fontsize_372, “Times New Roman”,
G_color_376);
ObjectCreate(“Start_lot” + Symbol(), OBJ_LABEL, 0, 0, 0, 0, 0);
ObjectSet(“Start_lot” + Symbol(), OBJPROP_CORNER, 1);
ObjectSet(“Start_lot” + Symbol(), OBJPROP_XDISTANCE, 50);
ObjectSet(“Start_lot” + Symbol(), OBJPROP_YDISTANCE, 210);
ObjectSetText(“Start_lot” + Symbol(), “袜鬣朦睇?腩?” + DoubleToStr(Lots, 2), G_fontsize_372, “Times New Roman”, G_color_376);
} else {
ObjectCreate(“Vsig_Ok” + Symbol(), OBJ_LABEL, 0, 0, 0, 0, 0);
ObjectSet(“Vsig_Ok” + Symbol(), OBJPROP_CORNER, 1);
ObjectSet(“Vsig_Ok” + Symbol(), OBJPROP_XDISTANCE, 50);
ObjectSet(“Vsig_Ok” + Symbol(), OBJPROP_YDISTANCE, 50);
ObjectSetText(“Vsig_Ok” + Symbol(), “http://drovasek.ru: Activation OK!”, G_fontsize_372, “Times New Roman”, G_color_376);
ObjectCreate(“Acc_ok” + Symbol(), OBJ_LABEL, 0, 0, 0, 0, 0);
ObjectSet(“Acc_ok” + Symbol(), OBJPROP_CORNER, 1);
ObjectSet(“Acc_ok” + Symbol(), OBJPROP_XDISTANCE, 50);
ObjectSet(“Acc_ok” + Symbol(), OBJPROP_YDISTANCE, 70);
ObjectSetText(“Acc_ok” + Symbol(), “袜 聍弪?” + DoubleToStr(AccountNumber(), 0) + ” 玎矬?痤犷?Drovasek”, G_fontsize_372, “Times New Roman”, G_color_376);
ObjectCreate(“Rejim” + Symbol(), OBJ_LABEL, 0, 0, 0, 0, 0);
ObjectSet(“Rejim” + Symbol(), OBJPROP_CORNER, 1);
ObjectSet(“Rejim” + Symbol(), OBJPROP_XDISTANCE, 50);
ObjectSet(“Rejim” + Symbol(), OBJPROP_YDISTANCE, 90);
ObjectSetText(“Rejim” + Symbol(), “绣骅?蝾疸钼腓 橡铘羼耔铐嚯”, G_fontsize_372, “Times New Roman”, G_color_376);
ObjectCreate(“Profit_Curday” + Symbol(), OBJ_LABEL, 0, 0, 0, 0, 0);
ObjectSet(“Profit_Curday” + Symbol(), OBJPROP_CORNER, 1);
ObjectSet(“Profit_Curday” + Symbol(), OBJPROP_XDISTANCE, 50);
ObjectSet(“Profit_Curday” + Symbol(), OBJPROP_YDISTANCE, 110);
ObjectSetText(“Profit_Curday” + Symbol(), “橡栳?玎 皴泐漤: ” + DoubleToStr(f0_11(1, 0), 2) + ” $ “, G_fontsize_372, “Times New Roman”, G_color_376);
ObjectCreate(“Profit_lastday” + Symbol(), OBJ_LABEL, 0, 0, 0, 0, 0);
ObjectSet(“Profit_lastday” + Symbol(), OBJPROP_CORNER, 1);
ObjectSet(“Profit_lastday” + Symbol(), OBJPROP_XDISTANCE, 50);
ObjectSet(“Profit_lastday” + Symbol(), OBJPROP_YDISTANCE, 130);
ObjectSetText(“Profit_lastday” + Symbol(), “橡栳?玎 怊屦? ” + DoubleToStr(f0_11(1, 1), 2) + ” $ “, G_fontsize_372, “Times New Roman”, G_color_376);
ObjectCreate(“Cur_Balance” + Symbol(), OBJ_LABEL, 0, 0, 0, 0, 0);
ObjectSet(“Cur_Balance” + Symbol(), OBJPROP_CORNER, 1);
ObjectSet(“Cur_Balance” + Symbol(), OBJPROP_XDISTANCE, 50);
ObjectSet(“Cur_Balance” + Symbol(), OBJPROP_YDISTANCE, 150);
ObjectSetText(“Cur_Balance” + Symbol(), “义牦?徉豚眈: ” + DoubleToStr(AccountBalance(), 2) + ” $ “, G_fontsize_372, “Times New Roman”, G_color_376);
ObjectCreate(“Start_Balance” + Symbol(), OBJ_LABEL, 0, 0, 0, 0, 0);
ObjectSet(“Start_Balance” + Symbol(), OBJPROP_CORNER, 1);
ObjectSet(“Start_Balance” + Symbol(), OBJPROP_XDISTANCE, 50);
ObjectSet(“Start_Balance” + Symbol(), OBJPROP_YDISTANCE, 170);
ObjectSetText(“Start_Balance” + Symbol(), “袜鬣朦睇?徉豚眈: ” + DoubleToStr(G_str2dbl_384, 2) + ” $ “, G_fontsize_372, “Times New Roman”, G_color_376);
ObjectCreate(“DayTradings” + Symbol(), OBJ_LABEL, 0, 0, 0, 0, 0);
ObjectSet(“DayTradings” + Symbol(), OBJPROP_CORNER, 1);
ObjectSet(“DayTradings” + Symbol(), OBJPROP_XDISTANCE, 50);
ObjectSet(“DayTradings” + Symbol(), OBJPROP_YDISTANCE, 190);
ObjectSetText(“DayTradings” + Symbol(), “翌疸钼? 忮溴蝰 ” + DoubleToStr(NormalizeDouble((TimeCurrent() – Gi_380) / 86400, 0), 0) + ” 漤彘”, G_fontsize_372, “Times New Roman”,
G_color_376);
ObjectCreate(“Start_lot” + Symbol(), OBJ_LABEL, 0, 0, 0, 0, 0);
ObjectSet(“Start_lot” + Symbol(), OBJPROP_CORNER, 1);
ObjectSet(“Start_lot” + Symbol(), OBJPROP_XDISTANCE, 50);
ObjectSet(“Start_lot” + Symbol(), OBJPROP_YDISTANCE, 210);
ObjectSetText(“Start_lot” + Symbol(), “袜鬣朦睇?腩?” + DoubleToStr(Lots, 2), G_fontsize_372, “Times New Roman”, G_color_376);
}
} else {
Ls_76 = “碾 蝾疸钼腓 磬 疱嚯铎 聍弪?礤钺躅滂祛 “;
Ls_84 = “镱塍麒螯 腓鲥礴桀眄 觌 磬 襦轵?”;
Ls_92 = “drovasek.ru ?疣玟咫?\’髓鲥礴?\’.\n蒡?僚严死彝??玎殪弪 戾睃 扈眢螓!”;
Ls_100 = “锣?聍弪: “;
Print(Ls_76);
Print(Ls_84);
Print(Ls_92);
Print(Ls_100);
MessageBox(StringConcatenate(Ls_76,
“\n”, Ls_84,
“\n”, Ls_92,
“\n”,
“\n”, Ls_100, AccountNumber(),
“\n”), “硒栳赅”, MB_ICONHAND);
}
Gi_192 = FALSE;
if (Gi_148 == TRUE) {
switch (DayOfWeek()) {
case 0:
if (Sunday != TRUE) break;
Gi_192 = TRUE;
break;
case 1:
if (Monday != TRUE) break;
Gi_192 = TRUE;
break;
case 2:
if (Tuesday != TRUE) break;
Gi_192 = TRUE;
break;
case 3:
if (Wednesday != TRUE) break;
Gi_192 = TRUE;
break;
case 4:
if (Thursday != TRUE) break;
Gi_192 = TRUE;
break;
case 5:
if (Friday != TRUE) break;
Gi_192 = TRUE;
break;
case 6:
if (Saturday != TRUE) break;
Gi_192 = TRUE;
}
} else Gi_192 = TRUE;
if (f0_1(Magic_Number) < 0.0) {
if (AccountBalance() / 100.0 != 0.0) Ld_112 = 100.0 * (f0_1(Magic_Number) / AccountBalance());
else return (0);
if (prof_sumbuy_closer(Gi_364, LIC_KEY, Ld_112, -1.0 * Closeprocent, Closeorders)) {
for (pos_48 = OrdersTotal() – 1; pos_48 >= 0; pos_48–) {
if (!(OrderSelect(pos_48, SELECT_BY_POS, MODE_TRADES))) break;
if (OrderType() == OP_BUY && OrderSymbol() == Symbol() && OrderMagicNumber() == Magic_Number) OrderClose(OrderTicket(), OrderLots(), MarketInfo(OrderSymbol(), MODE_BID), 2);
if (OrderType() == OP_BUYSTOP && OrderSymbol() == Symbol() && OrderMagicNumber() == Magic_Number) OrderDelete(OrderTicket());
if (OrderType() == OP_BUYLIMIT && OrderSymbol() == Symbol() && OrderMagicNumber() == Magic_Number) OrderDelete(OrderTicket());
}
}
}
if (f0_2(Magic_Number) < 0.0) {
if (AccountBalance() / 100.0 != 0.0) Ld_120 = 100.0 * (f0_2(Magic_Number) / AccountBalance());
else return (0);
if (prof_sumselll_closer(Gi_364, LIC_KEY, Ld_120, -1.0 * Closeprocent, Closeorders)) {
for (pos_48 = OrdersTotal() – 1; pos_48 >= 0; pos_48–) {
if (!(OrderSelect(pos_48, SELECT_BY_POS, MODE_TRADES))) break;
if (OrderType() == OP_SELL && OrderSymbol() == Symbol() && OrderMagicNumber() == Magic_Number) OrderClose(OrderTicket(), OrderLots(), MarketInfo(OrderSymbol(), MODE_ASK), 2);
if (OrderType() == OP_SELLSTOP && OrderSymbol() == Symbol() && OrderMagicNumber() == Magic_Number) OrderDelete(OrderTicket());
if (OrderType() == OP_SELLLIMIT && OrderSymbol() == Symbol() && OrderMagicNumber() == Magic_Number) OrderDelete(OrderTicket());
}
}
}
int Li_unused_128 = MarketInfo(Symbol(), MODE_SPREAD);
int Li_unused_132 = MarketInfo(Symbol(), MODE_POINT);
int Li_unused_136 = MarketInfo(Symbol(), MODE_DIGITS);
int Li_unused_140 = MarketInfo(Symbol(), MODE_TICKVALUE);
if (f0_3(OP_BUY, Magic_Number, Symbol()) == 0 && Gi_192) {
if (opener_buy(Gi_364, LIC_KEY, f0_3(OP_BUY, Magic_Number, Symbol()), Gi_192, Gda_392) > 0) {
if (f0_3(OP_BUYLIMIT, Magic_Number, Symbol()) != 0) f0_0(OP_BUYLIMIT, Magic_Number, Symbol());
price_16 = Ask – Stop_Los * Point;
if (Stop_Los <= 0.0) price_16 = 0;
price_24 = Ask + Profit * Point;
if ((TimeHour(TimeCurrent()) >= timestart1 && TimeHour(TimeCurrent()) < timestop1) || (TimeHour(TimeCurrent()) >= timestart2 && TimeHour(TimeCurrent()) < timestop2)) OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, price_16, price_24, “1”, Magic_Number, 0, Blue);
}
}
if (opener_sell(Gi_364, LIC_KEY, f0_3(OP_SELL, Magic_Number, Symbol()), Gi_192, Gda_392)) {
if (f0_3(OP_SELLLIMIT, Magic_Number, Symbol()) != 0) f0_0(OP_SELLLIMIT, Magic_Number, Symbol());
price_16 = Bid + Stop_Los * Point;
if (Stop_Los <= 0.0) price_8 = 0;
price_24 = Bid – Profit * Point;
if ((TimeHour(TimeCurrent()) >= timestart1 && TimeHour(TimeCurrent()) < timestop1) || (TimeHour(TimeCurrent()) >= timestart2 && TimeHour(TimeCurrent()) < timestop2)) OrderSend(Symbol(), OP_SELL, Lots, Bid, 3, price_16, price_24, “1”, Magic_Number, 0, Red);
}
if (opener_buy_series(Gi_364, LIC_KEY, f0_3(OP_BUY, Magic_Number, Symbol()), f0_3(OP_BUYLIMIT, Magic_Number, Symbol()), ima_52, icci_60, iadx_68)) {
pips_40 = f0_5(f0_9(OP_BUY, OP_BUYLIMIT, Magic_Number, Symbol()));
pips_32 = f0_8(f0_9(OP_BUY, OP_BUYLIMIT, Magic_Number, Symbol()));
price_0 = f0_10(OP_BUY, Magic_Number, Symbol()) – pips_40 * Point;
price_16 = price_0 – Stop_Los * Point;
if (Stop_Los <= 0.0) price_16 = 0;
price_24 = price_0 + pips_32 * Point;
if (Gi_192 && f0_9(OP_BUY, OP_BUYLIMIT, Magic_Number, Symbol()) < Max_Kol_Orders) {
OrderSend(Symbol(), OP_BUYLIMIT, NormalizeDouble(Lot_Koef * f0_6(OP_BUY, Magic_Number, Symbol()), 2), price_0, 3, price_16, price_24, DoubleToStr(f0_9(OP_BUY, OP_BUYLIMIT,
Magic_Number, Symbol()) + 1, 0), Magic_Number, 0, Blue);
}
}
if (opener_sell_series(Gi_364, LIC_KEY, f0_3(OP_SELL, Magic_Number, Symbol()), f0_3(OP_SELLLIMIT, Magic_Number, Symbol()), ima_52, icci_60, iadx_68)) {
pips_40 = f0_5(f0_9(OP_SELL, OP_SELLLIMIT, Magic_Number, Symbol()));
pips_32 = f0_8(f0_9(OP_SELL, OP_SELLLIMIT, Magic_Number, Symbol()));
price_0 = f0_10(OP_SELL, Magic_Number, Symbol()) + pips_40 * Point;
price_8 = price_0 + Stop_Los * Point;
if (Stop_Los <= 0.0) price_8 = 0;
price_24 = price_0 – pips_32 * Point;
if (Gi_192 && f0_9(OP_SELL, OP_SELLLIMIT, Magic_Number, Symbol()) < Max_Kol_Orders) {
OrderSend(Symbol(), OP_SELLLIMIT, NormalizeDouble(Lot_Koef * f0_6(OP_SELL, Magic_Number, Symbol()), 2), price_0, 3, price_8, price_24, DoubleToStr(f0_9(OP_SELL, OP_SELLLIMIT,
Magic_Number, Symbol()) + 1, 0), Magic_Number, 0, Red);
}
}
double price_144 = f0_10(OP_BUY, Magic_Number, Symbol()) – Stop_Los * Point;
double price_152 = f0_7(OP_BUY, Magic_Number, Symbol());
double price_160 = f0_10(OP_SELL, Magic_Number, Symbol()) + Stop_Los * Point;
double price_168 = f0_7(OP_SELL, Magic_Number, Symbol());
for (pos_48 = OrdersTotal() – 1; pos_48 >= 0; pos_48–) {
OrderSelect(pos_48, SELECT_BY_POS, MODE_TRADES);
if (OrderSymbol() == Symbol() && OrderType() == OP_BUY && OrderMagicNumber() == Magic_Number) {
if (Stop_Los <= 0.0) price_144 = 0;
if (price_152 != OrderTakeProfit() || price_144 != OrderStopLoss()) OrderModify(OrderTicket(), OrderOpenPrice(), price_144, price_152, 0, Blue);
}
if (OrderSymbol() == Symbol() && OrderType() == OP_SELL && OrderMagicNumber() == Magic_Number) {
if (Stop_Los <= 0.0) price_160 = 0;
if (price_168 != OrderTakeProfit() || price_160 != OrderStopLoss()) OrderModify(OrderTicket(), OrderOpenPrice(), price_160, price_168, 0, Red);
}
}
return (0);
}

// 0D9799B1C1F05202666C0E14A70FB90A
void f0_0(int A_cmd_0, int A_magic_4, string A_symbol_8) {
for (int pos_16 = OrdersTotal() – 1; pos_16 >= 0; pos_16–) {
OrderSelect(pos_16, SELECT_BY_POS, MODE_TRADES);
if (A_cmd_0 == OrderType() && A_symbol_8 == OrderSymbol() && OrderMagicNumber() == A_magic_4) {
if (OrderType() <= OP_SELL) {
OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), 3);
continue;
}
OrderDelete(OrderTicket());
}
}
}

// 6495D6114F9F6A9E83CAABDC37EEA81A
int f0_3(int A_cmd_0, int A_magic_4, string A_symbol_8) {
OrderSelect(-1, SELECT_BY_POS, MODE_TRADES);
int count_16 = 0;
for (int pos_20 = OrdersTotal() – 1; pos_20 >= 0; pos_20–) {
OrderSelect(pos_20, SELECT_BY_POS, MODE_TRADES);
if (OrderMagicNumber() == A_magic_4 && A_cmd_0 == OrderType() && A_symbol_8 == OrderSymbol()) count_16++;
}
return (count_16);
}

// 703E1AB6B729169DC98FE683DDA5614F
double f0_6(int A_cmd_0, int A_magic_4, string A_symbol_8) {
double order_lots_16;
OrderSelect(-1, SELECT_BY_POS, MODE_TRADES);
int datetime_28 = 0;
for (int pos_24 = OrdersTotal() – 1; pos_24 >= 0; pos_24–) {
if (OrderSelect(pos_24, SELECT_BY_POS, MODE_TRADES)) {
if (OrderType() == A_cmd_0 && OrderSymbol() == A_symbol_8 && OrderMagicNumber() == A_magic_4) {
if (OrderOpenTime() > datetime_28) {
datetime_28 = OrderOpenTime();
order_lots_16 = OrderLots();
}
}
}
}
return (order_lots_16);
}

// F6350DC4270D10950432BFD66571E34B
double f0_10(int A_cmd_0, int A_magic_4, string A_symbol_8) {
double order_open_price_16;
OrderSelect(-1, SELECT_BY_POS, MODE_TRADES);
int datetime_28 = 0;
for (int pos_24 = OrdersTotal() – 1; pos_24 >= 0; pos_24–) {
if (OrderSelect(pos_24, SELECT_BY_POS, MODE_TRADES)) {
if (OrderType() == A_cmd_0 && OrderSymbol() == A_symbol_8 && OrderMagicNumber() == A_magic_4) {
if (OrderOpenTime() > datetime_28) {
datetime_28 = OrderOpenTime();
order_open_price_16 = OrderOpenPrice();
}
}
}
}
return (order_open_price_16);
}

// 7742AA896C893F4670FF35C42F79790D
double f0_7(int A_cmd_0, int A_magic_4, string A_symbol_8) {
double order_takeprofit_16;
OrderSelect(-1, SELECT_BY_POS, MODE_TRADES);
int datetime_28 = 0;
for (int pos_24 = OrdersTotal() – 1; pos_24 >= 0; pos_24–) {
if (OrderSelect(pos_24, SELECT_BY_POS, MODE_TRADES)) {
if (OrderType() == A_cmd_0 && OrderSymbol() == A_symbol_8 && OrderMagicNumber() == A_magic_4) {
if (OrderOpenTime() > datetime_28) {
datetime_28 = OrderOpenTime();
order_takeprofit_16 = OrderTakeProfit();
}
}
}
}
return (order_takeprofit_16);
}

// ED50391A7CE190447E244E926FA0AEF4
int f0_9(int A_cmd_0, int A_cmd_4, int A_magic_8, string A_symbol_12) {
int str2int_20;
OrderSelect(-1, SELECT_BY_POS, MODE_TRADES);
int datetime_28 = 0;
for (int pos_24 = OrdersTotal() – 1; pos_24 >= 0; pos_24–) {
if (OrderSelect(pos_24, SELECT_BY_POS, MODE_TRADES)) {
if (OrderType() == A_cmd_0 || OrderType() == A_cmd_4 && OrderSymbol() == A_symbol_12 && OrderMagicNumber() == A_magic_8) {
if (OrderOpenTime() > datetime_28) {
datetime_28 = OrderOpenTime();
str2int_20 = StrToInteger(OrderComment());
}
}
}
}
return (str2int_20);
}

// 6D1297AD7DDC1B75ECBF821AC997A182
int f0_5(int Ai_0) {
switch (Ai_0) {
case 1:
return (level2);
case 2:
return (level3);
case 3:
return (level4);
case 4:
return (level5);
case 5:
return (level6);
case 6:
return (level7);
case 7:
return (level8);
case 8:
return (level9);
case 9:
return (level10);
case 10:
return (level11);
}
return (level11);
}

// 97F9E233B4A091DC915ACBA106C26C13
int f0_8(int Ai_0) {
switch (Ai_0) {
case 1:
return (profit2);
case 2:
return (profit3);
case 3:
return (profit4);
case 4:
return (profit5);
case 5:
return (profit6);
case 6:
return (profit7);
case 7:
return (profit8);
case 8:
return (profit9);
case 9:
return (profit10);
case 10:
return (profit11);
}
return (profit11);
}

// 682EBAB2090D7973E0B0C9CB4D5BABED
bool f0_4() {
if (Gi_368) return (FALSE);
if (!IsTradeAllowed()) return (FALSE);
return (TRUE);
}

如果你对文件有了解,请帮助投票!

If you are familiar with the file, please help vote!

平均评分 0 / 5. 投票数: 0

到目前为止还没有投票!成为第一位投票人。

相关资源

暂无评论

none
暂无评论...