النتائج 1 إلى 7 من 7
الموضوع: مطلوب شرح Scalper2010_EURUSD
- 20-03-2010, 03:56 AM #1
مطلوب شرح Scalper2010_EURUSD
السلام عليكم و رحمة الله و بركاته
سامحونى اخوانى الأعزاء عن جهلى فانا جديد بعض الشئ على الفوركس
و بصراحة الأكسبرت ده ناس كتير فى المنتدى شكروا فيه جدا و فى الأخ ابو خالد اللى حطه فى المنتدى و للأسف الموضوع مغلق الأن
فبرجاء حد من الأخوة الخبراء يقدملنا شرح عنة
و هذا رابط الوضوع الأصلى
https://forum.arabictrader.com/t89280.html
ولكم جزيل الشكرآخر تعديل بواسطة mesurge ، 20-03-2010 الساعة 03:59 AM سبب آخر: اضافة
- 20-03-2010, 07:01 AM #2
رد: مطلوب شرح Scalper2010_EURUSD
Thanks Brothers
Above EA was ERROR,We don't have Trade results on Strategy tester
Can You Upload EA but it is not ERROR
?!?
- 20-03-2010, 07:59 AM #3
رد: مطلوب شرح Scalper2010_EURUSD
أيوه ماهو أصلا مش شغال ولا باك تست وليف
أصل اللي نزله نزله وجري والموضوع اتقفل وهو اتوقف الله اعلم إيه اللي بيحصل
- 20-03-2010, 08:16 AM #4
رد: مطلوب شرح Scalper2010_EURUSD
Where is the Source of ERROR
?!?
It Does not Trade on STrategy Tester,Please Modify it So that There was not Error on This EA
#import "scld.dll"
void Scale(double a0, double a1, int& a2[], int& a3[], int& a4[], int& a5[], int& a6[], int& a7[], int& a8[], int& a9[], int& a10[], int& a11[], int& a12[]);
void ScalMem(double a0, double a1, bool& a2[], bool& a3[], bool& a4[], double& a5[], double& a6[], int& a7[], int& a8[], int& a9[], int& a10[], int& a11[], double a12, double a13, double a14, int a15, int a16, int a17);
void ScalProc(int& a0[], int& a1[], int& a2[], int& a3[], double& a4[], double& a5[], double& a6[], double& a7[], double& a8[], int a9, int a10, int a11, int a12, int a13, int a14, int a15, int a16, int a17, double a18, double a19, double a20, double a21, double a22, double a23);
#import
extern string _Scalper_2010_EURUSD_;
extern double LotSize = 0.1;
extern bool Compounding = FALSE;
extern int CompoundEach = 240;
extern int GMT = 1;
string gs_104;
string gs_112;
bool gi_120 = FALSE;
bool gi_124 = TRUE;
double gd_128 = 0.1;
double gd_136 = 0.1;
double gd_unused_144 = 0.1;
double gd_152 = 0.0;
int gi_160 = 45;
int gi_164 = 80;
extern int Slippage = 3;
int gi_172 = 2;
int gi_176;
int gi_180;
int gi_184 = 6;
int gi_188 = 0;
int g_magic_192 = 873411;
double gd_196 = 0.0;
int gi_204 = 3000;
int g_ticket_208 = 0;
string gs_unused_212 = "";
int g_spread_220;
int gia_224[] = {0};
int gia_228[] = {0};
int gia_232[] = {0};
int gia_236[] = {0};
bool gba_240[] = {1};
bool gba_244[] = {0};
bool gba_248[] = {0};
double gda_252[] = {0};
double gda_256[] = {0};
int gia_260[] = {0};
int gi_264 = D'01.01.2009 03:00';
int gi_268 = D'21.02.2029 03:00';
int g_period_272 = 12;
int g_period_276 = 26;
int g_period_280 = 9;
int g_period_284 = 30;
int gi_288 = 52;
int g_period_292 = 9;
int gi_296 = 45;
int g_period_300 = 16;
int gi_unused_304;
double g_price_308 = 0.0;
double g_price_316 = 0.0;
bool gi_324 = TRUE;
bool gi_328 = TRUE;
int gi_unused_332 = 4;
int gi_unused_336 = 4;
int g_datetime_340 = 0;
double gd_unused_344 = 0.0;
int gi_unused_352 = 6;
int gi_356 = 12;
int gi_unused_360 = -1;
int gi_364 = 6;
string gs_unused_368 = "22:30";
string gs_unused_376 = "8:30";
int gi_384 = 6000;
int gi_388 = 7000;
int gi_392 = 8000;
int gi_396 = 9000;
int gi_400 = 10000;
int gi_unused_404 = 10001;
int gi_408 = 10;
int gi_412 = 10;
int gi_416 = 10;
int gi_420 = 10;
int gi_424 = 10;
int gi_428 = 10;
double gd_432;
double gd_unused_440;
double gd_unused_448;
double gd_456 = 0.0;
bool gi_464;
bool gi_468;
bool gi_472;
double g_lots_476 = 0.0;
int g_magic_484 = 888888889;
int g_ticket_488;
int g_ticket_492;
int gi_496 = 10;
int gi_500 = 22;
int gi_504 = 104;
int gi_508 = 53;
int gi_512 = 10;
string gs_516 = "This version is expired. Visit www.fxpromaker.com";
string gs_524 = "This EA does not trade from December, 20 till January, 7";
string gs_532 = "Invalid Account. Visit www.fxpromaker.com";
string gs_540 = "Minimal lotsize you can open with this broker is ";
string gs_548 = "Not enough margin for opening an order";
string gs_556 = "We recommend you to trade on EURUSD only";
string gs_564 = "Set \"Allow DLL Imports\"";
string gs_572 = "Broker does not execute lots bigger than ";
string gs_580 = "Set the LotSize not bigger than ";
int init() {
/*if (TimeCurrent() < gi_264 || TimeCurrent() > gi_268) {
Alert(gs_516);
return (-1);
}
if (!IsDemo() && !IsTesting()) {
Alert(gs_532);
return (-1);
}*/
if (StringSubstr(Symbol(), 0, 6) != "EURUSD") {
Alert(gs_556);
return (-1);
}
if (!IsDllsAllowed()) {
Alert(gs_564);
return (0);
}
Comment(" ");
if (LotSize < MarketInfo(Symbol(), MODE_MINLOT)) {
Alert(gs_540, NormalizeDouble(MarketInfo(Symbol(), MODE_MINLOT), 2));
return (-1);
}
if (LotSize > MarketInfo(Symbol(), MODE_MAXLOT)) {
Alert(gs_572, NormalizeDouble(MarketInfo(Symbol(), MODE_MAXLOT), 0),
"\n", gs_580, NormalizeDouble(MarketInfo(Symbol(), MODE_MAXLOT), 0));
return (-1);
}
if (AccountFreeMarginCheck(Symbol(), OP_BUY, LotSize) < 0.0 || AccountFreeMarginCheck(Symbol(), OP_SELL, LotSize) < 0.0) Alert(gs_548);
gd_456 = gd_136;
g_lots_476 = 0;
return (0);
}
int start() {
int l_ticket_16;
int l_ticket_20;
double l_lots_60;
double l_ord_takeprofit_84;
double ld_108;
double ld_116;
double ld_124;
double ld_132;
double l_ord_open_price_140;
double l_ord_open_price_148;
double l_ord_open_price_156;
double l_ord_open_price_164;
string l_dbl2str_172;
double l_ord_open_price_180;
double l_ord_open_price_188;
double l_ticket_196;
double l_ticket_204;
string ls_364;
double l_lotstep_468;
double l_lotstep_508;
/*if (TimeCurrent() < gi_264 || TimeCurrent() > gi_268)
{
Comment(gs_516);
return (-1);
}
if (!IsDemo() && !IsTesting())
{
Comment(gs_532);
return (-1);
}*/
if (StringSubstr(Symbol(), 0, 6) != "EURUSD") {
Comment(gs_556);
return (-1);
}
if (!IsDllsAllowed()) {
Comment(gs_564);
return (-1);
}
if (LotSize < MarketInfo(Symbol(), MODE_MINLOT)) {
Comment(gs_540, NormalizeDouble(MarketInfo(Symbol(), MODE_MINLOT), 2));
return (-1);
}
if (LotSize > MarketInfo(Symbol(), MODE_MAXLOT)) {
Comment(gs_572, NormalizeDouble(MarketInfo(Symbol(), MODE_MAXLOT), 0),
"\n", gs_580, NormalizeDouble(MarketInfo(Symbol(), MODE_MAXLOT), 0));
return (-1);
}
if (AccountFreeMarginCheck(Symbol(), OP_BUY, LotSize) < 0.0 || AccountFreeMarginCheck(Symbol(), OP_SELL, LotSize) < 0.0) {
Comment(gs_548);
return (-1);
}
if ((Month() == 1 && Day() < 7) || (Month() == 12 && Day() >= 20)) {
Comment(gs_524);
return (-1);
}
int l_ticket_0 = 0;
int l_ticket_4 = 0;
int li_unused_8 = 0;
int li_unused_12 = 0;
int li_unused_24 = 0;
double ld_unused_28 = 0;
double ld_unused_36 = 0;
double l_ord_open_price_44 = 0;
double l_ord_open_price_52 = 0;
double l_ord_takeprofit_68 = 0;
double l_ord_takeprofit_76 = 0;
double l_str2dbl_92 = 0;
double l_str2dbl_100 = 0;
int lia_212[] = {20};
int lia_216[] = {30};
int lia_220[] = {25};
int lia_224[] = {60};
int lia_228[] = {20};
int lia_232[] = {70};
int lia_236[] = {60};
int lia_240[] = {50};
int lia_244[] = {123};
int lia_248[] = {234};
int lia_252[] = {345};
int li_256 = 0;
int lia_260[] = {0};
int lia_264[] = {0};
lia_264[0] = Period();
double lda_268[] = {0};
double lda_272[] = {0};
double lda_276[] = {0};
double l_irsi_280 = iRSI(Symbol(), PERIOD_M1, g_period_284, PRICE_CLOSE, 0);
double l_irsi_288 = iRSI(Symbol(), PERIOD_M15, g_period_292, PRICE_CLOSE, 0);
double l_ima_296 = iMA(Symbol(), PERIOD_M15, g_period_300, 0, MODE_SMA, PRICE_MEDIAN, 1);
double l_imacd_304 = iMACD(Symbol(), PERIOD_M15, g_period_272, g_period_276, g_period_280, PRICE_CLOSE, MODE_MAIN, 0);
gd_128 = LotSize;
gd_136 = LotSize;
gd_456 = LotSize;
gd_unused_144 = LotSize;
double l_lots_312 = LotSize;
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23 && gi_464 == FALSE) {
gda_252[0] = Bid;
gda_256[0] = Bid;
gi_464 = TRUE;
}
if (TimeHour(TimeCurrent()) == GMT + 0 || TimeHour(TimeCurrent()) == GMT + 1 || TimeHour(TimeCurrent()) == GMT + 2) gi_464 = FALSE;
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4 && gi_468 == FALSE) {
gda_256[0] = Bid;
gda_252[0] = Bid;
gi_468 = TRUE;
}
if (TimeHour(TimeCurrent()) == GMT + 5 || TimeHour(TimeCurrent()) == GMT + 6 || TimeHour(TimeCurrent()) == GMT + 7) gi_468 = FALSE;
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8 && gi_472 == FALSE) {
gda_256[0] = Bid;
gda_252[0] = Bid;
gi_472 = TRUE;
}
if (TimeHour(TimeCurrent()) == GMT + 9 || TimeHour(TimeCurrent()) == GMT + 10 || TimeHour(TimeCurrent()) == GMT + 11) gi_472 = FALSE;
Scale(l_irsi_280, l_irsi_288, lia_212, lia_216, lia_220, lia_224, lia_228, lia_232, lia_236, lia_240, lia_244, lia_248, lia_252);
switch (GMT) {
case 0:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "21:00";
gs_112 = "23:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "03:30";
gs_112 = "4:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "7:30";
gs_112 = "7:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case 1:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "22:00";
gs_112 = "0:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "04:30";
gs_112 = "5:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "8:30";
gs_112 = "8:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case 2:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "23:00";
gs_112 = "1:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "05:30";
gs_112 = "6:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "9:30";
gs_112 = "9:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case 3:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "00:00";
gs_112 = "2:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "06:30";
gs_112 = "7:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "10:30";
gs_112 = "10:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case 4:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "01:00";
gs_112 = "3:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "07:30";
gs_112 = "8:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "11:30";
gs_112 = "11:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case 5:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "02:00";
gs_112 = "4:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "08:30";
gs_112 = "9:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "12:30";
gs_112 = "12:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case 6:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "03:00";
gs_112 = "5:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "09:30";
gs_112 = "10:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "13:30";
gs_112 = "13:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case 7:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "04:00";
gs_112 = "6:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "10:30";
gs_112 = "11:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "14:30";
gs_112 = "14:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case 8:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "05:00";
gs_112 = "7:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "11:30";
gs_112 = "12:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "15:30";
gs_112 = "15:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case 9:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "06:00";
gs_112 = "8:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "12:30";
gs_112 = "13:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "16:30";
gs_112 = "16:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case 10:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "07:00";
gs_112 = "9:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "13:30";
gs_112 = "14:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "17:30";
gs_112 = "17:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case 11:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "08:00";
gs_112 = "10:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "14:30";
gs_112 = "15:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "18:30";
gs_112 = "18:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case 12:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "09:00";
gs_112 = "11:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "15:30";
gs_112 = "16:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "19:30";
gs_112 = "19:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case 13:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "10:00";
gs_112 = "12:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "16:30";
gs_112 = "17:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "20:30";
gs_112 = "20:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case -1:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "20:00";
gs_112 = "22:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "02:30";
gs_112 = "3:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "6:30";
gs_112 = "6:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case -2:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "19:00";
gs_112 = "21:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "01:30";
gs_112 = "2:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "5:30";
gs_112 = "5:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case -3:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "18:00";
gs_112 = "20:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "00:30";
gs_112 = "1:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "4:30";
gs_112 = "4:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case -4:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "17:00";
gs_112 = "19:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "23:30";
gs_112 = "0:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "3:30";
gs_112 = "3:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case -5:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "16:00";
gs_112 = "18:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "22:30";
gs_112 = "23:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "2:30";
gs_112 = "2:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case -6:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "15:00";
gs_112 = "17:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "21:30";
gs_112 = "22:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "1:30";
gs_112 = "1:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case -7:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "14:00";
gs_112 = "16:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "20:30";
gs_112 = "21:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "0:30";
gs_112 = "0:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case -8:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "13:00";
gs_112 = "15:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "19:30";
gs_112 = "20:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "23:30";
gs_112 = "23:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case -9:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "12:00";
gs_112 = "14:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "18:30";
gs_112 = "19:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "22:30";
gs_112 = "22:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case -10:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "11:00";
gs_112 = "13:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "17:30";
gs_112 = "18:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "21:30";
gs_112 = "21:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case -11:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "10:00";
gs_112 = "12:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "16:30";
gs_112 = "17:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "20:30";
gs_112 = "20:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
break;
case -12:
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23) {
gs_104 = "9:00";
gs_112 = "11:30";
gi_408 = lia_212[li_256];
gi_176 = lia_224[li_256];
gi_180 = lia_232[li_256];
g_magic_192 = lia_244[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4) {
gs_104 = "15:30";
gs_112 = "16:20";
gi_408 = lia_216[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_236[li_256];
g_magic_192 = lia_248[li_256];
}
if (TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8) {
gs_104 = "19:30";
gs_112 = "19:59";
gi_408 = lia_220[li_256];
gi_176 = lia_228[li_256];
gi_180 = lia_240[li_256];
g_magic_192 = lia_252[li_256];
}
}
Reset();
if (Digits == 4 && StringSubstr(Symbol(), 0, 6) == "EURUSD") gi_408 += 2 - g_spread_220;
if (Digits == 5 && StringSubstr(Symbol(), 0, 6) == "EURUSD" && gi_408 < 30) {
gi_408 = 10 * gi_408 + (10 - g_spread_220);
gi_176 = 10 * gi_176;
gi_180 = 10 * gi_180;
}
if (Digits == 5 && StringSubstr(Symbol(), 0, 6) == "EURUSD" && gi_184 < 20) {
gi_184 = 10 * gi_184;
gi_188 = 10 * gi_188;
gi_164 = 10 * gi_164;
gi_496 = 10 * gi_496;
Slippage = 10 * Slippage;
gi_500 = 10 * gi_500;
gi_504 = 10 * gi_504;
gi_508 = 10 * gi_508;
gi_512 = 10 * gi_512;
}
for (int l_pos_324 = 0; l_pos_324 < OrdersTotal(); l_pos_324++) {
OrderSelect(l_pos_324, SELECT_BY_POS, MODE_TRADES);
if (StringSubstr(OrderSymbol(), 0, 6) == StringSubstr(Symbol(), 0, 6) && OrderMagicNumber() == g_magic_192) {
if (OrderType() == OP_BUY && StrToDouble(OrderComment()) > l_str2dbl_92) {
l_ord_open_price_44 = OrderOpenPrice();
l_ticket_0 = OrderTicket();
l_ord_takeprofit_76 = OrderTakeProfit();
l_str2dbl_92 = StrToDouble(OrderComment());
}
if (OrderType() == OP_SELL && StrToDouble(OrderComment()) > l_str2dbl_100) {
l_ord_open_price_52 = OrderOpenPrice();
l_ticket_4 = OrderTicket();
l_ord_takeprofit_68 = OrderTakeProfit();
l_str2dbl_100 = StrToDouble(OrderComment());
}
}
}
int lia_328[] = {0};
if (Period() < g_period_284) lia_328[0] = Time[1];
else lia_328[0] = Time[0];
if (l_imacd_304 > 32.0) gi_unused_304 = 1;
if (l_irsi_288 > 50 - gi_356 && l_irsi_288 < gi_356 + 50) {
gi_324 = TRUE;
gi_328 = TRUE;
}
double ld_332 = g_price_308 * Point;
double ld_340 = g_price_316 * Point;
double l_ord_open_price_348 = OrderOpenPrice();
int l_pos_356 = l_pos_324;
if (l_pos_356 == 0 && l_irsi_288 < gi_296 || l_irsi_280 < gi_288 && l_ima_296 >= Ask + gi_364 * Point) {
if (gba_244[0] == 1 && gi_328) {
g_price_308 = Ask - ld_332;
g_price_316 = Ask + ld_340;
gi_324 = TRUE;
gi_328 = FALSE;
g_datetime_340 = TimeCurrent();
gd_unused_344 = Ask;
}
}
if (l_pos_356 == 0 && l_irsi_288 > 100 - gi_296 || l_irsi_280 > 100 - gi_288 && l_ima_296 <= Bid - gi_364 * Point) {
if (gba_248[0] == 1 && gi_324) {
g_price_308 = Bid + ld_332;
g_price_316 = Bid - ld_340;
gi_324 = FALSE;
gi_328 = TRUE;
g_datetime_340 = TimeCurrent();
gd_unused_344 = Bid;
}
}
for (int l_pos_360 = 0; l_pos_360 < OrdersTotal(); l_pos_360++) {
OrderSelect(l_pos_360, SELECT_BY_POS, MODE_TRADES);
if (StringSubstr(OrderSymbol(), 0, 6) == StringSubstr(Symbol(), 0, 6) && OrderMagicNumber() == g_magic_192) {
if (OrderType() == OP_BUY && StrToDouble(OrderComment()) > l_str2dbl_92) {
l_ord_open_price_44 = OrderOpenPrice();
l_ticket_0 = OrderTicket();
l_ord_takeprofit_76 = OrderTakeProfit();
l_str2dbl_92 = StrToDouble(OrderComment());
}
if (OrderType() == OP_SELL && StrToDouble(OrderComment()) > l_str2dbl_100) {
l_ord_open_price_52 = OrderOpenPrice();
l_ticket_4 = OrderTicket();
l_ord_takeprofit_68 = OrderTakeProfit();
l_str2dbl_100 = StrToDouble(OrderComment());
}
if (OrderType() == OP_BUY) {
ld_108 += OrderLots() * OrderOpenPrice();
ld_116 += OrderLots();
}
if (OrderType() == OP_SELL) {
ld_124 += OrderLots() * OrderOpenPrice();
ld_132 += OrderLots();
}
if (OrderType() == OP_BUY && StrToDouble(OrderComment()) == 1.0) l_ord_open_price_140 = OrderOpenPrice();
if (OrderType() == OP_SELL && StrToDouble(OrderComment()) == 1.0) l_ord_open_price_148 = OrderOpenPrice();
if (OrderType() == OP_BUYSTOP) {
l_ticket_16 = OrderTicket();
l_ord_open_price_156 = OrderOpenPrice();
l_pos_356 = 1;
}
if (OrderType() == OP_SELLSTOP) {
l_ticket_20 = OrderTicket();
l_ord_open_price_164 = OrderOpenPrice();
l_pos_356 = 1;
}
if (OrderType() == OP_BUY) l_ticket_196 = OrderTicket();
if (OrderType() == OP_SELL) l_ticket_204 = OrderTicket();
}
}
if (Compounding == TRUE) ls_364 = "On";
else ls_364 = "Off";
Comment(" ",
"\n", " ",
"\n", "Scalper_2010_EURUSD",
"\n", "www.fxpromaker.com",
"\n",
"\n", "Time: ", Hour(), ":", Minute(), ":", Seconds(),
"\n", "Time trading session: ", GMT + 21, ".00", " - ", GMT + 8, ".00",
"\n", "Compounding is ", ls_364,
"\n", "GMT ", GMT,
"\n", "Spread: ", MarketInfo(Symbol(), MODE_SPREAD));
double l_price_372 = 0;
double l_price_380 = 0;
double l_price_388 = 0;
double l_price_396 = 0;
double l_price_404 = 0;
double l_price_412 = 0;
double ld_420 = 0;
double ld_428 = 0;
double ld_436 = 0;
double ld_444 = 0;
double ld_452 = 0;
double ld_460 = 0;
if (TimeHour(TimeCurrent()) == GMT + 21 || TimeHour(TimeCurrent()) == GMT + 22 || TimeHour(TimeCurrent()) == GMT + 23 || TimeHour(TimeCurrent()) == GMT + 0 || TimeHour(TimeCurrent()) == GMT +
1 || TimeHour(TimeCurrent()) == GMT + 2 || TimeHour(TimeCurrent()) == GMT + 3 || TimeHour(TimeCurrent()) == GMT + 4 || TimeHour(TimeCurrent()) == GMT + 5 || TimeHour(TimeCurrent()) == GMT + 6 ||
TimeHour(TimeCurrent()) == GMT + 7 || TimeHour(TimeCurrent()) == GMT + 8 && DayOfWeek() != 5 || Hour() < GMT + 19) {
if (Compounding == TRUE) {
l_lotstep_468 = MarketInfo(Symbol(), MODE_LOTSTEP);
l_lots_312 = NormalizeDouble(l_lotstep_468 * MathFloor(AccountBalance() * gd_456 / (CompoundEach * l_lotstep_468)), gi_172);
}
if (g_lots_476 < l_lots_60) g_lots_476 = l_lots_60;
if (g_lots_476 > l_lots_60) l_lots_312 = g_lots_476;
for (l_pos_360 = 0; l_pos_360 < OrdersTotal(); l_pos_360++) {
OrderSelect(l_pos_360, SELECT_BY_POS, MODE_TRADES);
if (StringSubstr(OrderSymbol(), 0, 6) == StringSubstr(Symbol(), 0, 6) && OrderMagicNumber() == g_magic_484) {
if (OrderType() == OP_BUYSTOP) {
ld_420 = OrderTicket();
l_ord_open_price_180 = OrderOpenPrice();
}
if (OrderType() == OP_SELLSTOP) {
ld_428 = OrderTicket();
l_ord_open_price_188 = OrderOpenPrice();
}
}
}
if (l_ord_open_price_180 > 0.0 || l_ord_open_price_188 > 0.0) {
ld_436 = l_ord_open_price_180 - gi_500 * Point;
ld_444 = l_ord_open_price_188 + gi_500 * Point;
ld_452 = l_ord_open_price_180 - gi_504 * Point;
ld_460 = l_ord_open_price_188 + gi_504 * Point;
}
if (l_ord_open_price_180 == 0.0 && l_ord_open_price_188 == 0.0 && l_ticket_16 == 0 && l_ticket_20 == 0 && l_ticket_196 == 0.0 && l_ticket_204 == 0.0) {
l_price_372 = Bid + gi_508 * Point;
l_price_380 = Bid - gi_508 * Point;
l_price_388 = l_price_372 - gi_512 * Point;
l_price_396 = l_price_380 + gi_512 * Point;
l_price_404 = l_price_372 + gi_496 * Point;
l_price_412 = l_price_380 - gi_496 * Point;
if (gia_260[0] > 0 || l_imacd_304 > 32.0) g_ticket_488 = OrderSend(Symbol(), OP_BUYSTOP, l_lots_312, l_price_372, Slippage, l_price_388, l_price_404, 0, g_magic_484, 0, Blue);
if (gia_260[0] <= 0 && l_imacd_304 < 32.0) g_ticket_492 = OrderSend(Symbol(), OP_SELLSTOP, l_lots_312, l_price_380, Slippage, l_price_396, l_price_412, 0, g_magic_484, 0, Red);
}
if ((ld_436 != 0.0 && ld_452 > Bid) || (ld_436 != 0.0 && ld_436 < Bid) || l_ticket_16 > 0 || l_ticket_20 > 0 || l_ticket_196 > 0.0 || l_ticket_204 > 0.0)
if (ld_420 > 0.0) OrderDelete(g_ticket_488);
if ((ld_444 != 0.0 && ld_460 < Bid) || (ld_444 != 0.0 && ld_444 > Bid) || l_ticket_16 > 0 || l_ticket_20 > 0 || l_ticket_196 > 0.0 || l_ticket_204 > 0.0)
if (ld_428 > 0.0) OrderDelete(g_ticket_492);
} else {
for (l_pos_360 = 0; l_pos_360 < OrdersTotal(); l_pos_360++) {
OrderSelect(l_pos_360, SELECT_BY_POS, MODE_TRADES);
if (StringSubstr(OrderSymbol(), 0, 6) == StringSubstr(Symbol(), 0, 6) && OrderMagicNumber() == g_magic_484) {
if (OrderType() == OP_BUYSTOP) ld_420 = OrderTicket();
if (OrderType() == OP_SELLSTOP) ld_428 = OrderTicket();
}
}
if (ld_420 > 0.0) OrderDelete(g_ticket_488);
if (ld_428 > 0.0) OrderDelete(g_ticket_492);
}
int l_datetime_476 = TimeCurrent();
int l_str2time_480 = StrToTime(gs_104);
int l_str2time_484 = StrToTime(gs_112);
if (l_str2time_484 == 0 && l_str2time_480 == 0) return;
if ((l_str2time_480 < l_str2time_484 && l_datetime_476 < l_str2time_480 || l_datetime_476 > l_str2time_484) || (l_str2time_480 > l_str2time_484 && l_datetime_476 < l_str2time_480 &&
l_datetime_476 > l_str2time_484)) {
if (gi_120 == TRUE) {
for (int l_pos_488 = OrdersTotal() - 1; l_pos_488 >= 0; l_pos_488--) {
OrderSelect(l_pos_488, SELECT_BY_POS, MODE_TRADES);
if (OrderSymbol() == Symbol() && OrderMagicNumber() == g_magic_192) {
if (OrderType() == OP_BUY || OrderType() == OP_SELL) OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), 5, CLR_NONE);
if (OrderType() != OP_BUY && OrderType() != OP_SELL) OrderDelete(OrderTicket());
}
}
gba_240[0] = 1;
return (0);
}
if (l_ticket_0 == 0 && l_ticket_4 == 0) {
if (l_ticket_16 > 0) OrderDelete(l_ticket_16);
if (l_ticket_20 > 0) OrderDelete(l_ticket_20);
gba_240[0] = 1;
return (0);
}
}
int li_492 = 0;
for (int li_496 = 1; li_492 == 0; li_496++) {
if (OrderSelect(OrdersHistoryTotal() - li_496, SELECT_BY_POS, MODE_HISTORY) == TRUE) {
if (StringFind(OrderComment(), "1[sl]") != -1) li_492 = 1;
if (StringFind(OrderComment(), "1[tp]") != -1) li_492 = 2;
if (StringFind(OrderComment(), "0[sl]") != -1) li_492 = 3;
if (StringFind(OrderComment(), "0[tp]") != -1) li_492 = 4;
} else li_492 = -1;
}
double l_lotstep_500 = MarketInfo(Symbol(), MODE_LOTSTEP);
gd_152 = gd_136;
ScalMem(l_irsi_280, l_irsi_288, gba_240, gba_244, gba_248, gda_252, gda_256, lia_328, gia_260, gia_228, gia_232, gia_236, Bid, Ask, Point, l_ticket_0, l_ticket_4, gi_176);
if (OrdersTotal() > 0) l_pos_356 = 2;
gia_224[0] = iBarShift(NULL, 0, gia_236[0], FALSE);
SetTP();
ScalProc(lia_260, lia_264, gia_224, gia_260, gda_252, gda_256, lda_268, lda_272, lda_276, g_ticket_208, l_ticket_4, l_ticket_0, gi_188, gi_184, gi_180, gi_204, gi_164, gi_160, Bid, Ask, Point, gd_196, l_ord_open_price_52, l_ord_open_price_44);
if ((l_irsi_288 > 100 - gi_296 || l_irsi_280 > 100 - gi_288 && l_ima_296 <= Bid - gi_364 * Point && l_imacd_304 > 32.0 && gd_196 < -10.0) || lia_260[0] == 3) {
if (l_ticket_4 == 0) {
if (li_492 != 1) {
l_lots_60 = NormalizeDouble(gd_152, 2);
l_dbl2str_172 = DoubleToStr(1, 0);
} else {
l_lots_60 = NormalizeDouble(gd_128, 2);
l_dbl2str_172 = DoubleToStr(0, 0);
}
gd_unused_440 = gda_256[0];
}
for (l_pos_360 = 0; l_pos_360 < OrdersTotal(); l_pos_360++) {
OrderSelect(l_pos_360, SELECT_BY_POS, MODE_TRADES);
if (StringSubstr(OrderSymbol(), 0, 6) == StringSubstr(Symbol(), 0, 6) && OrderMagicNumber() == g_magic_192) {
if (OrderType() == OP_BUY) l_ticket_0 = OrderTicket();
if (OrderType() == OP_SELL) l_ticket_4 = OrderTicket();
}
}
if (Compounding == TRUE) {
l_lotstep_508 = MarketInfo(Symbol(), MODE_LOTSTEP);
l_lots_60 = NormalizeDouble(l_lotstep_508 * MathFloor(AccountBalance() * gd_456 / (CompoundEach * l_lotstep_508)), gi_172);
}
if (g_lots_476 < l_lots_60) g_lots_476 = l_lots_60;
if (g_lots_476 > l_lots_60) l_lots_60 = g_lots_476;
if (l_ticket_0 == 0 && l_ticket_16 == 0 && l_ticket_4 == 0) {
g_price_308 = lda_272[0];
g_price_316 = lda_276[0];
}
if (gi_124 == FALSE || (gi_124 == TRUE && l_ticket_0 == 0 && l_ticket_16 == 0 && l_ticket_4 == 0) || (l_pos_356 == 0 && l_irsi_288 > 100 - gi_296 || l_irsi_280 > 100 - gi_288 &&
l_ima_296 <= Bid - gi_364 * Point && l_imacd_304 > 32.0 && gd_196 < 0.0)) {
g_ticket_208 = OrderSend(Symbol(), OP_SELLSTOP, l_lots_60, lda_268[0], Slippage, g_price_308, g_price_316, l_dbl2str_172, g_magic_192, 0, Red);
if (g_ticket_208 < 0 && gda_252[0] - Bid >= gi_184 * Point) {
for (l_pos_360 = 0; g_ticket_208 < 0 || l_pos_360 >= 3; l_pos_360++) {
RefreshRates();
g_ticket_208 = OrderSend(Symbol(), OP_SELL, l_lots_60, Bid, Slippage, Bid + gi_164 * Point, Bid - gi_160 * Point, 0, g_magic_192, 0, CLR_NONE);
if (l_pos_360 >= 3) break;
if (g_ticket_208 < 0) Sleep(2000);
}
}
if (g_ticket_208 > 0 && l_ticket_20 > 0) OrderDelete(l_ticket_20);
}
gd_196 = gda_252[0] - gda_256[0];
}
SetTP();
if ((l_irsi_288 < gi_296 || l_irsi_280 < gi_288 && l_ima_296 >= Ask + gi_364 * Point && l_imacd_304 > 32.0 && gd_196 < -10.0) || lia_260[0] == 4) {
if (l_ticket_0 == 0) {
if (li_492 != 1) {
l_lots_60 = NormalizeDouble(gd_152, 2);
l_dbl2str_172 = DoubleToStr(1, 0);
} else {
l_lots_60 = NormalizeDouble(gd_128, 2);
l_dbl2str_172 = DoubleToStr(0, 0);
}
gd_unused_448 = gda_252[0];
}
for (l_pos_360 = 0; l_pos_360 < OrdersTotal(); l_pos_360++) {
OrderSelect(l_pos_360, SELECT_BY_POS, MODE_TRADES);
if (StringSubstr(OrderSymbol(), 0, 6) == StringSubstr(Symbol(), 0, 6) && OrderMagicNumber() == g_magic_192) {
if (OrderType() == OP_BUY) {
l_ticket_0 = OrderTicket();
l_pos_356 = 1;
}
if (OrderType() == OP_SELL) {
l_ticket_4 = OrderTicket();
l_pos_356 = 1;
}
}
}
if (Compounding == TRUE) {
l_lotstep_508 = MarketInfo(Symbol(), MODE_LOTSTEP);
l_lots_60 = NormalizeDouble(l_lotstep_508 * MathFloor(AccountBalance() * gd_456 / (CompoundEach * l_lotstep_508)), gi_172);
}
if (g_lots_476 < l_lots_60) g_lots_476 = l_lots_60;
if (g_lots_476 > l_lots_60) l_lots_60 = g_lots_476;
if (l_ticket_4 == 0 && l_ticket_20 == 0 && l_ticket_0 == 0) {
g_price_308 = lda_272[0];
g_price_316 = lda_276[0];
}
if (gi_124 == FALSE || (gi_124 == TRUE && l_ticket_4 == 0 && l_ticket_20 == 0 && l_ticket_0 == 0) || (l_pos_356 == 0 && l_irsi_288 < gi_296 || l_irsi_280 < gi_288 &&
l_ima_296 >= Ask + gi_364 * Point && l_imacd_304 > 32.0 && gd_196 < 0.0)) {
g_ticket_208 = OrderSend(Symbol(), OP_BUYSTOP, l_lots_60, lda_268[0], Slippage, g_price_308, g_price_316, l_dbl2str_172, g_magic_192, 0, Blue);
if (g_ticket_208 < 0 && Ask - gda_256[0] >= gi_184 * Point) {
for (l_pos_360 = 0; g_ticket_208 < 0; l_pos_360++) {
RefreshRates();
g_ticket_208 = OrderSend(Symbol(), OP_BUY, l_lots_60, Bid, Slippage, Bid - gi_164 * Point, lda_276[0], 0, g_magic_192, 0, Blue);
if (l_pos_360 >= 3) break;
if (g_ticket_208 < 0) Sleep(2000);
}
}
if (g_ticket_208 > 0 && l_ticket_16 > 0) OrderDelete(l_ticket_16);
}
gd_196 = gda_252[0] - gda_256[0];
}
for (l_pos_360 = 0; l_pos_360 < OrdersTotal(); l_pos_360++) {
OrderSelect(l_pos_360, SELECT_BY_POS, MODE_TRADES);
if (StringSubstr(OrderSymbol(), 0, 6) == StringSubstr(Symbol(), 0, 6) && OrderType() == OP_BUY && l_ticket_0 != 0 && OrderMagicNumber() == g_magic_192) {
if (l_ticket_0 > OrderTicket()) l_ord_takeprofit_84 = l_ord_takeprofit_76;
else l_ord_takeprofit_84 = OrderTakeProfit();
if (NormalizeDouble(l_ord_takeprofit_84, Digits) != NormalizeDouble(OrderTakeProfit(), Digits)) OrderModify(OrderTicket(), OrderOpenPrice(), OrderStopLoss(), NormalizeDouble(l_ord_takeprofit_84, Digits), 0, CLR_NONE);
}
if (StringSubstr(OrderSymbol(), 0, 6) == StringSubstr(Symbol(), 0, 6) && OrderType() == OP_SELL && l_ticket_4 != 0 && OrderMagicNumber() == g_magic_192) {
if (l_ticket_4 > OrderTicket()) l_ord_takeprofit_84 = l_ord_takeprofit_68;
else l_ord_takeprofit_84 = OrderTakeProfit();
if (NormalizeDouble(l_ord_takeprofit_84, Digits) != NormalizeDouble(OrderTakeProfit(), Digits)) OrderModify(OrderTicket(), OrderOpenPrice(), OrderStopLoss(), NormalizeDouble(l_ord_takeprofit_84, Digits), 0, CLR_NONE);
}
}
return (0);
}
void Reset() {
gia_228[0] = TimeCurrent();
gia_232[0] = Hour();
gia_236[0] = gia_228[0] - 3600 * gia_232[0] - 60 * Minute() - Seconds();
gia_224[0] = iBarShift(NULL, 0, gia_236[0], FALSE);
g_spread_220 = MarketInfo(Symbol(), MODE_SPREAD);
}
void SetTP() {
if (gd_432 <= gi_384) {
gi_160 = gi_408;
return;
}
if (gd_432 > gi_384 && gd_432 <= gi_388) {
gi_160 = gi_412;
return;
}
if (gd_432 > gi_388 && gd_432 <= gi_392) {
gi_160 = gi_416;
return;
}
if (gd_432 > gi_392 && gd_432 <= gi_396) {
gi_160 = gi_420;
return;
}
if (gd_432 > gi_396 && gd_432 <= gi_400) {
gi_160 = gi_424;
return;
}
if (gd_432 > gi_400) gi_160 = gi_428;
}آخر تعديل بواسطة vampire4x ، 20-03-2010 الساعة 08:38 AM
- 20-03-2010, 01:28 PM #5
رد: مطلوب شرح Scalper2010_EURUSD
السلام عليكم ورحمة الله و بركاته
اولا اشكر كل من زار الموضوع
ثانيا اخص بالشكر كل من اهتم و ساهم بالمشاركة و الرد
د سمسم و الاستاذ مصاص دماء الفوركس
طبعا انا مش خبير زى حضارتكم ولكن هل من الممكن تعديل و اصلاح هذا الأكسبيرت ليعمل كما هو مذكور؟
طبعا السؤال لحضرتكم و كذلك لكل الخبراء فى المنتدى
و مرة تانية باشكركم على اهتمامكم و ردودكم جزاكم الله كل خير
- 21-03-2010, 02:02 AM #6
رد: مطلوب شرح Scalper2010_EURUSD
الى الأخوة المبرمجين
جزاكم الله خيرا
- 08-04-2010, 07:51 PM #7
رد: مطلوب شرح Scalper2010_EURUSD
الاكسبرت لايعمل ارجاء المساعده
المواضيع المتشابهه
-
عايز برنامج تداول ميتاتريدر فية مؤشر ستاندر اند بورز ويكون الحساب ديمو
By تختخ in forum استفسارات وأسئلة المبتدئينمشاركات: 1آخر مشاركة: 03-08-2010, 08:41 AM -
مطلوب حيا -2
By Myopning in forum برمجة المؤشرات واكسبرتات التداول - Experts Advisor EAمشاركات: 11آخر مشاركة: 14-01-2010, 04:30 AM -
مطلوب
By ابوتركي الثبيتي in forum استراحة اعضاء المتداول العربيمشاركات: 3آخر مشاركة: 03-09-2007, 07:10 AM -
مطلوب حيا او حيا
By hadi75m in forum استراحة اعضاء المتداول العربيمشاركات: 14آخر مشاركة: 23-08-2007, 11:56 PM