← К каталогу
Исходный код · ID 2464

iMoney v7.1

imoney v7.1@lifeindreamsworld.mq4
Вы автор или правообладатель?

Сообщите нам, если считаете, что материал размещён без разрешения.

Краткий обзор

О программе

iMoney v7.1 — это торговый советник для платформы MetaTrader 4, написанный на языке MQL4. Советник работает в автоматическом режиме, обрабатывая событие OnTick для анализа рыночной ситуации и управления ордерами. В коде используются торговые функции MetaTrader (OrderSend, OrderClose, OrderModify, OrderDelete), что подтверждает наличие торговой логики, однако конкретные правила входа и выхода не раскрываются.

Советник содержит набор пользовательских настроек, включая параметры управления капиталом, уровни стоп-лосс и тейк-профит, а также настройки для сигналов на основе индикаторов. В коде присутствуют внутренние функции, которые, судя по их использованию, отвечают за генерацию торговых сигналов, но их алгоритмы не описываются. Также реализована логика закрытия ордеров по времени и по достижении определённых условий.

Важно отметить, что советник содержит жёстко заданные условия, привязанные к конкретным датам и валютам, что может ограничивать его универсальность. Пользователю следует учитывать это при тестировании и использовании. Советник не гарантирует прибыль, и его эффективность зависит от рыночных условий и правильной настройки параметров.

Настройки программы

НастройкаОписание
EA_NAME Название советника, используется в комментариях к ордерам.
Contact_Update Контактная информация для обновлений.
New_Update Информация об обновлении рыночных тенденций.
New_Update1 Информация об обновлении, связанном с выборами.
Note_Code Примечание о необходимости ввода кода.
CODE Код активации советника.
MT4_TIMEZONE_GMT Смещение времени сервера относительно GMT.
Note1 Примечание к настройкам тейк-профита и стоп-лосса.
TAKEPROFIT Размер тейк-профита в пунктах.
STOP_LOSS Размер стоп-лосса в пунктах.
Note3 Примечание к настройкам размера лота.
Fix_Size Переключатель режима фиксированного размера лота.
LOT_SIZE Размер лота при включённом фиксированном размере.
Note4 Примечание к настройкам сигналов.
Period_RSI_Signal_1 Период первого RSI для сигналов.
Period_RSI_Signal_2 Период второго RSI для сигналов.
MA_Signal Период первого скользящего среднего для сигналов.
MA_Signal2 Период второго скользящего среднего для сигналов.
MA_Signal3 Период третьего скользящего среднего для сигналов.
YOUR_COMMENT_IN_MT4 Комментарий к ордерам, отображаемый в терминале.
MAGICNUMBER Уникальный идентификатор ордеров советника.
Получить полный код

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

#property version    "1.00"
#property strict

#import   "stdlib.ex4"
          string ErrorDescription(int  para_1);
#import  

extern string EA_NAME="iMoney v7.1"  ;
extern string Contact_Update="b*******************g*@gmail.com"  ; 
extern string New_Update = "Update the latest market & Covid trends"  ;
extern string New_Update1 = "Market trends with the 2020 US presidential election."  ;
extern string Note_Code="Add the correct code, for EA to work"  ; 
extern string CODE="Unlimited";
extern int   MT4_TIMEZONE_GMT=2  ;
extern string Note1="Setup TP & SL"  ;
extern double TAKEPROFIT=600  ;  
extern double STOP_LOSS=600  ;   
extern string Note3="Setup lot size for orders"  ;
extern bool Fix_Size = false ;
extern double LOT_SIZE = 0.1  ; 
extern string Note4="Signals Traing"  ;
extern int   Period_RSI_Signal_1 = 14  ;  
extern int   Period_RSI_Signal_2 = 21  ; 
extern int   MA_Signal = 10  ; 
extern int   MA_Signal2 = 20  ; 
extern int   MA_Signal3 = 50  ; 
extern string YOUR_COMMENT_IN_MT4="Great"  ; 
extern int   MAGICNUMBER=3839  ;
double FAC_SIZE= 0.1  ; 
 bool   anni = false;
 bool ans;
 int       global_in_3 = 22;
 int       global_in_4 = 1;
 int       global_in_6 = 1;
 int       global_in_7 = 31;
 string    global_st_8 = "----------";
 string    global_st_9 = "Close Order Automatic: The Best 5:00 to 6:00 MT4";
 bool      global_bo_10 = true;
 int       global_in_11 = 3;
 double    global_do_12 = 1.0;
 double    global_do_13 = 0.8;
 double    global_do_14 = 0.7;
 double    global_do_15 = 51.0;
 int       global_in_16 = 12;

 void OnTick ()
 {
      // код доступен только после оплаты
   }
 string      local_st_1;
 int         local_in_2;
 int         local_in_3;
 int         local_in_4;
 int         local_in_5;
 int         local_in_6;
 double      local_do_7;
 int         local_in_8;
 double      local_do_9;
 int         local_in_10;
 double      local_do_11;

 int        tmp_in_2;
 int        tmp_in_5;
 int        tmp_in_6;
 int        tmp_in_7;
 int        tmp_in_8;
 int        tmp_in_9;
 double     tmp_do_10 = 0;
 double     tmp_do_11 = 0;
 int        tmp_in_12;
 int        tmp_in_16;
 int        tmp_in_17;
 int        tmp_in_18;
 int        tmp_in_19;
 int        tmp_in_20;
 int        tmp_in_21;
 double     tmp_do_22;
 double     tmp_do_23;
 int        tmp_in_24;
 int        tmp_in_28;
 int        tmp_in_29;
 int        tmp_in_30;
 int        tmp_in_31;
 int        tmp_in_33;
 int        tmp_in_37;
 int        tmp_in_38;
 int        tmp_in_39;
 int        tmp_in_40;
 int        tmp_in_41;
 int        tmp_in_42;
 double     tmp_do_43 = 0;
 double     tmp_do_44 = 0;
 int        tmp_in_45;
 int        tmp_in_48;
 int        tmp_in_49;
 int        tmp_in_50;
 int        tmp_in_51;
 int        tmp_in_52;
 int        tmp_in_53;
 double     tmp_do_54;
 double     tmp_do_55;
 int        tmp_in_56;
 int        tmp_in_60;
 int        tmp_in_61;
 int        tmp_in_62;
 int        tmp_in_63;
 int        tmp_in_65;
 int        tmp_in_71;
 int        tmp_in_72;
 int        tmp_in_73;
 int        tmp_in_74;
 int        tmp_in_76;
 int        tmp_in_80;
 int        tmp_in_82;
 int        tmp_in_83;
 int        tmp_in_84;
 int        tmp_in_86;
 int        tmp_in_90;
 int        tmp_in_92;
 int        tmp_in_93;
 int        tmp_in_94;
 int        tmp_in_95;
 int        tmp_in_96;
 double     tmp_do_97;
 double     tmp_do_98;
 int        tmp_in_99;
 int        tmp_in_102;
 int        tmp_in_103;
 int        tmp_in_104;
 int        tmp_in_105;
 int        tmp_in_107;
 int        tmp_in_111;
 int        tmp_in_113;
 int        tmp_in_114;
 int        tmp_in_115;
 int        tmp_in_116;
 int        tmp_in_117;
 double     tmp_do_118;
 double     tmp_do_119;
 int        tmp_in_120;
 int        tmp_in_123;
 int        tmp_in_124;
 int        tmp_in_125;
 int        tmp_in_126;
 int        tmp_in_128;
 int        tmp_in_132;
 int        tmp_in_134;
 int        tmp_in_135;
 int        tmp_in_136;
 int        tmp_in_137;
 int        tmp_in_138;
 int        tmp_in_139;
 int        tmp_in_140;
 int        tmp_in_141;
 double     tmp_do_142;
 double     tmp_do_143;
 double     tmp_do_145;
 double     tmp_do_146;
 int        tmp_in_149;
 double     tmp_do_150;
 double     tmp_do_151;
 int        tmp_in_152;
 double     tmp_do_153;
 double     tmp_do_154;
 int        tmp_in_155;
 int        tmp_in_161;
 double     tmp_do_162;
 double     tmp_do_163;
 double     tmp_do_165;
 double     tmp_do_166;
 int        tmp_in_169;
 double     tmp_do_170;
 double     tmp_do_171;
 int        tmp_in_172;
 double     tmp_do_173;
 double     tmp_do_174;
 int        tmp_in_175;
 int        tmp_in_181;
 int        tmp_in_182;
 int        tmp_in_183;
 int        tmp_in_184;
 int        tmp_in_186;
 int        tmp_in_187;
 int        tmp_in_188;
 int        tmp_in_189;
 int        tmp_in_191;
 int        tmp_in_195;
 int        tmp_in_197;
 int        tmp_in_198;
 int        tmp_in_199;
 int        tmp_in_200;
 int        tmp_in_201;
 int        tmp_in_202;
 int        tmp_in_203;
 int        tmp_in_205;
 int        tmp_in_209;
 int        tmp_in_211;
 int        tmp_in_212;
 int        tmp_in_213;
 int        tmp_in_214;
 int        tmp_in_215;
 int        tmp_in_216;
 int        tmp_in_217;
 int        tmp_in_219;
 int        tmp_in_223;
 int        tmp_in_225;
 int        tmp_in_226;
 int        tmp_in_227;
 int        tmp_in_228;
 int        tmp_in_229;
 int        tmp_in_230;
 int        tmp_in_231;
 int        tmp_in_233;
 int        tmp_in_237;
 int        tmp_in_239;
 int        tmp_in_240;
 int        tmp_in_241;
 int        tmp_in_243;
 int        tmp_in_244;
 int        tmp_in_245;
 int        tmp_in_246;
 int        tmp_in_248;
 int        tmp_in_252;
 int        tmp_in_254;
 int        tmp_in_255;
 int        tmp_in_256;
 int        tmp_in_258;
 int        tmp_in_259;
 int        tmp_in_260;
 int        tmp_in_261;
 int        tmp_in_263;
 int        tmp_in_267;
 int        tmp_in_269;
 int        tmp_in_270;
 int        tmp_in_271;
 int        tmp_in_272;
 int        tmp_in_273;
 int        tmp_in_274;
 int        tmp_in_275;
 int        tmp_in_277;
 int        tmp_in_279;
 int        tmp_in_280;
 int        tmp_in_281;
 int        tmp_in_282;
 int        tmp_in_283;
 int        tmp_in_284;
 int        tmp_in_285;
 int        tmp_in_287;
 int        tmp_in_289;
 int        tmp_in_290;
 int        tmp_in_291;
 int        tmp_in_292;
 int        tmp_in_293;
 int        tmp_in_294;
 int        tmp_in_295;
 int        tmp_in_297;
 int        tmp_in_299;
 int        tmp_in_300;
 int        tmp_in_301;
 int        tmp_in_302;
 int        tmp_in_303;
 int        tmp_in_304;
 int        tmp_in_305;
 int        tmp_in_307;
 int        tmp_in_309;
 int        tmp_in_310;
 int        tmp_in_311;
 int        tmp_in_312;
 int        tmp_in_313;
 int        tmp_in_314;
 int        tmp_in_315;
 int        tmp_in_317;
 int        tmp_in_319;
 int        tmp_in_320;
 int        tmp_in_321;
 int        tmp_in_322;
 int        tmp_in_323;
 int        tmp_in_324;
 int        tmp_in_325;
 int        tmp_in_327;
 int        tmp_in_329;
 int        tmp_in_330;
 int        tmp_in_331;
 int        tmp_in_332;
 int        tmp_in_333;
 int        tmp_in_334;
 int        tmp_in_335;
 int        tmp_in_337;
 int        tmp_in_339;
 int        tmp_in_340;
 int        tmp_in_341;
 int        tmp_in_342;
 int        tmp_in_343;
 int        tmp_in_344;
 int        tmp_in_345;
 int        tmp_in_347;
 int        tmp_in_351;
 int        tmp_in_353;
 int        tmp_in_354;
 int        tmp_in_355;
 int        tmp_in_357;
 int        tmp_in_358;
 int        tmp_in_359;
 int        tmp_in_360;
 int        tmp_in_362;
 int        tmp_in_366;
 int        tmp_in_368;
 int        tmp_in_369;
 int        tmp_in_370;
 int        tmp_in_371;
 int        tmp_in_372;
 int        tmp_in_373;
 int        tmp_in_374;
 int        tmp_in_376;
 int        tmp_in_378;
 int        tmp_in_379;
 int        tmp_in_380;
 int        tmp_in_381;
 int        tmp_in_382;
 int        tmp_in_383;
 int        tmp_in_384;
 int        tmp_in_386;
 int        tmp_in_388;
 int        tmp_in_389;
 int        tmp_in_390;
 int        tmp_in_392;
 int        tmp_in_393;
 int        tmp_in_394;
 int        tmp_in_395;
 int        tmp_in_397;
 int        tmp_in_401;
 int        tmp_in_403;
 int        tmp_in_404;
 int        tmp_in_405;
 int        tmp_in_406;
 int        tmp_in_407;
 int        tmp_in_408;
 int        tmp_in_409;
 int        tmp_in_411;
 int        tmp_in_413;
 int        tmp_in_414;
 int        tmp_in_415;
 int        tmp_in_417;
 int        tmp_in_418;
 int        tmp_in_419;
 int        tmp_in_420;
 int        tmp_in_422;
 int        tmp_in_426;
 int        tmp_in_428;
 int        tmp_in_429;
 int        tmp_in_430;
 int        tmp_in_431;
 int        tmp_in_432;
 int        tmp_in_433;
 int        tmp_in_434;
 int        tmp_in_436;
 int        tmp_in_438;
 int        tmp_in_439;
 int        tmp_in_440;
 int        tmp_in_441;
 int        tmp_in_442;
 int        tmp_in_443;
 int        tmp_in_444;
 int        tmp_in_446;
 int        tmp_in_448;
 int        tmp_in_449;
 int        tmp_in_450;
 int        tmp_in_451;
 int        tmp_in_452;
 int        tmp_in_453;
 int        tmp_in_454;
 int        tmp_in_456;
 int        tmp_in_458;
 int        tmp_in_459;
 int        tmp_in_460;
 int        tmp_in_461;
 int        tmp_in_462;
 int        tmp_in_463;
 int        tmp_in_464;
 int        tmp_in_466;
 int        tmp_in_468;
 int        tmp_in_469;
 int        tmp_in_470;
 int        tmp_in_471;
 int        tmp_in_472;
 int        tmp_in_473;
 int        tmp_in_474;
 int        tmp_in_476;
 int        tmp_in_478;
 int        tmp_in_479;
 int        tmp_in_480;
 int        tmp_in_481;
 int        tmp_in_482;
 int        tmp_in_483;
 int        tmp_in_484;
 int        tmp_in_486;
 int        tmp_in_488;
 int        tmp_in_489;
 int        tmp_in_490;
 int        tmp_in_491;
 int        tmp_in_492;
 int        tmp_in_493;
 int        tmp_in_494;
 int        tmp_in_496;
 int        tmp_in_498;
 int        tmp_in_499;
 int        tmp_in_500;
 int        tmp_in_501;
 int        tmp_in_502;
 int        tmp_in_503;
 int        tmp_in_504;
 int        tmp_in_506;
 int        tmp_in_508;
 int        tmp_in_509;
 int        tmp_in_510;
 int        tmp_in_511;
 int        tmp_in_512;
 int        tmp_in_513;
 int        tmp_in_514;
 int        tmp_in_516;
 int        tmp_in_518;
 int        tmp_in_519;
 int        tmp_in_520;
 int        tmp_in_521;
 int        tmp_in_522;
 int        tmp_in_523;
 int        tmp_in_524;
 int        tmp_in_526;
 int        tmp_in_528;
 int        tmp_in_529;
 int        tmp_in_530;
 int        tmp_in_531;
 int        tmp_in_532;
 int        tmp_in_533;
 int        tmp_in_534;
 int        tmp_in_536;
 int        tmp_in_538;
 int        tmp_in_539;
 int        tmp_in_540;
 int        tmp_in_541;
 int        tmp_in_542;
 int        tmp_in_543;
 int        tmp_in_544;
 int        tmp_in_546;
 int        tmp_in_548;
 int        tmp_in_549;
 int        tmp_in_550;
 int        tmp_in_551;
 int        tmp_in_552;
 int        tmp_in_553;
 int        tmp_in_554;
 int        tmp_in_556;
 int        tmp_in_558;
 int        tmp_in_559;
 int        tmp_in_560;
 int        tmp_in_561;
 int        tmp_in_562;
 int        tmp_in_563;
 int        tmp_in_564;
 int        tmp_in_566;
 int        tmp_in_567;
 int        tmp_in_568;
 int        tmp_in_569;
 int        tmp_in_570;
 int        tmp_in_571;
 int        tmp_in_572;
 int        tmp_in_573;
 int        tmp_in_575;
 int        tmp_in_577;
 int        tmp_in_578;
 int        tmp_in_579;
 int        tmp_in_581;
 int        tmp_in_582;
 int        tmp_in_583;
 int        tmp_in_584;
 int        tmp_in_586;
 int        tmp_in_590;
 int        tmp_in_592;
 int        tmp_in_593;
 int        tmp_in_594;
 int        tmp_in_596;
 int        tmp_in_597;
 int        tmp_in_598;
 int        tmp_in_599;
 int        tmp_in_601;
 int        tmp_in_605;
 int        tmp_in_607;
 int        tmp_in_608;
 int        tmp_in_609;
 int        tmp_in_611;
 int        tmp_in_612;
 int        tmp_in_613;
 int        tmp_in_614;
 int        tmp_in_616;
 int        tmp_in_620;
 int        tmp_in_622;
 int        tmp_in_623;
 int        tmp_in_624;
 int        tmp_in_625;
 int        tmp_in_626;
 int        tmp_in_627;
 int        tmp_in_628;
 int        tmp_in_630;
 int        tmp_in_634;
 int        tmp_in_636;
 int        tmp_in_637;
 int        tmp_in_638;
 int        tmp_in_640;
 int        tmp_in_641;
 int        tmp_in_642;
 int        tmp_in_643;
 int        tmp_in_645;
 int        tmp_in_649;
 int        tmp_in_651;
 int        tmp_in_652;
 int        tmp_in_653;
 int        tmp_in_655;
 int        tmp_in_656;
 int        tmp_in_657;
 int        tmp_in_658;
 int        tmp_in_660;
 int        tmp_in_664;
 int        tmp_in_666;
 int        tmp_in_667;
 int        tmp_in_668;
 int        tmp_in_670;
 int        tmp_in_671;
 int        tmp_in_672;
 int        tmp_in_673;
 int        tmp_in_675;
 int        tmp_in_679;
 int        tmp_in_681;
 int        tmp_in_682;
 int        tmp_in_683;
 int        tmp_in_684;
 int        tmp_in_685;
 int        tmp_in_686;
 int        tmp_in_687;
 int        tmp_in_689;
 int        tmp_in_690;
 int        tmp_in_691;
 int        tmp_in_692;
 int        tmp_in_693;
 int        tmp_in_694;
 int        tmp_in_695;
 int        tmp_in_696;
 int        tmp_in_698;
 int        tmp_in_700;
 int        tmp_in_701;
 int        tmp_in_702;
 int        tmp_in_703;
 int        tmp_in_704;
 int        tmp_in_705;
 int        tmp_in_706;
 int        tmp_in_708;
 int        tmp_in_710;
 int        tmp_in_711;
 int        tmp_in_712;
 int        tmp_in_713;
 int        tmp_in_714;
 int        tmp_in_715;
 int        tmp_in_716;
 int        tmp_in_718;
 int        tmp_in_720;
 int        tmp_in_721;
 int        tmp_in_722;
 int        tmp_in_723;
 int        tmp_in_724;
 int        tmp_in_725;
 int        tmp_in_726;
 int        tmp_in_728;
 int        tmp_in_730;
 int        tmp_in_731;
 int        tmp_in_732;
 int        tmp_in_734;
 int        tmp_in_735;
 int        tmp_in_736;
 int        tmp_in_737;
 int        tmp_in_739;
 int        tmp_in_743;
 int        tmp_in_745;
 int        tmp_in_746;
 int        tmp_in_747;
 int        tmp_in_749;
 int        tmp_in_750;
 int        tmp_in_751;
 int        tmp_in_752;
 int        tmp_in_754;
 int        tmp_in_758;
 int        tmp_in_760;
 int        tmp_in_761;
 int        tmp_in_762;
 int        tmp_in_764;
 int        tmp_in_765;
 int        tmp_in_766;
 int        tmp_in_767;
 int        tmp_in_769;
 int        tmp_in_773;
 int        tmp_in_775;
 int        tmp_in_776;
 int        tmp_in_777;
 int        tmp_in_779;
 int        tmp_in_780;
 int        tmp_in_781;
 int        tmp_in_782;
 int        tmp_in_784;
 int        tmp_in_788;
 int        tmp_in_790;
 int        tmp_in_791;
 int        tmp_in_792;
 int        tmp_in_794;
 int        tmp_in_795;
 int        tmp_in_796;
 int        tmp_in_797;
 int        tmp_in_799;
 int        tmp_in_803;
 int        tmp_in_805;
 int        tmp_in_806;
 int        tmp_in_807;
 int        tmp_in_809;
 int        tmp_in_810;
 int        tmp_in_811;
 int        tmp_in_812;
 int        tmp_in_814;
 int        tmp_in_818;
 int        tmp_in_820;
 int        tmp_in_821;
 int        tmp_in_822;
 int        tmp_in_824;
 int        tmp_in_825;
 int        tmp_in_826;
 int        tmp_in_827;
 int        tmp_in_829;
 int        tmp_in_833;
 int        tmp_in_835;
 int        tmp_in_836;
 int        tmp_in_837;
 int        tmp_in_839;
 int        tmp_in_840;
 int        tmp_in_841;
 int        tmp_in_842;
 int        tmp_in_844;
 int        tmp_in_848;
 int        tmp_in_850;
 int        tmp_in_851;
 int        tmp_in_852;
 int        tmp_in_854;
 int        tmp_in_855;
 int        tmp_in_856;
 int        tmp_in_857;
 int        tmp_in_859;
 int        tmp_in_863;
 int        tmp_in_865;
 int        tmp_in_866;
 int        tmp_in_867;
 int        tmp_in_869;
 int        tmp_in_870;
 int        tmp_in_871;
 int        tmp_in_872;
 int        tmp_in_874;
 int        tmp_in_878;
 int        tmp_in_880;
 int        tmp_in_881;
 int        tmp_in_882;
 int        tmp_in_883;
 int        tmp_in_884;
 int        tmp_in_885;
 int        tmp_in_886;
 int        tmp_in_888;
 int        tmp_in_892;
 int        tmp_in_894;
 int        tmp_in_895;
 int        tmp_in_896;
 int        tmp_in_898;
 int        tmp_in_899;
 int        tmp_in_900;
 int        tmp_in_901;
 int        tmp_in_903;
 int        tmp_in_907;
 int        tmp_in_909;
 int        tmp_in_910;
 int        tmp_in_911;
 int        tmp_in_913;
 int        tmp_in_914;
 int        tmp_in_915;
 int        tmp_in_916;
 int        tmp_in_918;
 int        tmp_in_922;
 int        tmp_in_924;
 int        tmp_in_925;
 int        tmp_in_926;
 int        tmp_in_928;
 int        tmp_in_929;
 int        tmp_in_930;
 int        tmp_in_931;
 int        tmp_in_933;
 int        tmp_in_937;
 int        tmp_in_939;
 int        tmp_in_940;
 int        tmp_in_941;
 int        tmp_in_942;
 int        tmp_in_943;
 int        tmp_in_944;
 int        tmp_in_945;
 int        tmp_in_947;
 int        tmp_in_949;
 int        tmp_in_950;
 int        tmp_in_951;
 int        tmp_in_952;
 int        tmp_in_953;
 int        tmp_in_954;
 int        tmp_in_955;
 int        tmp_in_957;
 int        tmp_in_959;
 int        tmp_in_960;
 int        tmp_in_961;
 int        tmp_in_963;
 int        tmp_in_964;
 int        tmp_in_965;
 int        tmp_in_966;
 int        tmp_in_968;
 int        tmp_in_972;
 int        tmp_in_974;
 int        tmp_in_975;
 int        tmp_in_976;
 int        tmp_in_978;
 int        tmp_in_979;
 int        tmp_in_980;
 int        tmp_in_981;
 int        tmp_in_983;
 int        tmp_in_987;
 int        tmp_in_989;
 int        tmp_in_990;
 int        tmp_in_991;
 int        tmp_in_992;
 int        tmp_in_993;
 int        tmp_in_994;
 int        tmp_in_995;
 int        tmp_in_997;
 int        tmp_in_1001;
 int        tmp_in_1003;
 int        tmp_in_1004;
 int        tmp_in_1005;
 int        tmp_in_1006;
 int        tmp_in_1007;
 int        tmp_in_1008;
 int        tmp_in_1009;
 int        tmp_in_1011;
 int        tmp_in_1015;
 int        tmp_in_1017;
 int        tmp_in_1018;
 int        tmp_in_1019;
 int        tmp_in_1021;
 int        tmp_in_1022;
 int        tmp_in_1023;
 int        tmp_in_1024;
 int        tmp_in_1026;
 int        tmp_in_1030;
 int        tmp_in_1032;
 int        tmp_in_1033;
 int        tmp_in_1034;
 int        tmp_in_1036;
 int        tmp_in_1037;
 int        tmp_in_1038;
 int        tmp_in_1039;
 int        tmp_in_1041;
 int        tmp_in_1045;
 int        tmp_in_1047;
 int        tmp_in_1048;
 int        tmp_in_1049;
 int        tmp_in_1051;
 int        tmp_in_1052;
 int        tmp_in_1053;
 int        tmp_in_1054;
 int        tmp_in_1056;
 int        tmp_in_1060;
 int        tmp_in_1062;
 int        tmp_in_1063;
 int        tmp_in_1064;
 int        tmp_in_1065;
 int        tmp_in_1066;
 int        tmp_in_1067;
 int        tmp_in_1068;
 int        tmp_in_1070;
 int        tmp_in_1072;
 int        tmp_in_1073;
 int        tmp_in_1074;
 int        tmp_in_1076;
 int        tmp_in_1077;
 int        tmp_in_1078;
 int        tmp_in_1079;
 int        tmp_in_1081;
 int        tmp_in_1085;
 int        tmp_in_1087;
 int        tmp_in_1088;
 int        tmp_in_1089;
 int        tmp_in_1091;
 int        tmp_in_1092;
 int        tmp_in_1093;
 int        tmp_in_1094;
 int        tmp_in_1096;
 int        tmp_in_1100;
 int        tmp_in_1102;
 int        tmp_in_1103;
 int        tmp_in_1104;
 int        tmp_in_1105;
 int        tmp_in_1106;
 int        tmp_in_1107;
 int        tmp_in_1108;
 int        tmp_in_1110;
 int        tmp_in_1112;
 int        tmp_in_1113;
 int        tmp_in_1114;
 int        tmp_in_1116;
 int        tmp_in_1117;
 int        tmp_in_1118;
 int        tmp_in_1119;
 int        tmp_in_1121;
 int        tmp_in_1125;
 int        tmp_in_1127;
 int        tmp_in_1128;
 int        tmp_in_1129;
 int        tmp_in_1131;
 int        tmp_in_1132;
 int        tmp_in_1133;
 int        tmp_in_1134;
 int        tmp_in_1136;
 int        tmp_in_1140;
 int        tmp_in_1142;
 int        tmp_in_1143;
 int        tmp_in_1144;
 int        tmp_in_1146;
 int        tmp_in_1147;
 int        tmp_in_1148;
 int        tmp_in_1149;
 int        tmp_in_1151;
 int        tmp_in_1155;
 int        tmp_in_1157;
 int        tmp_in_1158;
 int        tmp_in_1159;
 int        tmp_in_1161;
 int        tmp_in_1162;
 int        tmp_in_1163;
 int        tmp_in_1164;
 int        tmp_in_1166;
 int        tmp_in_1170;
 int        tmp_in_1172;
 int        tmp_in_1173;
 int        tmp_in_1174;
 int        tmp_in_1176;
 int        tmp_in_1177;
 int        tmp_in_1178;
 int        tmp_in_1179;
 int        tmp_in_1181;
 int        tmp_in_1185;
 int        tmp_in_1187;
 int        tmp_in_1188;
 int        tmp_in_1189;
 int        tmp_in_1191;
 int        tmp_in_1192;
 int        tmp_in_1193;
 int        tmp_in_1194;
 int        tmp_in_1196;
 int        tmp_in_1200;
 int        tmp_in_1202;
 int        tmp_in_1203;
 int        tmp_in_1204;
 int        tmp_in_1206;
 int        tmp_in_1207;
 int        tmp_in_1208;
 int        tmp_in_1209;
 int        tmp_in_1211;
 int        tmp_in_1215;
 int        tmp_in_1217;
 int        tmp_in_1218;
 int        tmp_in_1219;
 int        tmp_in_1221;
 int        tmp_in_1222;
 int        tmp_in_1223;
 int        tmp_in_1224;
 int        tmp_in_1226;
 int        tmp_in_1230;
 int        tmp_in_1232;
 int        tmp_in_1233;
 int        tmp_in_1234;
 int        tmp_in_1235;
 int        tmp_in_1236;
 int        tmp_in_1237;
 int        tmp_in_1238;
 int        tmp_in_1240;
 int        tmp_in_1242;
 int        tmp_in_1243;
 int        tmp_in_1244;
 int        tmp_in_1245;
 int        tmp_in_1246;
 int        tmp_in_1247;
 int        tmp_in_1248;
 int        tmp_in_1250;
 int        tmp_in_1252;
 int        tmp_in_1253;
 int        tmp_in_1254;
 int        tmp_in_1255;
 int        tmp_in_1256;
 int        tmp_in_1257;
 int        tmp_in_1258;
 int        tmp_in_1260;
 int        tmp_in_1262;
 int        tmp_in_1263;
 int        tmp_in_1264;
 int        tmp_in_1266;
 int        tmp_in_1267;
 int        tmp_in_1268;
 int        tmp_in_1269;
 int        tmp_in_1271;
 int        tmp_in_1275;
 int        tmp_in_1277;
 int        tmp_in_1278;
 int        tmp_in_1279;
 int        tmp_in_1280;
 int        tmp_in_1281;
 int        tmp_in_1282;
 int        tmp_in_1283;
 int        tmp_in_1285;
 int        tmp_in_1289;
 int        tmp_in_1291;
 int        tmp_in_1292;
 int        tmp_in_1293;
 int        tmp_in_1294;
 int        tmp_in_1295;
 int        tmp_in_1296;
 int        tmp_in_1297;
 int        tmp_in_1299;
 int        tmp_in_1303;
 int        tmp_in_1305;
 int        tmp_in_1306;
 int        tmp_in_1307;
 int        tmp_in_1308;
 int        tmp_in_1309;
 int        tmp_in_1310;
 int        tmp_in_1311;
 int        tmp_in_1312;
 double     tmp_do_1313;
 double     tmp_do_1314;
 double     tmp_do_1316;
 double     tmp_do_1317;
 int        tmp_in_1320;
 double     tmp_do_1321;
 double     tmp_do_1322;
 int        tmp_in_1323;
 double     tmp_do_1324;
 double     tmp_do_1325;
 int        tmp_in_1326;
 int        tmp_in_1332;
 double     tmp_do_1333;
 double     tmp_do_1334;
 double     tmp_do_1336;
 double     tmp_do_1337;
 int        tmp_in_1340;
 double     tmp_do_1341;
 double     tmp_do_1342;
 int        tmp_in_1343;
 double     tmp_do_1344;
 double     tmp_do_1345;
 int        tmp_in_1346;
 int        tmp_in_1352;
 int        tmp_in_1353;
 int        tmp_in_1354;
 int        tmp_in_1355;
 int        tmp_in_1356;
 int        tmp_in_1357;
 int        tmp_in_1358;
 int        tmp_in_1359;
 int        tmp_in_1361;
 int        tmp_in_1365;
 int        tmp_in_1367;
 int        tmp_in_1368;
 int        tmp_in_1369;
 int        tmp_in_1371;
 int        tmp_in_1372;
 int        tmp_in_1373;
 int        tmp_in_1374;
 int        tmp_in_1376;
 int        tmp_in_1380;
 int        tmp_in_1382;
 int        tmp_in_1383;
 int        tmp_in_1384;
 int        tmp_in_1386;
 int        tmp_in_1387;
 int        tmp_in_1388;
 int        tmp_in_1389;
 int        tmp_in_1391;
 int        tmp_in_1395;
 int        tmp_in_1397;
 int        tmp_in_1398;
 int        tmp_in_1399;
 int        tmp_in_1401;
 int        tmp_in_1402;
 int        tmp_in_1403;
 int        tmp_in_1404;
 int        tmp_in_1406;
 int        tmp_in_1410;
 int        tmp_in_1412;
 int        tmp_in_1413;
 int        tmp_in_1414;
 int        tmp_in_1415;
 int        tmp_in_1416;
 int        tmp_in_1417;
 int        tmp_in_1418;
 int        tmp_in_1420;
 int        tmp_in_1422;
 int        tmp_in_1423;
 int        tmp_in_1424;
 int        tmp_in_1425;
 int        tmp_in_1426;
 int        tmp_in_1427;
 int        tmp_in_1428;
 int        tmp_in_1430;
 int        tmp_in_1432;
 int        tmp_in_1433;
 int        tmp_in_1434;
 int        tmp_in_1435;
 int        tmp_in_1436;
 int        tmp_in_1437;
 int        tmp_in_1438;
 int        tmp_in_1440;
 int        tmp_in_1442;
 int        tmp_in_1443;
 int        tmp_in_1444;
 int        tmp_in_1445;
 int        tmp_in_1446;
 int        tmp_in_1447;
 int        tmp_in_1448;
 int        tmp_in_1450;
 int        tmp_in_1451;
 int        tmp_in_1452;
 int        tmp_in_1453;
 int        tmp_in_1454;
 int        tmp_in_1455;
 int        tmp_in_1456;
 int        tmp_in_1457;
 int        tmp_in_1459;
 int        tmp_in_1461;
 int        tmp_in_1462;
 int        tmp_in_1463;
 int        tmp_in_1464;
 int        tmp_in_1465;
 int        tmp_in_1466;
 int        tmp_in_1467;
 int        tmp_in_1469;
 int        tmp_in_1471;
 int        tmp_in_1472;
 int        tmp_in_1473;
 int        tmp_in_1474;
 int        tmp_in_1475;
 int        tmp_in_1476;
 int        tmp_in_1477;
 int        tmp_in_1479;
 int        tmp_in_1481;
 int        tmp_in_1482;
 int        tmp_in_1483;
 int        tmp_in_1485;
 int        tmp_in_1486;
 int        tmp_in_1487;
 int        tmp_in_1488;
 int        tmp_in_1490;
 int        tmp_in_1494;
 int        tmp_in_1496;
 int        tmp_in_1497;
 int        tmp_in_1498;
 int        tmp_in_1500;
 int        tmp_in_1501;
 int        tmp_in_1502;
 int        tmp_in_1503;
 int        tmp_in_1505;
 int        tmp_in_1509;
 int        tmp_in_1511;
 int        tmp_in_1512;
 int        tmp_in_1513;
 int        tmp_in_1514;
 int        tmp_in_1515;
 int        tmp_in_1516;
 int        tmp_in_1517;
 int        tmp_in_1519;
 int        tmp_in_1521;
 int        tmp_in_1522;
 int        tmp_in_1523;
 int        tmp_in_1524;
 int        tmp_in_1525;
 int        tmp_in_1526;
 int        tmp_in_1527;
 int        tmp_in_1529;
 int        tmp_in_1531;
 int        tmp_in_1532;
 int        tmp_in_1533;
 int        tmp_in_1534;
 int        tmp_in_1535;
 int        tmp_in_1536;
 int        tmp_in_1537;
 int        tmp_in_1539;
 int        tmp_in_1541;
 int        tmp_in_1542;
 int        tmp_in_1543;
 int        tmp_in_1544;
 int        tmp_in_1545;
 int        tmp_in_1546;
 int        tmp_in_1547;
 int        tmp_in_1549;
 int        tmp_in_1550;
 int        tmp_in_1551;
 int        tmp_in_1552;
 int        tmp_in_1554;
 int        tmp_in_1555;
 int        tmp_in_1556;
 int        tmp_in_1557;
 int        tmp_in_1559;
 int        tmp_in_1563;
 int        tmp_in_1565;
 int        tmp_in_1566;
 int        tmp_in_1567;
 int        tmp_in_1569;
 int        tmp_in_1570;
 int        tmp_in_1571;
 int        tmp_in_1572;
 int        tmp_in_1574;
 int        tmp_in_1578;
 int        tmp_in_1580;
 int        tmp_in_1581;
 int        tmp_in_1582;
 int        tmp_in_1584;
 int        tmp_in_1585;
 int        tmp_in_1586;
 int        tmp_in_1587;
 int        tmp_in_1589;
 int        tmp_in_1593;
 int        tmp_in_1595;
 int        tmp_in_1596;
 int        tmp_in_1597;
 int        tmp_in_1599;
 int        tmp_in_1600;
 int        tmp_in_1601;
 int        tmp_in_1602;
 int        tmp_in_1604;
 int        tmp_in_1608;
 int        tmp_in_1610;
 int        tmp_in_1611;
 int        tmp_in_1612;
 int        tmp_in_1614;
 int        tmp_in_1615;
 int        tmp_in_1616;
 int        tmp_in_1617;
 int        tmp_in_1619;
 int        tmp_in_1623;
 int        tmp_in_1625;
 int        tmp_in_1626;
 int        tmp_in_1627;
 int        tmp_in_1629;
 int        tmp_in_1630;
 int        tmp_in_1631;
 int        tmp_in_1632;
 int        tmp_in_1634;
 int        tmp_in_1638;
 int        tmp_in_1640;
 int        tmp_in_1641;
 int        tmp_in_1642;
 int        tmp_in_1644;
 int        tmp_in_1645;
 int        tmp_in_1646;
 int        tmp_in_1647;
 int        tmp_in_1649;
 int        tmp_in_1653;
 int        tmp_in_1655;
 int        tmp_in_1656;
 int        tmp_in_1657;
 int        tmp_in_1659;
 int        tmp_in_1660;
 int        tmp_in_1661;
 int        tmp_in_1662;
 int        tmp_in_1664;
 int        tmp_in_1668;
 int        tmp_in_1670;
 int        tmp_in_1671;
 int        tmp_in_1672;
 int        tmp_in_1674;
 int        tmp_in_1675;
 int        tmp_in_1676;
 int        tmp_in_1677;
 int        tmp_in_1679;
 int        tmp_in_1683;
 int        tmp_in_1685;
 int        tmp_in_1686;
 int        tmp_in_1687;
 int        tmp_in_1689;
 int        tmp_in_1690;
 int        tmp_in_1691;
 int        tmp_in_1692;
 int        tmp_in_1694;
 int        tmp_in_1698;
 int        tmp_in_1700;
 int        tmp_in_1701;
 int        tmp_in_1702;
 int        tmp_in_1704;
 int        tmp_in_1705;
 int        tmp_in_1706;
 int        tmp_in_1707;
 int        tmp_in_1709;
 int        tmp_in_1713;
 int        tmp_in_1715;
 int        tmp_in_1716;
 int        tmp_in_1717;
 int        tmp_in_1719;
 int        tmp_in_1720;
 int        tmp_in_1721;
 int        tmp_in_1722;
 int        tmp_in_1724;
 int        tmp_in_1728;
 int        tmp_in_1730;
 int        tmp_in_1731;
 int        tmp_in_1732;
 int        tmp_in_1734;
 int        tmp_in_1735;
 int        tmp_in_1736;
 int        tmp_in_1737;
 int        tmp_in_1739;
 int        tmp_in_1743;
 int        tmp_in_1745;
 int        tmp_in_1746;
 int        tmp_in_1747;
 int        tmp_in_1749;
 int        tmp_in_1750;
 int        tmp_in_1751;
 int        tmp_in_1752;
 int        tmp_in_1754;
 int        tmp_in_1758;
 int        tmp_in_1760;
 int        tmp_in_1761;
 int        tmp_in_1762;
 int        tmp_in_1764;
 int        tmp_in_1765;
 int        tmp_in_1766;
 int        tmp_in_1767;
 int        tmp_in_1769;
 int        tmp_in_1773;
 int        tmp_in_1775;
 int        tmp_in_1776;
 int        tmp_in_1777;
 int        tmp_in_1778;
 int        tmp_in_1779;
 int        tmp_in_1780;
 int        tmp_in_1781;
 int        tmp_in_1783;
 int        tmp_in_1787;
 int        tmp_in_1789;
 int        tmp_in_1790;
 int        tmp_in_1791;
 int        tmp_in_1792;
 int        tmp_in_1793;
 int        tmp_in_1794;
 int        tmp_in_1795;
 int        tmp_in_1797;
 int        tmp_in_1799;
 int        tmp_in_1800;
 int        tmp_in_1801;
 int        tmp_in_1802;
 int        tmp_in_1803;
 int        tmp_in_1804;
 int        tmp_in_1805;
 int        tmp_in_1807;
 int        tmp_in_1809;
 int        tmp_in_1810;
 int        tmp_in_1811;
 int        tmp_in_1812;
 int        tmp_in_1813;
 int        tmp_in_1814;
 int        tmp_in_1815;
 int        tmp_in_1817;
 int        tmp_in_1819;
 int        tmp_in_1820;
 int        tmp_in_1821;
 int        tmp_in_1822;
 int        tmp_in_1823;
 int        tmp_in_1824;
 int        tmp_in_1825;
 int        tmp_in_1827;
 int        tmp_in_1829;
 int        tmp_in_1830;
 int        tmp_in_1831;
 int        tmp_in_1832;
 int        tmp_in_1833;
 int        tmp_in_1834;
 int        tmp_in_1835;
 int        tmp_in_1837;
 int        tmp_in_1838;
 int        tmp_in_1839;
 int        tmp_in_1840;
 int        tmp_in_1842;
 int        tmp_in_1843;
 int        tmp_in_1844;
 int        tmp_in_1845;
 int        tmp_in_1847;
 int        tmp_in_1851;
 int        tmp_in_1853;
 int        tmp_in_1854;
 int        tmp_in_1855;
 int        tmp_in_1857;
 int        tmp_in_1858;
 int        tmp_in_1859;
 int        tmp_in_1860;
 int        tmp_in_1862;
 int        tmp_in_1866;
 int        tmp_in_1868;
 int        tmp_in_1869;
 int        tmp_in_1870;
 int        tmp_in_1872;
 int        tmp_in_1873;
 int        tmp_in_1874;
 int        tmp_in_1875;
 int        tmp_in_1877;
 int        tmp_in_1881;
 int        tmp_in_1883;
 int        tmp_in_1884;
 int        tmp_in_1885;
 int        tmp_in_1887;
 int        tmp_in_1888;
 int        tmp_in_1889;
 int        tmp_in_1890;
 int        tmp_in_1892;
 int        tmp_in_1896;
 int        tmp_in_1898;
 int        tmp_in_1899;
 int        tmp_in_1900;
 int        tmp_in_1902;
 int        tmp_in_1903;
 int        tmp_in_1904;
 int        tmp_in_1905;
 int        tmp_in_1907;
 int        tmp_in_1911;
 int        tmp_in_1913;
 int        tmp_in_1914;
 int        tmp_in_1915;
 int        tmp_in_1917;
 int        tmp_in_1918;
 int        tmp_in_1919;
 int        tmp_in_1920;
 int        tmp_in_1922;
 int        tmp_in_1926;
 int        tmp_in_1928;
 int        tmp_in_1929;
 int        tmp_in_1930;
 int        tmp_in_1931;
 int        tmp_in_1932;
 int        tmp_in_1933;
 int        tmp_in_1934;
 int        tmp_in_1936;
 int        tmp_in_1938;
 int        tmp_in_1939;
 int        tmp_in_1940;
 int        tmp_in_1941;
 int        tmp_in_1942;
 int        tmp_in_1943;
 int        tmp_in_1944;
 int        tmp_in_1946;
 int        tmp_in_1948;
 int        tmp_in_1949;
 int        tmp_in_1950;
 int        tmp_in_1951;
 int        tmp_in_1952;
 int        tmp_in_1953;
 int        tmp_in_1954;
 int        tmp_in_1956;
 int        tmp_in_1958;
 int        tmp_in_1959;
 int        tmp_in_1960;
 int        tmp_in_1961;
 int        tmp_in_1962;
 int        tmp_in_1963;
 int        tmp_in_1964;
 int        tmp_in_1966;
 int        tmp_in_1970;
 int        tmp_in_1972;
 int        tmp_in_1973;
 int        tmp_in_1974;
 int        tmp_in_1976;
 int        tmp_in_1977;
 int        tmp_in_1978;
 int        tmp_in_1979;
 int        tmp_in_1981;
 int        tmp_in_1985;
 int        tmp_in_1987;
 int        tmp_in_1988;
 int        tmp_in_1989;
 int        tmp_in_1990;
 int        tmp_in_1991;
 int        tmp_in_1992;
 int        tmp_in_1993;
 int        tmp_in_1995;
 int        tmp_in_1997;
 int        tmp_in_1998;
 int        tmp_in_1999;
 int        tmp_in_2000;
 int        tmp_in_2001;
 int        tmp_in_2002;
 int        tmp_in_2003;
 int        tmp_in_2005;
 int        tmp_in_2007;
 int        tmp_in_2008;
 int        tmp_in_2009;
 int        tmp_in_2010;
 int        tmp_in_2011;
 int        tmp_in_2012;
 int        tmp_in_2013;
 int        tmp_in_2015;
 int        tmp_in_2016;
 int        tmp_in_2017;

 int        tmp_in_2019;
 int        tmp_in_2020;
 int        tmp_in_2021;
 int        tmp_in_2022;
 int        tmp_in_2024;
 int        tmp_in_2026;
 int        tmp_in_2027;
 int        tmp_in_2028;
 int        tmp_in_2029;
 int        tmp_in_2030;
 int        tmp_in_2031;
 int        tmp_in_2032;
 int        tmp_in_2034;
 int        tmp_in_2036;
 int        tmp_in_2037;
 int        tmp_in_2038;
 int        tmp_in_2039;
 int        tmp_in_2040;
 int        tmp_in_2041;
 int        tmp_in_2042;
 int        tmp_in_2044;
 int        tmp_in_2046;
 int        tmp_in_2047;
 int        tmp_in_2048;
 int        tmp_in_2050;
 int        tmp_in_2051;
 int        tmp_in_2052;
 int        tmp_in_2053;
 int        tmp_in_2055;
 int        tmp_in_2059;
 int        tmp_in_2061;
 int        tmp_in_2062;
 int        tmp_in_2063;
 int        tmp_in_2065;
 int        tmp_in_2066;
 int        tmp_in_2067;
 int        tmp_in_2068;
 int        tmp_in_2070;
 int        tmp_in_2074;
 int        tmp_in_2076;
 int        tmp_in_2077;
 int        tmp_in_2078;
 int        tmp_in_2080;
 int        tmp_in_2081;
 int        tmp_in_2082;
 int        tmp_in_2083;
 int        tmp_in_2085;
 int        tmp_in_2089;
 int        tmp_in_2091;
 int        tmp_in_2092;
 int        tmp_in_2093;
 int        tmp_in_2095;
 int        tmp_in_2096;
 int        tmp_in_2097;
 int        tmp_in_2098;
 int        tmp_in_2100;
 int        tmp_in_2104;
 int        tmp_in_2106;
 int        tmp_in_2107;
 int        tmp_in_2108;
 int        tmp_in_2110;
 int        tmp_in_2111;
 int        tmp_in_2112;
 int        tmp_in_2113;
 int        tmp_in_2115;
 int        tmp_in_2119;
 int        tmp_in_2121;
 int        tmp_in_2122;
 int        tmp_in_2123;
 int        tmp_in_2124;
 int        tmp_in_2125;
 int        tmp_in_2126;
 int        tmp_in_2127;
 int        tmp_in_2129;
 int        tmp_in_2131;
 int        tmp_in_2132;
 int        tmp_in_2133;
 int        tmp_in_2134;
 int        tmp_in_2135;
 int        tmp_in_2136;
 int        tmp_in_2137;
 int        tmp_in_2139;
 int        tmp_in_2140;
 int        tmp_in_2141;
 int        tmp_in_2142;
 int        tmp_in_2143;
 int        tmp_in_2144;
 int        tmp_in_2145;
 int        tmp_in_2146;
 int        tmp_in_2148;
 int        tmp_in_2150;
 int        tmp_in_2151;
 int        tmp_in_2152;
 int        tmp_in_2153;
 int        tmp_in_2154;
 int        tmp_in_2155;
 int        tmp_in_2156;
 int        tmp_in_2158;
 int        tmp_in_2160;
 int        tmp_in_2161;
 int        tmp_in_2162;
 int        tmp_in_2163;
 int        tmp_in_2164;
 int        tmp_in_2165;
 int        tmp_in_2166;
 int        tmp_in_2168;
 int        tmp_in_2172;
 int        tmp_in_2174;
 int        tmp_in_2175;
 int        tmp_in_2176;
 int        tmp_in_2178;
 int        tmp_in_2179;
 int        tmp_in_2180;
 int        tmp_in_2181;
 int        tmp_in_2183;
 int        tmp_in_2187;
 int        tmp_in_2189;
 int        tmp_in_2190;
 int        tmp_in_2191;
 int        tmp_in_2193;
 int        tmp_in_2194;
 int        tmp_in_2195;
 int        tmp_in_2196;
 int        tmp_in_2198;
 int        tmp_in_2202;
 int        tmp_in_2204;
 int        tmp_in_2205;
 int        tmp_in_2206;
 int        tmp_in_2208;
 int        tmp_in_2209;
 int        tmp_in_2210;
 int        tmp_in_2211;
 int        tmp_in_2213;
 int        tmp_in_2217;
 int        tmp_in_2219;
 int        tmp_in_2220;
 int        tmp_in_2221;
 int        tmp_in_2223;
 int        tmp_in_2224;
 int        tmp_in_2225;
 int        tmp_in_2226;
 int        tmp_in_2228;
 int        tmp_in_2232;
 int        tmp_in_2234;
 int        tmp_in_2235;
 int        tmp_in_2236;
 int        tmp_in_2237;
 int        tmp_in_2238;
 int        tmp_in_2239;
 int        tmp_in_2240;
 int        tmp_in_2242;
 int        tmp_in_2246;
 int        tmp_in_2248;
 int        tmp_in_2249;
 int        tmp_in_2250;
 int        tmp_in_2251;
 int        tmp_in_2252;
 int        tmp_in_2253;
 int        tmp_in_2254;
 int        tmp_in_2256;
 int        tmp_in_2260;
 int        tmp_in_2262;
 int        tmp_in_2263;
 int        tmp_in_2264;
 int        tmp_in_2266;
 int        tmp_in_2267;
 int        tmp_in_2268;
 int        tmp_in_2269;
 int        tmp_in_2271;
 int        tmp_in_2275;
 int        tmp_in_2277;
 int        tmp_in_2278;
 int        tmp_in_2279;
 int        tmp_in_2280;
 int        tmp_in_2281;
 int        tmp_in_2282;
 int        tmp_in_2283;
 int        tmp_in_2284;
 double     tmp_do_2285;
 double     tmp_do_2286;
 double     tmp_do_2288;
 double     tmp_do_2289;
 int        tmp_in_2292;
 double     tmp_do_2293;
 double     tmp_do_2294;
 int        tmp_in_2295;
 double     tmp_do_2296;
 double     tmp_do_2297;
 int        tmp_in_2298;
 int        tmp_in_2304;
 double     tmp_do_2305;
 double     tmp_do_2306;
 double     tmp_do_2308;
 double     tmp_do_2309;
 int        tmp_in_2312;
 double     tmp_do_2313;
 double     tmp_do_2314;
 int        tmp_in_2315;
 double     tmp_do_2316;
 double     tmp_do_2317;
 int        tmp_in_2318;
 int        tmp_in_2324;
 int        tmp_in_2325;
 int        tmp_in_2326;
 int        tmp_in_2327;
 int        tmp_in_2328;
 int        tmp_in_2329;
 int        tmp_in_2330;
 int        tmp_in_2331;
 int        tmp_in_2333;
 int        tmp_in_2335;
 int        tmp_in_2336;
 int        tmp_in_2337;
 int        tmp_in_2338;
 int        tmp_in_2339;
 int        tmp_in_2340;
 int        tmp_in_2341;
 int        tmp_in_2343;
 int        tmp_in_2345;
 int        tmp_in_2346;
 int        tmp_in_2347;
 int        tmp_in_2348;
 int        tmp_in_2349;
 int        tmp_in_2350;
 int        tmp_in_2351;
 int        tmp_in_2353;
 int        tmp_in_2355;
 int        tmp_in_2356;
 int        tmp_in_2357;
 int        tmp_in_2358;
 int        tmp_in_2359;
 int        tmp_in_2360;
 int        tmp_in_2361;
 int        tmp_in_2363;
 int        tmp_in_2365;
 int        tmp_in_2366;
 int        tmp_in_2367;
 int        tmp_in_2368;
 int        tmp_in_2369;
 int        tmp_in_2370;
 int        tmp_in_2371;
 int        tmp_in_2373;
 int        tmp_in_2375;
 int        tmp_in_2376;
 int        tmp_in_2377;
 int        tmp_in_2378;
 int        tmp_in_2379;
 int        tmp_in_2380;
 int        tmp_in_2381;
 int        tmp_in_2383;
 int        tmp_in_2385;
 int        tmp_in_2386;
 int        tmp_in_2387;
 int        tmp_in_2388;
 int        tmp_in_2389;
 int        tmp_in_2390;
 int        tmp_in_2391;
 int        tmp_in_2393;
 int        tmp_in_2395;
 int        tmp_in_2396;
 int        tmp_in_2397;
 int        tmp_in_2398;
 int        tmp_in_2399;
 int        tmp_in_2400;
 int        tmp_in_2401;
 int        tmp_in_2403;
 int        tmp_in_2405;
 int        tmp_in_2406;
 int        tmp_in_2407;
 int        tmp_in_2408;
 int        tmp_in_2409;
 int        tmp_in_2410;
 int        tmp_in_2411;
 int        tmp_in_2413;
 int        tmp_in_2415;
 int        tmp_in_2416;
 int        tmp_in_2417;
 int        tmp_in_2418;
 int        tmp_in_2419;
 int        tmp_in_2420;
 int        tmp_in_2421;
 int        tmp_in_2423;
 int        tmp_in_2424;
 int        tmp_in_2425;
 int        tmp_in_2426;
 int        tmp_in_2427;
 int        tmp_in_2428;
 int        tmp_in_2429;
 int        tmp_in_2430;
 int        tmp_in_2432;
 int        tmp_in_2433;
 int        tmp_in_2434;
 int        tmp_in_2435;
 int        tmp_in_2436;
 int        tmp_in_2437;
 int        tmp_in_2438;
 int        tmp_in_2439;
 int        tmp_in_2441;
 int        tmp_in_2442;
 int        tmp_in_2443;
 int        tmp_in_2444;
 int        tmp_in_2445;
 int        tmp_in_2446;
 int        tmp_in_2447;
 int        tmp_in_2448;
 int        tmp_in_2450;
 int        tmp_in_2452;
 int        tmp_in_2453;
 int        tmp_in_2454;
 int        tmp_in_2455;
 int        tmp_in_2456;
 int        tmp_in_2457;
 int        tmp_in_2458;
 int        tmp_in_2460;
 int        tmp_in_2462;
 int        tmp_in_2463;
 int        tmp_in_2464;
 int        tmp_in_2465;
 int        tmp_in_2466;
 int        tmp_in_2467;
 int        tmp_in_2468;
 int        tmp_in_2470;
 int        tmp_in_2472;
 int        tmp_in_2473;
 int        tmp_in_2474;
 int        tmp_in_2475;
 int        tmp_in_2476;
 int        tmp_in_2477;
 int        tmp_in_2478;
 int        tmp_in_2480;
 int        tmp_in_2484;
 int        tmp_in_2486;
 int        tmp_in_2487;
 int        tmp_in_2488;
 int        tmp_in_2489;
 int        tmp_in_2490;
 int        tmp_in_2491;
 int        tmp_in_2492;
 int        tmp_in_2494;
 int        tmp_in_2496;
 int        tmp_in_2497;
 int        tmp_in_2498;
 int        tmp_in_2499;
 int        tmp_in_2500;
 int        tmp_in_2501;
 int        tmp_in_2502;
 int        tmp_in_2504;
 int        tmp_in_2506;
 int        tmp_in_2507;
 int        tmp_in_2508;
 int        tmp_in_2509;
 int        tmp_in_2510;
 int        tmp_in_2511;
 int        tmp_in_2512;
 int        tmp_in_2514;
 int        tmp_in_2516;
 int        tmp_in_2517;
 int        tmp_in_2518;
 int        tmp_in_2519;
 int        tmp_in_2520;
 int        tmp_in_2521;
 int        tmp_in_2522;
 int        tmp_in_2524;
 int        tmp_in_2525;
 int        tmp_in_2526;
 int        tmp_in_2527;
 int        tmp_in_2528;
 int        tmp_in_2529;
 int        tmp_in_2530;
 int        tmp_in_2531;
 int        tmp_in_2533;
 int        tmp_in_2534;
 int        tmp_in_2535;
 int        tmp_in_2536;
 int        tmp_in_2537;
 int        tmp_in_2538;
 int        tmp_in_2539;
 int        tmp_in_2540;
 int        tmp_in_2542;
 int        tmp_in_2544;
 int        tmp_in_2545;
 int        tmp_in_2546;
 int        tmp_in_2547;
 int        tmp_in_2548;
 int        tmp_in_2549;
 int        tmp_in_2550;
 int        tmp_in_2552;
 int        tmp_in_2554;
 int        tmp_in_2555;
 int        tmp_in_2556;
 int        tmp_in_2557;
 int        tmp_in_2558;
 int        tmp_in_2559;
 int        tmp_in_2560;
 int        tmp_in_2562;
 int        tmp_in_2563;
 int        tmp_in_2564;
 int        tmp_in_2565;
 int        tmp_in_2567;
 int        tmp_in_2568;
 int        tmp_in_2569;
 int        tmp_in_2570;
 int        tmp_in_2572;
 int        tmp_in_2576;
 int        tmp_in_2578;
 int        tmp_in_2579;
 int        tmp_in_2580;
 int        tmp_in_2581;
 int        tmp_in_2582;
 int        tmp_in_2583;
 int        tmp_in_2584;
 int        tmp_in_2586;
 int        tmp_in_2588;
 int        tmp_in_2589;
 int        tmp_in_2590;
 int        tmp_in_2591;
 int        tmp_in_2592;
 int        tmp_in_2593;
 int        tmp_in_2594;
 int        tmp_in_2596;
 int        tmp_in_2597;
 int        tmp_in_2598;
 int        tmp_in_2599;
 int        tmp_in_2600;
 int        tmp_in_2601;
 int        tmp_in_2602;
 int        tmp_in_2603;
 int        tmp_in_2605;
 int        tmp_in_2609;
 int        tmp_in_2611;
 int        tmp_in_2612;
 int        tmp_in_2613;
 int        tmp_in_2615;
 int        tmp_in_2616;
 int        tmp_in_2617;
 int        tmp_in_2618;
 int        tmp_in_2620;
 int        tmp_in_2624;
 int        tmp_in_2626;
 int        tmp_in_2627;
 int        tmp_in_2628;
 int        tmp_in_2630;
 int        tmp_in_2631;
 int        tmp_in_2632;
 int        tmp_in_2633;
 int        tmp_in_2635;
 int        tmp_in_2639;
 int        tmp_in_2641;
 int        tmp_in_2642;
 int        tmp_in_2643;
 int        tmp_in_2644;
 int        tmp_in_2645;
 int        tmp_in_2646;
 int        tmp_in_2647;
 int        tmp_in_2649;
 int        tmp_in_2653;
 int        tmp_in_2655;
 int        tmp_in_2656;
 int        tmp_in_2657;
 int        tmp_in_2658;
 int        tmp_in_2659;
 int        tmp_in_2660;
 int        tmp_in_2661;
 int        tmp_in_2663;
 int        tmp_in_2667;
 int        tmp_in_2669;
 int        tmp_in_2670;
 int        tmp_in_2671;
 int        tmp_in_2672;
 int        tmp_in_2673;
 int        tmp_in_2674;
 int        tmp_in_2675;
 int        tmp_in_2677;
 int        tmp_in_2681;
 int        tmp_in_2683;
 int        tmp_in_2684;
 int        tmp_in_2685;
 int        tmp_in_2687;
 int        tmp_in_2688;
 int        tmp_in_2689;
 int        tmp_in_2690;
 int        tmp_in_2692;
 int        tmp_in_2696;
 int        tmp_in_2698;
 int        tmp_in_2699;
 int        tmp_in_2700;
 int        tmp_in_2702;
 int        tmp_in_2703;
 int        tmp_in_2704;
 int        tmp_in_2705;
 int        tmp_in_2707;
 int        tmp_in_2711;
 int        tmp_in_2713;
 int        tmp_in_2714;
 int        tmp_in_2715;
 int        tmp_in_2717;
 int        tmp_in_2718;
 int        tmp_in_2719;
 int        tmp_in_2720;
 int        tmp_in_2722;
 int        tmp_in_2726;
 int        tmp_in_2728;
 int        tmp_in_2729;
 int        tmp_in_2730;
 int        tmp_in_2731;
 int        tmp_in_2732;
 int        tmp_in_2733;
 int        tmp_in_2734;
 int        tmp_in_2736;
 int        tmp_in_2738;
 int        tmp_in_2739;
 int        tmp_in_2740;
 int        tmp_in_2741;
 int        tmp_in_2742;
 int        tmp_in_2743;
 int        tmp_in_2744;
 int        tmp_in_2746;
 int        tmp_in_2748;
 int        tmp_in_2749;
 int        tmp_in_2750;
 int        tmp_in_2752;
 int        tmp_in_2753;
 int        tmp_in_2754;
 int        tmp_in_2755;
 int        tmp_in_2757;
 int        tmp_in_2761;
 int        tmp_in_2763;
 int        tmp_in_2764;
 int        tmp_in_2765;
 int        tmp_in_2767;
 int        tmp_in_2768;
 int        tmp_in_2769;
 int        tmp_in_2770;
 int        tmp_in_2772;
 int        tmp_in_2776;
 int        tmp_in_2778;
 int        tmp_in_2779;
 int        tmp_in_2780;
 int        tmp_in_2782;
 int        tmp_in_2783;
 int        tmp_in_2784;
 int        tmp_in_2785;
 int        tmp_in_2787;
 int        tmp_in_2791;
 int        tmp_in_2793;
 int        tmp_in_2794;
 int        tmp_in_2795;
 int        tmp_in_2796;
 int        tmp_in_2797;
 int        tmp_in_2798;
 int        tmp_in_2799;
 int        tmp_in_2801;
 int        tmp_in_2803;
 int        tmp_in_2804;
 int        tmp_in_2805;
 int        tmp_in_2806;
 int        tmp_in_2807;
 int        tmp_in_2808;
 int        tmp_in_2809;
 int        tmp_in_2811;
 int        tmp_in_2813;
 int        tmp_in_2814;
 int        tmp_in_2815;
 int        tmp_in_2816;
 int        tmp_in_2817;
 int        tmp_in_2818;
 int        tmp_in_2819;
 int        tmp_in_2821;
 int        tmp_in_2823;
 int        tmp_in_2824;
 int        tmp_in_2825;
 int        tmp_in_2826;
 int        tmp_in_2827;
 int        tmp_in_2828;
 int        tmp_in_2829;
 int        tmp_in_2831;
 int        tmp_in_2835;
 int        tmp_in_2837;
 int        tmp_in_2838;
 int        tmp_in_2839;
 int        tmp_in_2841;
 int        tmp_in_2842;
 int        tmp_in_2843;
 int        tmp_in_2844;
 int        tmp_in_2846;
 int        tmp_in_2850;
 int        tmp_in_2852;
 int        tmp_in_2853;
 int        tmp_in_2854;
 int        tmp_in_2855;
 int        tmp_in_2856;
 int        tmp_in_2857;
 int        tmp_in_2858;
 int        tmp_in_2860;
 int        tmp_in_2862;
 int        tmp_in_2863;
 int        tmp_in_2864;
 int        tmp_in_2866;
 int        tmp_in_2867;
 int        tmp_in_2868;
 int        tmp_in_2869;
 int        tmp_in_2871;
 int        tmp_in_2875;
 int        tmp_in_2877;
 int        tmp_in_2878;
 int        tmp_in_2879;
 int        tmp_in_2880;
 int        tmp_in_2881;
 int        tmp_in_2882;
 int        tmp_in_2883;
 int        tmp_in_2885;
 int        tmp_in_2887;
 int        tmp_in_2888;
 int        tmp_in_2889;
 int        tmp_in_2890;
 int        tmp_in_2891;
 int        tmp_in_2892;
 int        tmp_in_2893;
 int        tmp_in_2895;
 int        tmp_in_2897;
 int        tmp_in_2898;
 int        tmp_in_2899;
 int        tmp_in_2900;
 int        tmp_in_2901;
 int        tmp_in_2902;
 int        tmp_in_2903;
 int        tmp_in_2905;
 int        tmp_in_2907;
 int        tmp_in_2908;
 int        tmp_in_2909;
 int        tmp_in_2910;
 int        tmp_in_2911;
 int        tmp_in_2912;
 int        tmp_in_2913;
 int        tmp_in_2915;
 int        tmp_in_2917;
 int        tmp_in_2918;
 int        tmp_in_2919;
 int        tmp_in_2920;
 int        tmp_in_2921;
 int        tmp_in_2922;
 int        tmp_in_2923;
 int        tmp_in_2925;
 int        tmp_in_2927;
 int        tmp_in_2928;
 int        tmp_in_2929;
 int        tmp_in_2930;
 int        tmp_in_2931;
 int        tmp_in_2932;
 int        tmp_in_2933;
 int        tmp_in_2935;
 int        tmp_in_2937;
 int        tmp_in_2938;
 int        tmp_in_2939;
 int        tmp_in_2940;
 int        tmp_in_2941;
 int        tmp_in_2942;
 int        tmp_in_2943;
 int        tmp_in_2945;
 int        tmp_in_2947;
 int        tmp_in_2948;
 int        tmp_in_2949;
 int        tmp_in_2951;
 int        tmp_in_2952;
 int        tmp_in_2953;
 int        tmp_in_2954;
 int        tmp_in_2956;
 int        tmp_in_2960;
 int        tmp_in_2962;
 int        tmp_in_2963;
 int        tmp_in_2964;
 int        tmp_in_2965;
 int        tmp_in_2966;
 int        tmp_in_2967;
 int        tmp_in_2968;
 int        tmp_in_2970;
 int        tmp_in_2972;
 int        tmp_in_2973;
 int        tmp_in_2974;
 int        tmp_in_2975;
 int        tmp_in_2976;
 int        tmp_in_2977;
 int        tmp_in_2978;
 int        tmp_in_2980;
 int        tmp_in_2982;
 int        tmp_in_2983;
 int        tmp_in_2984;
 int        tmp_in_2985;
 int        tmp_in_2986;
 int        tmp_in_2987;
 int        tmp_in_2988;

 local_st_1 = "\n                          ---------------------------------------------------\n                          COPY RIGHT: B*******************G*@GMAIL.COM\n                          EA NAME: iMoney v7.1\n\n                          Spread: " + DoubleToString(MarketInfo(Symbol(),13),0) + "\n" + "                          ---------------------------------------------------\n" + "                          ACCOUNT INFO:\n" + "\n" + "                          Balance:             " + DoubleToString(AccountBalance(),2) + "\n" + "                          Equity:               " + DoubleToString(AccountEquity(),2) + "\n" + "                          Free Margin:        " + DoubleToString(AccountFreeMargin(),2) + "\n" + "                          Margin:               " + DoubleToString(AccountMargin(),2) + "\n" + "                          Profit/Loss:         " + DoubleToString(AccountProfit(),2) + "\n" + "                          ---------------------------------------------------\n" ;
 Comment(local_st_1); 
 local_in_2 = TimeDay(TimeCurrent()) ;
 local_in_3 = TimeMonth(TimeCurrent()) ;
 local_in_4 = Year() ;
 local_in_5 = Year() ;
 local_in_6 = TimeDayOfYear(TimeCurrent()) ;
 local_do_7 = 0.0 ;
 if ( Fix_Size == 0 )
  {
  local_do_7 = FAC_SIZE * AccountBalance() / 1468.0 ;
  }
 else
  {
  local_do_7 = LOT_SIZE ;
  }
 if ( local_do_7<MarketInfo(Symbol(),23) )
  {
  local_do_7 = MarketInfo(Symbol(),23) ;
  }
 if ( local_do_7>MarketInfo(Symbol(),25) )
  {
  local_do_7 = MarketInfo(Symbol(),25) ;
  }
 local_in_8 = iHighest(Symbol(),0,MODE_HIGH,global_in_16,1) ;
 local_do_9 = iHigh(Symbol(),0,local_in_8) ;
 local_in_10 = iLowest(Symbol(),0,MODE_LOW,global_in_16,1) ;
 local_do_11 = iLow(Symbol(),0,local_in_10) ;
 tmp_in_2 = MAGICNUMBER;
 tmp_in_5 = 0;
 tmp_in_6 = 0;
 for (tmp_in_7 = 0 ; tmp_in_7 < OrdersTotal() ; tmp_in_7=tmp_in_7 + 1)
  {
  if ( OrderSelect(tmp_in_7,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_5 && OrderMagicNumber() == tmp_in_2 && OrderSymbol() == Symbol() )
   {
   tmp_in_6=tmp_in_6 + 1; 
   }
  }
 if ( tmp_in_6 == 1 )
  {
  tmp_in_8 = MAGICNUMBER;
  tmp_in_9 = 0;
  tmp_do_10 = 0.0;
  tmp_do_11 = 0.0;
  for (tmp_in_12 = OrdersTotal() ; tmp_in_12 >= 0 ; tmp_in_12=tmp_in_12 - 1)
   {
   if ( OrderSelect(tmp_in_12,SELECT_BY_POS,MODE_TRADES) && OrderSymbol() == Symbol() && OrderMagicNumber() == tmp_in_8 && OrderType() == tmp_in_9 )
    {
    tmp_do_10 = OrderLots() / 0.01 * OrderOpenPrice() + tmp_do_10;
    tmp_do_11 = OrderLots() / 0.01 + tmp_do_11;
    }
   }

  }
 tmp_in_16 = MAGICNUMBER;
 tmp_in_17 = 0;
 tmp_in_18 = 0;
 for (tmp_in_19 = 0 ; tmp_in_19 < OrdersTotal() ; tmp_in_19=tmp_in_19 + 1)
  {
  if ( OrderSelect(tmp_in_19,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_17 && OrderMagicNumber() == tmp_in_16 && OrderSymbol() == Symbol() )
   {
   tmp_in_18=tmp_in_18 + 1; 
   }
  }
 if ( tmp_in_18 == 1 )
  {
  tmp_in_20 = MAGICNUMBER;
  tmp_in_21 = 0;
  tmp_do_22 = 0.0;
  tmp_do_23 = 0.0;
  for (tmp_in_24 = OrdersTotal() ; tmp_in_24 >= 0 ; tmp_in_24=tmp_in_24 - 1)
   {
   if ( OrderSelect(tmp_in_24,SELECT_BY_POS,MODE_TRADES) && OrderSymbol() == Symbol() && OrderMagicNumber() == tmp_in_20 && OrderType() == tmp_in_21 )
    {
    tmp_do_22 = OrderLots() / 0.01 * OrderOpenPrice() + tmp_do_22;
    tmp_do_23 = OrderLots() / 0.01 + tmp_do_23;
    }
   }
  if ( ( global_do_15 * Point() + NormalizeDouble(tmp_do_10 / tmp_do_11,Digits())<=Bid || (NormalizeDouble(tmp_do_22 / tmp_do_23,Digits()) - Point() * 5.0<=Bid && Close[0]>=local_do_9) ) )
   {
   tmp_in_28 = MAGICNUMBER;
   tmp_in_29 = 0;
   tmp_in_30 = -1;
   tmp_in_31 = 0;
   for (tmp_in_33 = OrdersTotal() - 1 ; tmp_in_33 >= 0 ; tmp_in_33=tmp_in_33 - 1)
    {
    if(OrderSelect(tmp_in_33,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_29 && OrderMagicNumber() == tmp_in_28 && OrderSymbol() == Symbol() ) {
    for ( ; tmp_in_31 < 10 ; tmp_in_31=tmp_in_31 + 1)
     {
     if ( OrderType() == 0 )
      {
      tmp_in_30 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
      }
     if ( OrderType() == 1 )
      {
      tmp_in_30 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
      }
     if ( ( OrderType() == 2 || tmp_in_29 == 4 ) )
      {
      tmp_in_30 = OrderDelete(OrderTicket(),Blue);
      }
     if ( ( OrderType() == 3 || tmp_in_29 == 5 ) )
      {
      tmp_in_30 = OrderDelete(OrderTicket(),Red);
      }
     if ( tmp_in_30 >= 0 )   break;
     Alert("Error CLose Order",ErrorDescription(0)); 
     Sleep(1000); 
     RefreshRates(); 
     }
     }
    }
  }}
 tmp_in_37 = MAGICNUMBER;
 tmp_in_38 = 1;
 tmp_in_39 = 0;
 for (tmp_in_40 = 0 ; tmp_in_40 < OrdersTotal() ; tmp_in_40=tmp_in_40 + 1)
  {
  if ( OrderSelect(tmp_in_40,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_38 && OrderMagicNumber() == tmp_in_37 && OrderSymbol() == Symbol() )
   {
   tmp_in_39=tmp_in_39 + 1; 
   }
  }
 if ( tmp_in_39 == 1 )
  {
  tmp_in_41 = MAGICNUMBER;
  tmp_in_42 = 1;
  tmp_do_43 = 0.0;
  tmp_do_44 = 0.0;
  for (tmp_in_45 = OrdersTotal() ; tmp_in_45 >= 0 ; tmp_in_45=tmp_in_45 - 1)
   {
   if ( OrderSelect(tmp_in_45,SELECT_BY_POS,MODE_TRADES) && OrderSymbol() == Symbol() && OrderMagicNumber() == tmp_in_41 && OrderType() == tmp_in_42 )
    {
    tmp_do_43 = OrderLots() / 0.01 * OrderOpenPrice() + tmp_do_43;
    tmp_do_44 = OrderLots() / 0.01 + tmp_do_44;
    }
   }

  }
 tmp_in_48 = MAGICNUMBER;
 tmp_in_49 = 1;
 tmp_in_50 = 0;
 for (tmp_in_51 = 0 ; tmp_in_51 < OrdersTotal() ; tmp_in_51=tmp_in_51 + 1)
  {
  if ( OrderSelect(tmp_in_51,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_49 && OrderMagicNumber() == tmp_in_48 && OrderSymbol() == Symbol() )
   {
   tmp_in_50=tmp_in_50 + 1; 
   }
  }
 if ( tmp_in_50 == 1 )
  {
  tmp_in_52 = MAGICNUMBER;
  tmp_in_53 = 1;
  tmp_do_54 = 0.0;
  tmp_do_55 = 0.0;
  for (tmp_in_56 = OrdersTotal() ; tmp_in_56 >= 0 ; tmp_in_56=tmp_in_56 - 1)
   {
   if ( OrderSelect(tmp_in_56,SELECT_BY_POS,MODE_TRADES) && OrderSymbol() == Symbol() && OrderMagicNumber() == tmp_in_52 && OrderType() == tmp_in_53 )
    {
    tmp_do_54 = OrderLots() / 0.01 * OrderOpenPrice() + tmp_do_54;
    tmp_do_55 = OrderLots() / 0.01 + tmp_do_55;
    }
   }
  if ( ( NormalizeDouble(tmp_do_43 / tmp_do_44,Digits()) - global_do_15 * Point()>=Ask || (Point() * 5.0 + NormalizeDouble(tmp_do_54 / tmp_do_55,Digits())>=Ask && Close[0]<=local_do_11) ) )
   {
   tmp_in_60 = MAGICNUMBER;
   tmp_in_61 = 1;
   tmp_in_62 = -1;
   tmp_in_63 = 0;
   for (tmp_in_65 = OrdersTotal() - 1 ; tmp_in_65 >= 0 ; tmp_in_65=tmp_in_65 - 1)
    {
    if(OrderSelect(tmp_in_65,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_61 && OrderMagicNumber() == tmp_in_60 && OrderSymbol() == Symbol() ) {
    for ( ; tmp_in_63 < 10 ; tmp_in_63=tmp_in_63 + 1)
     {
     if ( OrderType() == 0 )
      {
      tmp_in_62 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
      }
     if ( OrderType() == 1 )
      {
      tmp_in_62 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
      }
     if ( ( OrderType() == 2 || tmp_in_61 == 4 ) )
      {
      tmp_in_62 = OrderDelete(OrderTicket(),Blue);
      }
     if ( ( OrderType() == 3 || tmp_in_61 == 5 ) )
      {
      tmp_in_62 = OrderDelete(OrderTicket(),Red);
      }
     if ( tmp_in_62 >= 0 )   break;
     Alert("Error CLose Order",ErrorDescription(0)); 
     Sleep(1000); 
     RefreshRates(); 
     }
     }
    }
  }}
 if ( Hour() == global_in_11 + MT4_TIMEZONE_GMT )
  {
  tmp_in_71 = MAGICNUMBER;
  tmp_in_72 = 0;
  tmp_in_73 = -1;
  tmp_in_74 = 0;
  for (tmp_in_76 = OrdersTotal() - 1 ; tmp_in_76 >= 0 ; tmp_in_76=tmp_in_76 - 1)
   {
   if(OrderSelect(tmp_in_76,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_72 && OrderMagicNumber() == tmp_in_71 && OrderSymbol() == Symbol() ) {
   for ( ; tmp_in_74 < 10 ; tmp_in_74=tmp_in_74 + 1)
    {
    if ( OrderType() == 0 )
     {
     tmp_in_73 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
     }
    if ( OrderType() == 1 )
     {
     tmp_in_73 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
     }
    if ( ( OrderType() == 2 || tmp_in_72 == 4 ) )
     {
     tmp_in_73 = OrderDelete(OrderTicket(),Blue);
     }
    if ( ( OrderType() == 3 || tmp_in_72 == 5 ) )
     {
     tmp_in_73 = OrderDelete(OrderTicket(),Red);
     }
    if ( tmp_in_73 >= 0 )   break;
    Alert("Error CLose Order",ErrorDescription(0)); 
    Sleep(1000); 
    RefreshRates(); 
    }
    }
   }
  tmp_in_80 = MAGICNUMBER;
  tmp_in_82 = 1;
  tmp_in_83 = -1;
  tmp_in_84 = 0;
  for (tmp_in_86 = OrdersTotal() - 1 ; tmp_in_86 >= 0 ; tmp_in_86=tmp_in_86 - 1)
   {
   if(OrderSelect(tmp_in_86,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_82 && OrderMagicNumber() == tmp_in_80 && OrderSymbol() == Symbol() ) {
   for ( ; tmp_in_84 < 10 ; tmp_in_84=tmp_in_84 + 1)
    {
    if ( OrderType() == 0 )
     {
     tmp_in_83 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
     }
    if ( OrderType() == 1 )
     {
     tmp_in_83 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
     }
    if ( ( OrderType() == 2 || tmp_in_82 == 4 ) )
     {
     tmp_in_83 = OrderDelete(OrderTicket(),Blue);
     }
    if ( ( OrderType() == 3 || tmp_in_82 == 5 ) )
     {
     tmp_in_83 = OrderDelete(OrderTicket(),Red);
     }
    if ( tmp_in_83 >= 0 )   break;
    Alert("Error CLose Order",ErrorDescription(0)); 
    Sleep(1000); 
    RefreshRates(); 
    }
    }
   }
  }
 tmp_in_90 = MAGICNUMBER;
 tmp_in_92 = 0;
 tmp_in_93 = 0;
 for (tmp_in_94 = 0 ; tmp_in_94 < OrdersTotal() ; tmp_in_94=tmp_in_94 + 1)
  {
  if ( OrderSelect(tmp_in_94,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_92 && OrderMagicNumber() == tmp_in_90 && OrderSymbol() == Symbol() )
   {
   tmp_in_93=tmp_in_93 + 1; 
   }
  }
 if ( tmp_in_93 == 1 )
  {
  tmp_in_95 = MAGICNUMBER;
  tmp_in_96 = 0;
  tmp_do_97 = 0.0;
  tmp_do_98 = 0.0;
  for (tmp_in_99 = OrdersTotal() ; tmp_in_99 >= 0 ; tmp_in_99=tmp_in_99 - 1)
   {
   if ( OrderSelect(tmp_in_99,SELECT_BY_POS,MODE_TRADES) && OrderSymbol() == Symbol() && OrderMagicNumber() == tmp_in_95 && OrderType() == tmp_in_96 )
    {
    tmp_do_97 = OrderLots() / 0.01 * OrderOpenPrice() + tmp_do_97;
    tmp_do_98 = OrderLots() / 0.01 + tmp_do_98;
    }
   }
  if ( NormalizeDouble(tmp_do_97 / tmp_do_98,Digits()) - STOP_LOSS * Point()>Ask )
   {
   tmp_in_102 = MAGICNUMBER;
   tmp_in_103 = 0;
   tmp_in_104 = -1;
   tmp_in_105 = 0;
   for (tmp_in_107 = OrdersTotal() - 1 ; tmp_in_107 >= 0 ; tmp_in_107=tmp_in_107 - 1)
    {
    if(OrderSelect(tmp_in_107,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_103 && OrderMagicNumber() == tmp_in_102 && OrderSymbol() == Symbol() ) {
    for ( ; tmp_in_105 < 10 ; tmp_in_105=tmp_in_105 + 1)
     {
     if ( OrderType() == 0 )
      {
      tmp_in_104 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
      }
     if ( OrderType() == 1 )
      {
      tmp_in_104 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
      }
     if ( ( OrderType() == 2 || tmp_in_103 == 4 ) )
      {
      tmp_in_104 = OrderDelete(OrderTicket(),Blue);
      }
     if ( ( OrderType() == 3 || tmp_in_103 == 5 ) )
      {
      tmp_in_104 = OrderDelete(OrderTicket(),Red);
      }
     if ( tmp_in_104 >= 0 )   break;
     Alert("Error CLose Order",ErrorDescription(0)); 
     Sleep(1000); 
     RefreshRates(); 
     }
     }
    }
  }}
 tmp_in_111 = MAGICNUMBER;
 tmp_in_113 = 1;
 tmp_in_114 = 0;
 for (tmp_in_115 = 0 ; tmp_in_115 < OrdersTotal() ; tmp_in_115=tmp_in_115 + 1)
  {
  if ( OrderSelect(tmp_in_115,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_113 && OrderMagicNumber() == tmp_in_111 && OrderSymbol() == Symbol() )
   {
   tmp_in_114=tmp_in_114 + 1; 
   }
  }
 if ( tmp_in_114 == 1 )
  {
  tmp_in_116 = MAGICNUMBER;
  tmp_in_117 = 1;
  tmp_do_118 = 0.0;
  tmp_do_119 = 0.0;
  for (tmp_in_120 = OrdersTotal() ; tmp_in_120 >= 0 ; tmp_in_120=tmp_in_120 - 1)
   {
   if ( OrderSelect(tmp_in_120,SELECT_BY_POS,MODE_TRADES) && OrderSymbol() == Symbol() && OrderMagicNumber() == tmp_in_116 && OrderType() == tmp_in_117 )
    {
    tmp_do_118 = OrderLots() / 0.01 * OrderOpenPrice() + tmp_do_118;
    tmp_do_119 = OrderLots() / 0.01 + tmp_do_119;
    }
   }
  if ( STOP_LOSS * Point() + NormalizeDouble(tmp_do_118 / tmp_do_119,Digits())<Bid )
   {
   tmp_in_123 = MAGICNUMBER;
   tmp_in_124 = 1;
   tmp_in_125 = -1;
   tmp_in_126 = 0;
   for (tmp_in_128 = OrdersTotal() - 1 ; tmp_in_128 >= 0 ; tmp_in_128=tmp_in_128 - 1)
    {
    if(OrderSelect(tmp_in_128,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_124 && OrderMagicNumber() == tmp_in_123 && OrderSymbol() == Symbol() ) {
    for ( ; tmp_in_126 < 10 ; tmp_in_126=tmp_in_126 + 1)
     {
     if ( OrderType() == 0 )
      {
      tmp_in_125 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
      }
     if ( OrderType() == 1 )
      {
      tmp_in_125 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
      }
     if ( ( OrderType() == 2 || tmp_in_124 == 4 ) )
      {
      tmp_in_125 = OrderDelete(OrderTicket(),Blue);
      }
     if ( ( OrderType() == 3 || tmp_in_124 == 5 ) )
      {
      tmp_in_125 = OrderDelete(OrderTicket(),Red);
      }
     if ( tmp_in_125 >= 0 )   break;
     Alert("Error CLose Order",ErrorDescription(0)); 
     Sleep(1000); 
     RefreshRates(); 
     }
     }
    }
  }}

  {
  if ( ( Symbol() == "EURCHF" || Symbol() == "EURCHF." || Symbol() == "EURCHF-" || Symbol() == "EURCHFm" || Symbol() == "EURCHFi" || Symbol() == "EURCHF.m" || Symbol() == "EURCHFe" || Symbol() == "EURCHF.pe" || Symbol() == "EURCHF.s" || Symbol() == "EURCHF.fxe" || Symbol() == "EURCHF+" || Symbol() == "EURCHF.f" || Symbol() == "EURCHF.G2" || Symbol() == "EURCHF!!" || Symbol() == "EURCHFb" ) )
   { 
   tmp_in_132 = MAGICNUMBER;
   tmp_in_134 = 0;
   tmp_in_135 = 0;
   for (tmp_in_136 = 0 ; tmp_in_136 < OrdersTotal() ; tmp_in_136=tmp_in_136 + 1)
    {
    if ( OrderSelect(tmp_in_136,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_134 && OrderMagicNumber() == tmp_in_132 && OrderSymbol() == Symbol() )
     {
     tmp_in_135=tmp_in_135 + 1; 
     }
    }
   if ( tmp_in_135 == 0 )
    {
    tmp_in_137 = MAGICNUMBER;
    tmp_in_138 = 1;
    tmp_in_139 = 0;
    for (tmp_in_140 = 0 ; tmp_in_140 < OrdersTotal() ; tmp_in_140=tmp_in_140 + 1)
     {
     if ( OrderSelect(tmp_in_140,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_138 && OrderMagicNumber() == tmp_in_137 && OrderSymbol() == Symbol() )
      {
      tmp_in_139=tmp_in_139 + 1; 
      }
     }
    if ( tmp_in_139 == 0 )
     {
     if ( local_in_5 <= 2017 )
      {
      tmp_in_141 = MAGICNUMBER;
      tmp_do_142 = local_do_7 * global_do_12;
      tmp_do_143 = local_do_7 * global_do_12;
      tmp_do_145 = 0.0;
      tmp_do_146 = 0.0;
      if ( lizong_5() == 0 )
       {
     ans = OrderSend(Symbol(),OP_BUY,tmp_do_142,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,tmp_in_141,0,Blue); 
       }
      if ( lizong_5() == 1 )
       {
     ans = OrderSend(Symbol(),OP_SELL,tmp_do_143,Bid,3,tmp_do_145,tmp_do_146,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,tmp_in_141,0,Red); 
       }
      tmp_in_149 = MAGICNUMBER;
      tmp_do_150 = TAKEPROFIT;
      tmp_do_151 = STOP_LOSS;
      tmp_in_152 = lizong_5();
      tmp_do_153 = 0.0;
      tmp_do_154 = 0.0;
      tmp_in_155 = 0;
      if ( OrdersTotal() > 0 )
       {

       for ( ; tmp_in_155 < OrdersTotal() ; tmp_in_155=tmp_in_155 + 1)
        {
        if ( OrderSelect(tmp_in_155,SELECT_BY_POS,MODE_TRADES) )
         {
         if ( OrderType() == tmp_in_152 && OrderSymbol() == Symbol() && OrderMagicNumber() == tmp_in_149 )
          {
          if ( tmp_do_151!=0.0 )
           {
           tmp_do_153 = OrderOpenPrice() - tmp_do_151 * Point();
           }
          if ( tmp_do_150!=0.0 )
           {
           tmp_do_154 = tmp_do_150 * Point() + OrderOpenPrice();
           }
          if ( ( OrderStopLoss()!=tmp_do_153 || OrderTakeProfit()!=tmp_do_154 ) )
           {
         ans = OrderModify(OrderTicket(),OrderOpenPrice(),tmp_do_153,tmp_do_154,0,Blue); 
          }}
         if ( OrderType() == tmp_in_152 && OrderSymbol() == Symbol() && OrderMagicNumber() == tmp_in_149 )
          {
          if ( tmp_do_151!=0.0 )
           {
           tmp_do_153 = tmp_do_151 * Point() + OrderOpenPrice();
           }
          if ( tmp_do_150!=0.0 )
           {
           tmp_do_154 = OrderOpenPrice() - tmp_do_150 * Point();
           }
          if ( ( OrderStopLoss()!=tmp_do_153 || OrderTakeProfit()!=tmp_do_154 ) )
           {
         ans = OrderModify(OrderTicket(),OrderOpenPrice(),tmp_do_153,tmp_do_154,0,Red); 
         }}}
        }
      }}
     else
      {
      if ( local_in_5 == 2019 )
       {
       tmp_in_161 = MAGICNUMBER;
       tmp_do_162 = local_do_7 * global_do_12;
       tmp_do_163 = local_do_7 * global_do_12;
       tmp_do_165 = 0.0;
       tmp_do_166 = 0.0;
       if ( lizong_8() == 0 )
        {
      ans = OrderSend(Symbol(),OP_BUY,tmp_do_162,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,tmp_in_161,0,Blue); 
        }
       if ( lizong_8() == 1 )
        {
      ans = OrderSend(Symbol(),OP_SELL,tmp_do_163,Bid,3,tmp_do_165,tmp_do_166,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,tmp_in_161,0,Red); 
        }
       tmp_in_169 = MAGICNUMBER;
       tmp_do_170 = TAKEPROFIT;
       tmp_do_171 = STOP_LOSS;
       tmp_in_172 = lizong_8();
       tmp_do_173 = 0.0;
       tmp_do_174 = 0.0;
       for (tmp_in_175 = 0 ; tmp_in_175 < OrdersTotal() ; tmp_in_175=tmp_in_175 + 1)
        {
        if ( OrderSelect(tmp_in_175,SELECT_BY_POS,MODE_TRADES) )
         {
         if ( OrderType() == tmp_in_172 && OrderSymbol() == Symbol() && OrderMagicNumber() == tmp_in_169 )
          {
          if ( tmp_do_171!=0.0 )
           {
           tmp_do_173 = OrderOpenPrice() - tmp_do_171 * Point();
           }
          if ( tmp_do_170!=0.0 )
           {
           tmp_do_174 = tmp_do_170 * Point() + OrderOpenPrice();
           }
          if ( ( OrderStopLoss()!=tmp_do_173 || OrderTakeProfit()!=tmp_do_174 ) )
           {
         ans = OrderModify(OrderTicket(),OrderOpenPrice(),tmp_do_173,tmp_do_174,0,Blue); 
          }}
         if ( OrderType() == tmp_in_172 && OrderSymbol() == Symbol() && OrderMagicNumber() == tmp_in_169 )
          {
          if ( tmp_do_171!=0.0 )
           {
           tmp_do_173 = tmp_do_171 * Point() + OrderOpenPrice();
           }
          if ( tmp_do_170!=0.0 )
           {
           tmp_do_174 = OrderOpenPrice() - tmp_do_170 * Point();
           }
          if ( ( OrderStopLoss()!=tmp_do_173 || OrderTakeProfit()!=tmp_do_174 ) )
           {
         ans = OrderModify(OrderTicket(),OrderOpenPrice(),tmp_do_173,tmp_do_174,0,Red); 
         }}}
        }
    }}}}
   tmp_in_181 = MAGICNUMBER;
   tmp_in_182 = 1;
   tmp_in_183 = 0;
   for (tmp_in_184 = 0 ; tmp_in_184 < OrdersTotal() ; tmp_in_184=tmp_in_184 + 1)
    {
    if ( OrderSelect(tmp_in_184,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_182 && OrderMagicNumber() == tmp_in_181 && OrderSymbol() == Symbol() )
     {
     tmp_in_183=tmp_in_183 + 1; 
     }
    }
   if ( tmp_in_183 == 1 && local_in_4 == 2017 && local_in_3 == 7 && local_in_2 == 18 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 0 )
    {
    tmp_in_186 = MAGICNUMBER;
    tmp_in_187 = 1;
    tmp_in_188 = -1;
    tmp_in_189 = 0;
    for (tmp_in_191 = OrdersTotal() - 1 ; tmp_in_191 >= 0 ; tmp_in_191=tmp_in_191 - 1)
     {
     if(OrderSelect(tmp_in_191,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_187 && OrderMagicNumber() == tmp_in_186 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_189 < 10 ; tmp_in_189=tmp_in_189 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_188 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_188 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_187 == 4 ) )
       {
       tmp_in_188 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_187 == 5 ) )
       {
       tmp_in_188 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_188 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_195 = MAGICNUMBER;
   tmp_in_197 = 1;
   tmp_in_198 = 0;
   for (tmp_in_199 = 0 ; tmp_in_199 < OrdersTotal() ; tmp_in_199=tmp_in_199 + 1)
    {
    if ( OrderSelect(tmp_in_199,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_197 && OrderMagicNumber() == tmp_in_195 && OrderSymbol() == Symbol() )
     {
     tmp_in_198=tmp_in_198 + 1; 
     }
    }
   if ( tmp_in_198 == 1 && local_in_4 == 2017 && local_in_3 == 7 && local_in_2 == 24 && Hour() == MT4_TIMEZONE_GMT && Minute() == 50 )
    {
    tmp_in_200 = MAGICNUMBER;
    tmp_in_201 = 1;
    tmp_in_202 = -1;
    tmp_in_203 = 0;
    for (tmp_in_205 = OrdersTotal() - 1 ; tmp_in_205 >= 0 ; tmp_in_205=tmp_in_205 - 1)
     {
     if(OrderSelect(tmp_in_205,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_201 && OrderMagicNumber() == tmp_in_200 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_203 < 10 ; tmp_in_203=tmp_in_203 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_202 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_202 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_201 == 4 ) )
       {
       tmp_in_202 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_201 == 5 ) )
       {
       tmp_in_202 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_202 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_209 = MAGICNUMBER;
   tmp_in_211 = 1;
   tmp_in_212 = 0;
   for (tmp_in_213 = 0 ; tmp_in_213 < OrdersTotal() ; tmp_in_213=tmp_in_213 + 1)
    {
    if ( OrderSelect(tmp_in_213,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_211 && OrderMagicNumber() == tmp_in_209 && OrderSymbol() == Symbol() )
     {
     tmp_in_212=tmp_in_212 + 1; 
     }
    }
   if ( tmp_in_212 == 1 && local_in_4 == 2017 && local_in_3 == 8 && local_in_2 == 8 && Hour() == MT4_TIMEZONE_GMT && Minute() == 30 )
    {
    tmp_in_214 = MAGICNUMBER;
    tmp_in_215 = 1;
    tmp_in_216 = -1;
    tmp_in_217 = 0;
    for (tmp_in_219 = OrdersTotal() - 1 ; tmp_in_219 >= 0 ; tmp_in_219=tmp_in_219 - 1)
     {
     if(OrderSelect(tmp_in_219,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_215 && OrderMagicNumber() == tmp_in_214 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_217 < 10 ; tmp_in_217=tmp_in_217 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_216 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_216 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_215 == 4 ) )
       {
       tmp_in_216 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_215 == 5 ) )
       {
       tmp_in_216 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_216 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_223 = MAGICNUMBER;
   tmp_in_225 = 0;
   tmp_in_226 = 0;
   for (tmp_in_227 = 0 ; tmp_in_227 < OrdersTotal() ; tmp_in_227=tmp_in_227 + 1)
    {
    if ( OrderSelect(tmp_in_227,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_225 && OrderMagicNumber() == tmp_in_223 && OrderSymbol() == Symbol() )
     {
     tmp_in_226=tmp_in_226 + 1; 
     }
    }
   if ( tmp_in_226 == 1 && local_in_4 == 2017 && local_in_3 == 7 && local_in_2 == 31 && Hour() == MT4_TIMEZONE_GMT && Minute() == 20 )
    {
    tmp_in_228 = MAGICNUMBER;
    tmp_in_229 = 0;
    tmp_in_230 = -1;
    tmp_in_231 = 0;
    for (tmp_in_233 = OrdersTotal() - 1 ; tmp_in_233 >= 0 ; tmp_in_233=tmp_in_233 - 1)
     {
     if(OrderSelect(tmp_in_233,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_229 && OrderMagicNumber() == tmp_in_228 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_231 < 10 ; tmp_in_231=tmp_in_231 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_230 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_230 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_229 == 4 ) )
       {
       tmp_in_230 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_229 == 5 ) )
       {
       tmp_in_230 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_230 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_237 = MAGICNUMBER;
   tmp_in_239 = 1;
   tmp_in_240 = 0;
   for (tmp_in_241 = 0 ; tmp_in_241 < OrdersTotal() ; tmp_in_241=tmp_in_241 + 1)
    {
    if ( OrderSelect(tmp_in_241,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_239 && OrderMagicNumber() == tmp_in_237 && OrderSymbol() == Symbol() )
     {
     tmp_in_240=tmp_in_240 + 1; 
     }
    }
   if ( tmp_in_240 == 1 && local_in_4 == 2017 && local_in_3 == 8 && local_in_2 == 14 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 45 )
    {
    tmp_in_243 = MAGICNUMBER;
    tmp_in_244 = 1;
    tmp_in_245 = -1;
    tmp_in_246 = 0;
    for (tmp_in_248 = OrdersTotal() - 1 ; tmp_in_248 >= 0 ; tmp_in_248=tmp_in_248 - 1)
     {
     if(OrderSelect(tmp_in_248,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_244 && OrderMagicNumber() == tmp_in_243 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_246 < 10 ; tmp_in_246=tmp_in_246 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_245 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_245 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_244 == 4 ) )
       {
       tmp_in_245 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_244 == 5 ) )
       {
       tmp_in_245 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_245 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_252 = MAGICNUMBER;
   tmp_in_254 = 1;
   tmp_in_255 = 0;
   for (tmp_in_256 = 0 ; tmp_in_256 < OrdersTotal() ; tmp_in_256=tmp_in_256 + 1)
    {
    if ( OrderSelect(tmp_in_256,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_254 && OrderMagicNumber() == tmp_in_252 && OrderSymbol() == Symbol() )
     {
     tmp_in_255=tmp_in_255 + 1; 
     }
    }
   if ( tmp_in_255 == 1 && local_in_4 == 2017 && local_in_3 == 8 && local_in_2 == 6 && Hour() == MT4_TIMEZONE_GMT + 23 && Minute() == 40 )
    {
    tmp_in_258 = MAGICNUMBER;
    tmp_in_259 = 1;
    tmp_in_260 = -1;
    tmp_in_261 = 0;
    for (tmp_in_263 = OrdersTotal() - 1 ; tmp_in_263 >= 0 ; tmp_in_263=tmp_in_263 - 1)
     {
     if(OrderSelect(tmp_in_263,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_259 && OrderMagicNumber() == tmp_in_258 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_261 < 10 ; tmp_in_261=tmp_in_261 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_260 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_260 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_259 == 4 ) )
       {
       tmp_in_260 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_259 == 5 ) )
       {
       tmp_in_260 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_260 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_267 = MAGICNUMBER;
   tmp_in_269 = 0;
   tmp_in_270 = 0;
   for (tmp_in_271 = 0 ; tmp_in_271 < OrdersTotal() ; tmp_in_271=tmp_in_271 + 1)
    {
    if ( OrderSelect(tmp_in_271,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_269 && OrderMagicNumber() == tmp_in_267 && OrderSymbol() == Symbol() )
     {
     tmp_in_270=tmp_in_270 + 1; 
     }
    }
   if ( tmp_in_270 == 0 )
    {
    tmp_in_272 = MAGICNUMBER;
    tmp_in_273 = 1;
    tmp_in_274 = 0;
    for (tmp_in_275 = 0 ; tmp_in_275 < OrdersTotal() ; tmp_in_275=tmp_in_275 + 1)
     {
     if ( OrderSelect(tmp_in_275,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_273 && OrderMagicNumber() == tmp_in_272 && OrderSymbol() == Symbol() )
      {
      tmp_in_274=tmp_in_274 + 1; 
      }
     }
    if ( tmp_in_274 == 0 && local_in_4 == 2017 && local_in_3 == 8 && local_in_2 == 8 && Hour() == MT4_TIMEZONE_GMT + 20 && Minute() == 50 )
     {
   ans = OrderSend(Symbol(),OP_SELL,local_do_7,Bid,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Red); 
    }}
   tmp_in_277 = MAGICNUMBER;
   tmp_in_279 = 0;
   tmp_in_280 = 0;
   for (tmp_in_281 = 0 ; tmp_in_281 < OrdersTotal() ; tmp_in_281=tmp_in_281 + 1)
    {
    if ( OrderSelect(tmp_in_281,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_279 && OrderMagicNumber() == tmp_in_277 && OrderSymbol() == Symbol() )
     {
     tmp_in_280=tmp_in_280 + 1; 
     }
    }
   if ( tmp_in_280 == 0 )
    {
    tmp_in_282 = MAGICNUMBER;
    tmp_in_283 = 1;
    tmp_in_284 = 0;
    for (tmp_in_285 = 0 ; tmp_in_285 < OrdersTotal() ; tmp_in_285=tmp_in_285 + 1)
     {
     if ( OrderSelect(tmp_in_285,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_283 && OrderMagicNumber() == tmp_in_282 && OrderSymbol() == Symbol() )
      {
      tmp_in_284=tmp_in_284 + 1; 
      }
     }
    if ( tmp_in_284 == 0 && local_in_4 == 2017 && local_in_3 == 8 && local_in_2 == 8 && Hour() == MT4_TIMEZONE_GMT + 22 && Minute() == 10 )
     {
   ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
    }}
   tmp_in_287 = MAGICNUMBER;
   tmp_in_289 = 0;
   tmp_in_290 = 0;
   for (tmp_in_291 = 0 ; tmp_in_291 < OrdersTotal() ; tmp_in_291=tmp_in_291 + 1)
    {
    if ( OrderSelect(tmp_in_291,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_289 && OrderMagicNumber() == tmp_in_287 && OrderSymbol() == Symbol() )
     {
     tmp_in_290=tmp_in_290 + 1; 
     }
    }
   if ( tmp_in_290 == 0 )
    {
    tmp_in_292 = MAGICNUMBER;
    tmp_in_293 = 1;
    tmp_in_294 = 0;
    for (tmp_in_295 = 0 ; tmp_in_295 < OrdersTotal() ; tmp_in_295=tmp_in_295 + 1)
     {
     if ( OrderSelect(tmp_in_295,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_293 && OrderMagicNumber() == tmp_in_292 && OrderSymbol() == Symbol() )
      {
      tmp_in_294=tmp_in_294 + 1; 
      }
     }
    if ( tmp_in_294 == 0 && local_in_4 == 2017 && local_in_3 == 8 && local_in_2 == 8 && Hour() == MT4_TIMEZONE_GMT + 23 && Minute() == 20 )
     {
   ans = OrderSend(Symbol(),OP_SELL,local_do_7,Bid,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Red); 
    }}
   tmp_in_297 = MAGICNUMBER;
   tmp_in_299 = 0;
   tmp_in_300 = 0;
   for (tmp_in_301 = 0 ; tmp_in_301 < OrdersTotal() ; tmp_in_301=tmp_in_301 + 1)
    {
    if ( OrderSelect(tmp_in_301,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_299 && OrderMagicNumber() == tmp_in_297 && OrderSymbol() == Symbol() )
     {
     tmp_in_300=tmp_in_300 + 1; 
     }
    }
   if ( tmp_in_300 == 0 )
    {
    tmp_in_302 = MAGICNUMBER;
    tmp_in_303 = 1;
    tmp_in_304 = 0;
    for (tmp_in_305 = 0 ; tmp_in_305 < OrdersTotal() ; tmp_in_305=tmp_in_305 + 1)
     {
     if ( OrderSelect(tmp_in_305,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_303 && OrderMagicNumber() == tmp_in_302 && OrderSymbol() == Symbol() )
      {
      tmp_in_304=tmp_in_304 + 1; 
      }
     }
    if ( tmp_in_304 == 0 && local_in_4 == 2017 && local_in_3 == 8 && local_in_2 == 9 && Hour() == MT4_TIMEZONE_GMT + 20 && Minute() == 25 )
     {
   ans = OrderSend(Symbol(),OP_SELL,local_do_7,Bid,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Red); 
    }}
   tmp_in_307 = MAGICNUMBER;
   tmp_in_309 = 0;
   tmp_in_310 = 0;
   for (tmp_in_311 = 0 ; tmp_in_311 < OrdersTotal() ; tmp_in_311=tmp_in_311 + 1)
    {
    if ( OrderSelect(tmp_in_311,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_309 && OrderMagicNumber() == tmp_in_307 && OrderSymbol() == Symbol() )
     {
     tmp_in_310=tmp_in_310 + 1; 
     }
    }
   if ( tmp_in_310 == 0 )
    {
    tmp_in_312 = MAGICNUMBER;
    tmp_in_313 = 1;
    tmp_in_314 = 0;
    for (tmp_in_315 = 0 ; tmp_in_315 < OrdersTotal() ; tmp_in_315=tmp_in_315 + 1)
     {
     if ( OrderSelect(tmp_in_315,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_313 && OrderMagicNumber() == tmp_in_312 && OrderSymbol() == Symbol() )
      {
      tmp_in_314=tmp_in_314 + 1; 
      }
     }
    if ( tmp_in_314 == 0 && local_in_4 == 2017 && local_in_3 == 8 && local_in_2 == 9 && Hour() == MT4_TIMEZONE_GMT + 21 && Minute() == 45 )
     {
   ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
    }}
   tmp_in_317 = MAGICNUMBER;
   tmp_in_319 = 0;
   tmp_in_320 = 0;
   for (tmp_in_321 = 0 ; tmp_in_321 < OrdersTotal() ; tmp_in_321=tmp_in_321 + 1)
    {
    if ( OrderSelect(tmp_in_321,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_319 && OrderMagicNumber() == tmp_in_317 && OrderSymbol() == Symbol() )
     {
     tmp_in_320=tmp_in_320 + 1; 
     }
    }
   if ( tmp_in_320 == 0 )
    {
    tmp_in_322 = MAGICNUMBER;
    tmp_in_323 = 1;
    tmp_in_324 = 0;
    for (tmp_in_325 = 0 ; tmp_in_325 < OrdersTotal() ; tmp_in_325=tmp_in_325 + 1)
     {
     if ( OrderSelect(tmp_in_325,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_323 && OrderMagicNumber() == tmp_in_322 && OrderSymbol() == Symbol() )
      {
      tmp_in_324=tmp_in_324 + 1; 
      }
     }
    if ( tmp_in_324 == 0 && local_in_4 == 2017 && local_in_3 == 8 && local_in_2 == 10 && Hour() == MT4_TIMEZONE_GMT + 2 && Minute() == 0 )
     {
   ans = OrderSend(Symbol(),OP_SELL,local_do_7,Bid,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Red); 
    }}
   tmp_in_327 = MAGICNUMBER;
   tmp_in_329 = 0;
   tmp_in_330 = 0;
   for (tmp_in_331 = 0 ; tmp_in_331 < OrdersTotal() ; tmp_in_331=tmp_in_331 + 1)
    {
    if ( OrderSelect(tmp_in_331,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_329 && OrderMagicNumber() == tmp_in_327 && OrderSymbol() == Symbol() )
     {
     tmp_in_330=tmp_in_330 + 1; 
     }
    }
   if ( tmp_in_330 == 0 )
    {
    tmp_in_332 = MAGICNUMBER;
    tmp_in_333 = 1;
    tmp_in_334 = 0;
    for (tmp_in_335 = 0 ; tmp_in_335 < OrdersTotal() ; tmp_in_335=tmp_in_335 + 1)
     {
     if ( OrderSelect(tmp_in_335,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_333 && OrderMagicNumber() == tmp_in_332 && OrderSymbol() == Symbol() )
      {
      tmp_in_334=tmp_in_334 + 1; 
      }
     }
    if ( tmp_in_334 == 0 && local_in_4 == 2017 && local_in_3 == 8 && local_in_2 == 10 && Hour() == MT4_TIMEZONE_GMT + 22 && Minute() == 50 )
     {
   ans = OrderSend(Symbol(),OP_SELL,local_do_7,Bid,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Red); 
    }}
   tmp_in_337 = MAGICNUMBER;
   tmp_in_339 = 1;
   tmp_in_340 = 0;
   for (tmp_in_341 = 0 ; tmp_in_341 < OrdersTotal() ; tmp_in_341=tmp_in_341 + 1)
    {
    if ( OrderSelect(tmp_in_341,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_339 && OrderMagicNumber() == tmp_in_337 && OrderSymbol() == Symbol() )
     {
     tmp_in_340=tmp_in_340 + 1; 
     }
    }
   if ( tmp_in_340 == 1 && local_in_4 == 2017 && local_in_3 == 8 && local_in_2 == 30 && Hour() == MT4_TIMEZONE_GMT && Minute() == 35 )
    {
    tmp_in_342 = MAGICNUMBER;
    tmp_in_343 = 1;
    tmp_in_344 = -1;
    tmp_in_345 = 0;
    for (tmp_in_347 = OrdersTotal() - 1 ; tmp_in_347 >= 0 ; tmp_in_347=tmp_in_347 - 1)
     {
     if(OrderSelect(tmp_in_347,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_343 && OrderMagicNumber() == tmp_in_342 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_345 < 10 ; tmp_in_345=tmp_in_345 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_344 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_344 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_343 == 4 ) )
       {
       tmp_in_344 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_343 == 5 ) )
       {
       tmp_in_344 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_344 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_351 = MAGICNUMBER;
   tmp_in_353 = 1;
   tmp_in_354 = 0;
   for (tmp_in_355 = 0 ; tmp_in_355 < OrdersTotal() ; tmp_in_355=tmp_in_355 + 1)
    {
    if ( OrderSelect(tmp_in_355,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_353 && OrderMagicNumber() == tmp_in_351 && OrderSymbol() == Symbol() )
     {
     tmp_in_354=tmp_in_354 + 1; 
     }
    }
   if ( tmp_in_354 == 1 && local_in_4 == 2017 && local_in_3 == 8 && local_in_2 == 22 && Hour() == MT4_TIMEZONE_GMT + 20 && Minute() == 10 )
    {
    tmp_in_357 = MAGICNUMBER;
    tmp_in_358 = 1;
    tmp_in_359 = -1;
    tmp_in_360 = 0;
    for (tmp_in_362 = OrdersTotal() - 1 ; tmp_in_362 >= 0 ; tmp_in_362=tmp_in_362 - 1)
     {
     if(OrderSelect(tmp_in_362,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_358 && OrderMagicNumber() == tmp_in_357 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_360 < 10 ; tmp_in_360=tmp_in_360 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_359 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_359 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_358 == 4 ) )
       {
       tmp_in_359 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_358 == 5 ) )
       {
       tmp_in_359 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_359 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_366 = MAGICNUMBER;
   tmp_in_368 = 0;
   tmp_in_369 = 0;
   for (tmp_in_370 = 0 ; tmp_in_370 < OrdersTotal() ; tmp_in_370=tmp_in_370 + 1)
    {
    if ( OrderSelect(tmp_in_370,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_368 && OrderMagicNumber() == tmp_in_366 && OrderSymbol() == Symbol() )
     {
     tmp_in_369=tmp_in_369 + 1; 
     }
    }
   if ( tmp_in_369 == 0 )
    {
    tmp_in_371 = MAGICNUMBER;
    tmp_in_372 = 1;
    tmp_in_373 = 0;
    for (tmp_in_374 = 0 ; tmp_in_374 < OrdersTotal() ; tmp_in_374=tmp_in_374 + 1)
     {
     if ( OrderSelect(tmp_in_374,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_372 && OrderMagicNumber() == tmp_in_371 && OrderSymbol() == Symbol() )
      {
      tmp_in_373=tmp_in_373 + 1; 
      }
     }
    if ( tmp_in_373 == 0 && local_in_4 == 2017 && local_in_3 == 8 && local_in_2 == 23 && Hour() == MT4_TIMEZONE_GMT + 21 && Minute() == 45 )
     {
   ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
    }}
   tmp_in_376 = MAGICNUMBER;
   tmp_in_378 = 0;
   tmp_in_379 = 0;
   for (tmp_in_380 = 0 ; tmp_in_380 < OrdersTotal() ; tmp_in_380=tmp_in_380 + 1)
    {
    if ( OrderSelect(tmp_in_380,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_378 && OrderMagicNumber() == tmp_in_376 && OrderSymbol() == Symbol() )
     {
     tmp_in_379=tmp_in_379 + 1; 
     }
    }
   if ( tmp_in_379 == 0 )
    {
    tmp_in_381 = MAGICNUMBER;
    tmp_in_382 = 1;
    tmp_in_383 = 0;
    for (tmp_in_384 = 0 ; tmp_in_384 < OrdersTotal() ; tmp_in_384=tmp_in_384 + 1)
     {
     if ( OrderSelect(tmp_in_384,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_382 && OrderMagicNumber() == tmp_in_381 && OrderSymbol() == Symbol() )
      {
      tmp_in_383=tmp_in_383 + 1; 
      }
     }
    if ( tmp_in_383 == 0 && local_in_4 == 2017 && local_in_3 == 8 && local_in_2 == 30 && Hour() == MT4_TIMEZONE_GMT + 21 && Minute() == 20 )
     {
   ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
    }}
   tmp_in_386 = MAGICNUMBER;
   tmp_in_388 = 1;
   tmp_in_389 = 0;
   for (tmp_in_390 = 0 ; tmp_in_390 < OrdersTotal() ; tmp_in_390=tmp_in_390 + 1)
    {
    if ( OrderSelect(tmp_in_390,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_388 && OrderMagicNumber() == tmp_in_386 && OrderSymbol() == Symbol() )
     {
     tmp_in_389=tmp_in_389 + 1; 
     }
    }
   if ( tmp_in_389 == 1 && local_in_4 == 2017 && local_in_3 == 8 && local_in_2 == 29 && Hour() == MT4_TIMEZONE_GMT + 23 && Minute() == 45 )
    {
    tmp_in_392 = MAGICNUMBER;
    tmp_in_393 = 1;
    tmp_in_394 = -1;
    tmp_in_395 = 0;
    for (tmp_in_397 = OrdersTotal() - 1 ; tmp_in_397 >= 0 ; tmp_in_397=tmp_in_397 - 1)
     {
     if(OrderSelect(tmp_in_397,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_393 && OrderMagicNumber() == tmp_in_392 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_395 < 10 ; tmp_in_395=tmp_in_395 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_394 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_394 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_393 == 4 ) )
       {
       tmp_in_394 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_393 == 5 ) )
       {
       tmp_in_394 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_394 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_401 = MAGICNUMBER;
   tmp_in_403 = 0;
   tmp_in_404 = 0;
   for (tmp_in_405 = 0 ; tmp_in_405 < OrdersTotal() ; tmp_in_405=tmp_in_405 + 1)
    {
    if ( OrderSelect(tmp_in_405,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_403 && OrderMagicNumber() == tmp_in_401 && OrderSymbol() == Symbol() )
     {
     tmp_in_404=tmp_in_404 + 1; 
     }
    }
   if ( tmp_in_404 == 0 )
    {
    tmp_in_406 = MAGICNUMBER;
    tmp_in_407 = 1;
    tmp_in_408 = 0;
    for (tmp_in_409 = 0 ; tmp_in_409 < OrdersTotal() ; tmp_in_409=tmp_in_409 + 1)
     {
     if ( OrderSelect(tmp_in_409,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_407 && OrderMagicNumber() == tmp_in_406 && OrderSymbol() == Symbol() )
      {
      tmp_in_408=tmp_in_408 + 1; 
      }
     }
    if ( tmp_in_408 == 0 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 1 && Hour() == MT4_TIMEZONE_GMT + 20 && Minute() == 30 )
     {
   ans = OrderSend(Symbol(),OP_SELL,local_do_7,Bid,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Red); 
    }}
   tmp_in_411 = MAGICNUMBER;
   tmp_in_413 = 0;
   tmp_in_414 = 0;
   for (tmp_in_415 = 0 ; tmp_in_415 < OrdersTotal() ; tmp_in_415=tmp_in_415 + 1)
    {
    if ( OrderSelect(tmp_in_415,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_413 && OrderMagicNumber() == tmp_in_411 && OrderSymbol() == Symbol() )
     {
     tmp_in_414=tmp_in_414 + 1; 
     }
    }
   if ( tmp_in_414 == 1 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 5 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 25 )
    {
    tmp_in_417 = MAGICNUMBER;
    tmp_in_418 = 0;
    tmp_in_419 = -1;
    tmp_in_420 = 0;
    for (tmp_in_422 = OrdersTotal() - 1 ; tmp_in_422 >= 0 ; tmp_in_422=tmp_in_422 - 1)
     {
     if(OrderSelect(tmp_in_422,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_418 && OrderMagicNumber() == tmp_in_417 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_420 < 10 ; tmp_in_420=tmp_in_420 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_419 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_419 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_418 == 4 ) )
       {
       tmp_in_419 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_418 == 5 ) )
       {
       tmp_in_419 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_419 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_426 = MAGICNUMBER;
   tmp_in_428 = 0;
   tmp_in_429 = 0;
   for (tmp_in_430 = 0 ; tmp_in_430 < OrdersTotal() ; tmp_in_430=tmp_in_430 + 1)
    {
    if ( OrderSelect(tmp_in_430,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_428 && OrderMagicNumber() == tmp_in_426 && OrderSymbol() == Symbol() )
     {
     tmp_in_429=tmp_in_429 + 1; 
     }
    }
   if ( tmp_in_429 == 0 )
    {
    tmp_in_431 = MAGICNUMBER;
    tmp_in_432 = 1;
    tmp_in_433 = 0;
    for (tmp_in_434 = 0 ; tmp_in_434 < OrdersTotal() ; tmp_in_434=tmp_in_434 + 1)
     {
     if ( OrderSelect(tmp_in_434,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_432 && OrderMagicNumber() == tmp_in_431 && OrderSymbol() == Symbol() )
      {
      tmp_in_433=tmp_in_433 + 1; 
      }
     }
    if ( tmp_in_433 == 0 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 6 && Hour() == MT4_TIMEZONE_GMT + 22 && Minute() == 5 )
     {
   ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
    }}
   tmp_in_436 = MAGICNUMBER;
   tmp_in_438 = 0;
   tmp_in_439 = 0;
   for (tmp_in_440 = 0 ; tmp_in_440 < OrdersTotal() ; tmp_in_440=tmp_in_440 + 1)
    {
    if ( OrderSelect(tmp_in_440,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_438 && OrderMagicNumber() == tmp_in_436 && OrderSymbol() == Symbol() )
     {
     tmp_in_439=tmp_in_439 + 1; 
     }
    }
   if ( tmp_in_439 == 0 )
    {
    tmp_in_441 = MAGICNUMBER;
    tmp_in_442 = 1;
    tmp_in_443 = 0;
    for (tmp_in_444 = 0 ; tmp_in_444 < OrdersTotal() ; tmp_in_444=tmp_in_444 + 1)
     {
     if ( OrderSelect(tmp_in_444,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_442 && OrderMagicNumber() == tmp_in_441 && OrderSymbol() == Symbol() )
      {
      tmp_in_443=tmp_in_443 + 1; 
      }
     }
    if ( tmp_in_443 == 0 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 6 && Hour() == MT4_TIMEZONE_GMT + 23 && Minute() == 50 )
     {
   ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
    }}
   tmp_in_446 = MAGICNUMBER;
   tmp_in_448 = 0;
   tmp_in_449 = 0;
   for (tmp_in_450 = 0 ; tmp_in_450 < OrdersTotal() ; tmp_in_450=tmp_in_450 + 1)
    {
    if ( OrderSelect(tmp_in_450,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_448 && OrderMagicNumber() == tmp_in_446 && OrderSymbol() == Symbol() )
     {
     tmp_in_449=tmp_in_449 + 1; 
     }
    }
   if ( tmp_in_449 == 0 )
    {
    tmp_in_451 = MAGICNUMBER;
    tmp_in_452 = 1;
    tmp_in_453 = 0;
    for (tmp_in_454 = 0 ; tmp_in_454 < OrdersTotal() ; tmp_in_454=tmp_in_454 + 1)
     {
     if ( OrderSelect(tmp_in_454,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_452 && OrderMagicNumber() == tmp_in_451 && OrderSymbol() == Symbol() )
      {
      tmp_in_453=tmp_in_453 + 1; 
      }
     }
    if ( tmp_in_453 == 0 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 7 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 0 )
     {
   ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
    }}
   tmp_in_456 = MAGICNUMBER;
   tmp_in_458 = 0;
   tmp_in_459 = 0;
   for (tmp_in_460 = 0 ; tmp_in_460 < OrdersTotal() ; tmp_in_460=tmp_in_460 + 1)
    {
    if ( OrderSelect(tmp_in_460,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_458 && OrderMagicNumber() == tmp_in_456 && OrderSymbol() == Symbol() )
     {
     tmp_in_459=tmp_in_459 + 1; 
     }
    }
   if ( tmp_in_459 == 0 )
    {
    tmp_in_461 = MAGICNUMBER;
    tmp_in_462 = 1;
    tmp_in_463 = 0;
    for (tmp_in_464 = 0 ; tmp_in_464 < OrdersTotal() ; tmp_in_464=tmp_in_464 + 1)
     {
     if ( OrderSelect(tmp_in_464,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_462 && OrderMagicNumber() == tmp_in_461 && OrderSymbol() == Symbol() )
      {
      tmp_in_463=tmp_in_463 + 1; 
      }
     }
    if ( tmp_in_463 == 0 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 7 && Hour() == MT4_TIMEZONE_GMT + 22 && Minute() == 30 )
     {
   ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
    }}
   tmp_in_466 = MAGICNUMBER;
   tmp_in_468 = 0;
   tmp_in_469 = 0;
   for (tmp_in_470 = 0 ; tmp_in_470 < OrdersTotal() ; tmp_in_470=tmp_in_470 + 1)
    {
    if ( OrderSelect(tmp_in_470,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_468 && OrderMagicNumber() == tmp_in_466 && OrderSymbol() == Symbol() )
     {
     tmp_in_469=tmp_in_469 + 1; 
     }
    }
   if ( tmp_in_469 == 0 )
    {
    tmp_in_471 = MAGICNUMBER;
    tmp_in_472 = 1;
    tmp_in_473 = 0;
    for (tmp_in_474 = 0 ; tmp_in_474 < OrdersTotal() ; tmp_in_474=tmp_in_474 + 1)
     {
     if ( OrderSelect(tmp_in_474,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_472 && OrderMagicNumber() == tmp_in_471 && OrderSymbol() == Symbol() )
      {
      tmp_in_473=tmp_in_473 + 1; 
      }
     }
    if ( tmp_in_473 == 0 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 7 && Hour() == MT4_TIMEZONE_GMT + 23 && Minute() == 40 )
     {
   ans = OrderSend(Symbol(),OP_SELL,local_do_7,Bid,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Red); 
    }}
   tmp_in_476 = MAGICNUMBER;
   tmp_in_478 = 0;
   tmp_in_479 = 0;
   for (tmp_in_480 = 0 ; tmp_in_480 < OrdersTotal() ; tmp_in_480=tmp_in_480 + 1)
    {
    if ( OrderSelect(tmp_in_480,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_478 && OrderMagicNumber() == tmp_in_476 && OrderSymbol() == Symbol() )
     {
     tmp_in_479=tmp_in_479 + 1; 
     }
    }
   if ( tmp_in_479 == 0 )
    {
    tmp_in_481 = MAGICNUMBER;
    tmp_in_482 = 1;
    tmp_in_483 = 0;
    for (tmp_in_484 = 0 ; tmp_in_484 < OrdersTotal() ; tmp_in_484=tmp_in_484 + 1)
     {
     if ( OrderSelect(tmp_in_484,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_482 && OrderMagicNumber() == tmp_in_481 && OrderSymbol() == Symbol() )
      {
      tmp_in_483=tmp_in_483 + 1; 
      }
     }
    if ( tmp_in_483 == 0 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 8 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 0 )
     {
   ans = OrderSend(Symbol(),OP_SELL,local_do_7,Bid,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Red); 
    }}
   tmp_in_486 = MAGICNUMBER;
   tmp_in_488 = 0;
   tmp_in_489 = 0;
   for (tmp_in_490 = 0 ; tmp_in_490 < OrdersTotal() ; tmp_in_490=tmp_in_490 + 1)
    {
    if ( OrderSelect(tmp_in_490,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_488 && OrderMagicNumber() == tmp_in_486 && OrderSymbol() == Symbol() )
     {
     tmp_in_489=tmp_in_489 + 1; 
     }
    }
   if ( tmp_in_489 == 0 )
    {
    tmp_in_491 = MAGICNUMBER;
    tmp_in_492 = 1;
    tmp_in_493 = 0;
    for (tmp_in_494 = 0 ; tmp_in_494 < OrdersTotal() ; tmp_in_494=tmp_in_494 + 1)
     {
     if ( OrderSelect(tmp_in_494,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_492 && OrderMagicNumber() == tmp_in_491 && OrderSymbol() == Symbol() )
      {
      tmp_in_493=tmp_in_493 + 1; 
      }
     }
    if ( tmp_in_493 == 0 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 8 && Hour() == MT4_TIMEZONE_GMT + 20 && Minute() == 40 )
     {
   ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
    }}
   tmp_in_496 = MAGICNUMBER;
   tmp_in_498 = 0;
   tmp_in_499 = 0;
   for (tmp_in_500 = 0 ; tmp_in_500 < OrdersTotal() ; tmp_in_500=tmp_in_500 + 1)
    {
    if ( OrderSelect(tmp_in_500,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_498 && OrderMagicNumber() == tmp_in_496 && OrderSymbol() == Symbol() )
     {
     tmp_in_499=tmp_in_499 + 1; 
     }
    }
   if ( tmp_in_499 == 0 )
    {
    tmp_in_501 = MAGICNUMBER;
    tmp_in_502 = 1;
    tmp_in_503 = 0;
    for (tmp_in_504 = 0 ; tmp_in_504 < OrdersTotal() ; tmp_in_504=tmp_in_504 + 1)
     {
     if ( OrderSelect(tmp_in_504,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_502 && OrderMagicNumber() == tmp_in_501 && OrderSymbol() == Symbol() )
      {
      tmp_in_503=tmp_in_503 + 1; 
      }
     }
    if ( tmp_in_503 == 0 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 11 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 20 )
     {
   ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
    }}
   tmp_in_506 = MAGICNUMBER;
   tmp_in_508 = 0;
   tmp_in_509 = 0;
   for (tmp_in_510 = 0 ; tmp_in_510 < OrdersTotal() ; tmp_in_510=tmp_in_510 + 1)
    {
    if ( OrderSelect(tmp_in_510,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_508 && OrderMagicNumber() == tmp_in_506 && OrderSymbol() == Symbol() )
     {
     tmp_in_509=tmp_in_509 + 1; 
     }
    }
   if ( tmp_in_509 == 0 )
    {
    tmp_in_511 = MAGICNUMBER;
    tmp_in_512 = 1;
    tmp_in_513 = 0;
    for (tmp_in_514 = 0 ; tmp_in_514 < OrdersTotal() ; tmp_in_514=tmp_in_514 + 1)
     {
     if ( OrderSelect(tmp_in_514,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_512 && OrderMagicNumber() == tmp_in_511 && OrderSymbol() == Symbol() )
      {
      tmp_in_513=tmp_in_513 + 1; 
      }
     }
    if ( tmp_in_513 == 0 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 11 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 0 )
     {
   ans = OrderSend(Symbol(),OP_SELL,local_do_7,Bid,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Red); 
    }}
   tmp_in_516 = MAGICNUMBER;
   tmp_in_518 = 0;
   tmp_in_519 = 0;
   for (tmp_in_520 = 0 ; tmp_in_520 < OrdersTotal() ; tmp_in_520=tmp_in_520 + 1)
    {
    if ( OrderSelect(tmp_in_520,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_518 && OrderMagicNumber() == tmp_in_516 && OrderSymbol() == Symbol() )
     {
     tmp_in_519=tmp_in_519 + 1; 
     }
    }
   if ( tmp_in_519 == 0 )
    {
    tmp_in_521 = MAGICNUMBER;
    tmp_in_522 = 1;
    tmp_in_523 = 0;
    for (tmp_in_524 = 0 ; tmp_in_524 < OrdersTotal() ; tmp_in_524=tmp_in_524 + 1)
     {
     if ( OrderSelect(tmp_in_524,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_522 && OrderMagicNumber() == tmp_in_521 && OrderSymbol() == Symbol() )
      {
      tmp_in_523=tmp_in_523 + 1; 
      }
     }
    if ( tmp_in_523 == 0 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 11 && Hour() == MT4_TIMEZONE_GMT + 20 && Minute() == 45 )
     {
   ans = OrderSend(Symbol(),OP_SELL,local_do_7,Bid,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Red); 
    }}
   tmp_in_526 = MAGICNUMBER;
   tmp_in_528 = 0;
   tmp_in_529 = 0;
   for (tmp_in_530 = 0 ; tmp_in_530 < OrdersTotal() ; tmp_in_530=tmp_in_530 + 1)
    {
    if ( OrderSelect(tmp_in_530,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_528 && OrderMagicNumber() == tmp_in_526 && OrderSymbol() == Symbol() )
     {
     tmp_in_529=tmp_in_529 + 1; 
     }
    }
   if ( tmp_in_529 == 0 )
    {
    tmp_in_531 = MAGICNUMBER;
    tmp_in_532 = 1;
    tmp_in_533 = 0;
    for (tmp_in_534 = 0 ; tmp_in_534 < OrdersTotal() ; tmp_in_534=tmp_in_534 + 1)
     {
     if ( OrderSelect(tmp_in_534,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_532 && OrderMagicNumber() == tmp_in_531 && OrderSymbol() == Symbol() )
      {
      tmp_in_533=tmp_in_533 + 1; 
      }
     }
    if ( tmp_in_533 == 0 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 11 && Hour() == MT4_TIMEZONE_GMT + 22 && Minute() == 10 )
     {
   ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
    }}
   tmp_in_536 = MAGICNUMBER;
   tmp_in_538 = 0;
   tmp_in_539 = 0;
   for (tmp_in_540 = 0 ; tmp_in_540 < OrdersTotal() ; tmp_in_540=tmp_in_540 + 1)
    {
    if ( OrderSelect(tmp_in_540,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_538 && OrderMagicNumber() == tmp_in_536 && OrderSymbol() == Symbol() )
     {
     tmp_in_539=tmp_in_539 + 1; 
     }
    }
   if ( tmp_in_539 == 0 )
    {
    tmp_in_541 = MAGICNUMBER;
    tmp_in_542 = 1;
    tmp_in_543 = 0;
    for (tmp_in_544 = 0 ; tmp_in_544 < OrdersTotal() ; tmp_in_544=tmp_in_544 + 1)
     {
     if ( OrderSelect(tmp_in_544,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_542 && OrderMagicNumber() == tmp_in_541 && OrderSymbol() == Symbol() )
      {
      tmp_in_543=tmp_in_543 + 1; 
      }
     }
    if ( tmp_in_543 == 0 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 6 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 25 )
     {
   ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
    }}
   tmp_in_546 = MAGICNUMBER;
   tmp_in_548 = 0;
   tmp_in_549 = 0;
   for (tmp_in_550 = 0 ; tmp_in_550 < OrdersTotal() ; tmp_in_550=tmp_in_550 + 1)
    {
    if ( OrderSelect(tmp_in_550,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_548 && OrderMagicNumber() == tmp_in_546 && OrderSymbol() == Symbol() )
     {
     tmp_in_549=tmp_in_549 + 1; 
     }
    }
   if ( tmp_in_549 == 0 )
    {
    tmp_in_551 = MAGICNUMBER;
    tmp_in_552 = 1;
    tmp_in_553 = 0;
    for (tmp_in_554 = 0 ; tmp_in_554 < OrdersTotal() ; tmp_in_554=tmp_in_554 + 1)
     {
     if ( OrderSelect(tmp_in_554,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_552 && OrderMagicNumber() == tmp_in_551 && OrderSymbol() == Symbol() )
      {
      tmp_in_553=tmp_in_553 + 1; 
      }
     }
    if ( tmp_in_553 == 0 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 11 && Hour() == MT4_TIMEZONE_GMT + 23 && Minute() == 50 )
     {
   ans = OrderSend(Symbol(),OP_SELL,local_do_7,Bid,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Red); 
    }}
   tmp_in_556 = MAGICNUMBER;
   tmp_in_558 = 0;
   tmp_in_559 = 0;
   for (tmp_in_560 = 0 ; tmp_in_560 < OrdersTotal() ; tmp_in_560=tmp_in_560 + 1)
    {
    if ( OrderSelect(tmp_in_560,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_558 && OrderMagicNumber() == tmp_in_556 && OrderSymbol() == Symbol() )
     {
     tmp_in_559=tmp_in_559 + 1; 
     }
    }
   if ( tmp_in_559 == 0 )
    {
    tmp_in_561 = MAGICNUMBER;
    tmp_in_562 = 1;
    tmp_in_563 = 0;
    for (tmp_in_564 = 0 ; tmp_in_564 < OrdersTotal() ; tmp_in_564=tmp_in_564 + 1)
     {
     if ( OrderSelect(tmp_in_564,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_562 && OrderMagicNumber() == tmp_in_561 && OrderSymbol() == Symbol() )
      {
      tmp_in_563=tmp_in_563 + 1; 
      }
     }
    if ( tmp_in_563 == 0 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 22 && Hour() == MT4_TIMEZONE_GMT && Minute() == 35 )
     {
   ans = OrderSend(Symbol(),OP_SELL,local_do_7,Bid,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Red); 
    }}
   tmp_in_566 = MAGICNUMBER;
   tmp_in_567 = 0;
   tmp_in_568 = 0;
   for (tmp_in_569 = 0 ; tmp_in_569 < OrdersTotal() ; tmp_in_569=tmp_in_569 + 1)
    {
    if ( OrderSelect(tmp_in_569,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_567 && OrderMagicNumber() == tmp_in_566 && OrderSymbol() == Symbol() )
     {
     tmp_in_568=tmp_in_568 + 1; 
     }
    }
   if ( tmp_in_568 == 0 )
    {
    tmp_in_570 = MAGICNUMBER;
    tmp_in_571 = 1;
    tmp_in_572 = 0;
    for (tmp_in_573 = 0 ; tmp_in_573 < OrdersTotal() ; tmp_in_573=tmp_in_573 + 1)
     {
     if ( OrderSelect(tmp_in_573,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_571 && OrderMagicNumber() == tmp_in_570 && OrderSymbol() == Symbol() )
      {
      tmp_in_572=tmp_in_572 + 1; 
      }
     }
    if ( tmp_in_572 == 0 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 22 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 10 )
     {
   ans = OrderSend(Symbol(),OP_SELL,local_do_7,Bid,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Red); 
    }}
   tmp_in_575 = MAGICNUMBER;
   tmp_in_577 = 1;
   tmp_in_578 = 0;
   for (tmp_in_579 = 0 ; tmp_in_579 < OrdersTotal() ; tmp_in_579=tmp_in_579 + 1)
    {
    if ( OrderSelect(tmp_in_579,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_577 && OrderMagicNumber() == tmp_in_575 && OrderSymbol() == Symbol() )
     {
     tmp_in_578=tmp_in_578 + 1; 
     }
    }
   if ( tmp_in_578 == 1 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 26 && Hour() == MT4_TIMEZONE_GMT + 2 && Minute() == 15 )
    {
    tmp_in_581 = MAGICNUMBER;
    tmp_in_582 = 1;
    tmp_in_583 = -1;
    tmp_in_584 = 0;
    for (tmp_in_586 = OrdersTotal() - 1 ; tmp_in_586 >= 0 ; tmp_in_586=tmp_in_586 - 1)
     {
     if(OrderSelect(tmp_in_586,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_582 && OrderMagicNumber() == tmp_in_581 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_584 < 10 ; tmp_in_584=tmp_in_584 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_583 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_583 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_582 == 4 ) )
       {
       tmp_in_583 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_582 == 5 ) )
       {
       tmp_in_583 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_583 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_590 = MAGICNUMBER;
   tmp_in_592 = 1;
   tmp_in_593 = 0;
   for (tmp_in_594 = 0 ; tmp_in_594 < OrdersTotal() ; tmp_in_594=tmp_in_594 + 1)
    {
    if ( OrderSelect(tmp_in_594,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_592 && OrderMagicNumber() == tmp_in_590 && OrderSymbol() == Symbol() )
     {
     tmp_in_593=tmp_in_593 + 1; 
     }
    }
   if ( tmp_in_593 == 1 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 27 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 5 )
    {
    tmp_in_596 = MAGICNUMBER;
    tmp_in_597 = 1;
    tmp_in_598 = -1;
    tmp_in_599 = 0;
    for (tmp_in_601 = OrdersTotal() - 1 ; tmp_in_601 >= 0 ; tmp_in_601=tmp_in_601 - 1)
     {
     if(OrderSelect(tmp_in_601,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_597 && OrderMagicNumber() == tmp_in_596 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_599 < 10 ; tmp_in_599=tmp_in_599 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_598 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_598 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_597 == 4 ) )
       {
       tmp_in_598 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_597 == 5 ) )
       {
       tmp_in_598 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_598 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_605 = MAGICNUMBER;
   tmp_in_607 = 1;
   tmp_in_608 = 0;
   for (tmp_in_609 = 0 ; tmp_in_609 < OrdersTotal() ; tmp_in_609=tmp_in_609 + 1)
    {
    if ( OrderSelect(tmp_in_609,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_607 && OrderMagicNumber() == tmp_in_605 && OrderSymbol() == Symbol() )
     {
     tmp_in_608=tmp_in_608 + 1; 
     }
    }
   if ( tmp_in_608 == 1 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 27 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 55 )
    {
    tmp_in_611 = MAGICNUMBER;
    tmp_in_612 = 1;
    tmp_in_613 = -1;
    tmp_in_614 = 0;
    for (tmp_in_616 = OrdersTotal() - 1 ; tmp_in_616 >= 0 ; tmp_in_616=tmp_in_616 - 1)
     {
     if(OrderSelect(tmp_in_616,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_612 && OrderMagicNumber() == tmp_in_611 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_614 < 10 ; tmp_in_614=tmp_in_614 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_613 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_613 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_612 == 4 ) )
       {
       tmp_in_613 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_612 == 5 ) )
       {
       tmp_in_613 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_613 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_620 = MAGICNUMBER;
   tmp_in_622 = 1;
   tmp_in_623 = 0;
   for (tmp_in_624 = 0 ; tmp_in_624 < OrdersTotal() ; tmp_in_624=tmp_in_624 + 1)
    {
    if ( OrderSelect(tmp_in_624,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_622 && OrderMagicNumber() == tmp_in_620 && OrderSymbol() == Symbol() )
     {
     tmp_in_623=tmp_in_623 + 1; 
     }
    }
   if ( tmp_in_623 == 1 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 29 && Hour() == MT4_TIMEZONE_GMT && Minute() == 15 )
    {
    tmp_in_625 = MAGICNUMBER;
    tmp_in_626 = 1;
    tmp_in_627 = -1;
    tmp_in_628 = 0;
    for (tmp_in_630 = OrdersTotal() - 1 ; tmp_in_630 >= 0 ; tmp_in_630=tmp_in_630 - 1)
     {
     if(OrderSelect(tmp_in_630,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_626 && OrderMagicNumber() == tmp_in_625 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_628 < 10 ; tmp_in_628=tmp_in_628 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_627 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_627 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_626 == 4 ) )
       {
       tmp_in_627 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_626 == 5 ) )
       {
       tmp_in_627 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_627 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_634 = MAGICNUMBER;
   tmp_in_636 = 1;
   tmp_in_637 = 0;
   for (tmp_in_638 = 0 ; tmp_in_638 < OrdersTotal() ; tmp_in_638=tmp_in_638 + 1)
    {
    if ( OrderSelect(tmp_in_638,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_636 && OrderMagicNumber() == tmp_in_634 && OrderSymbol() == Symbol() )
     {
     tmp_in_637=tmp_in_637 + 1; 
     }
    }
   if ( tmp_in_637 == 1 && local_in_4 == 2017 && local_in_3 == 9 && local_in_2 == 29 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 0 )
    {
    tmp_in_640 = MAGICNUMBER;
    tmp_in_641 = 1;
    tmp_in_642 = -1;
    tmp_in_643 = 0;
    for (tmp_in_645 = OrdersTotal() - 1 ; tmp_in_645 >= 0 ; tmp_in_645=tmp_in_645 - 1)
     {
     if(OrderSelect(tmp_in_645,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_641 && OrderMagicNumber() == tmp_in_640 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_643 < 10 ; tmp_in_643=tmp_in_643 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_642 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_642 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_641 == 4 ) )
       {
       tmp_in_642 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_641 == 5 ) )
       {
       tmp_in_642 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_642 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_649 = MAGICNUMBER;
   tmp_in_651 = 1;
   tmp_in_652 = 0;
   for (tmp_in_653 = 0 ; tmp_in_653 < OrdersTotal() ; tmp_in_653=tmp_in_653 + 1)
    {
    if ( OrderSelect(tmp_in_653,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_651 && OrderMagicNumber() == tmp_in_649 && OrderSymbol() == Symbol() )
     {
     tmp_in_652=tmp_in_652 + 1; 
     }
    }
   if ( tmp_in_652 == 1 && local_in_4 == 2017 && local_in_3 == 10 && local_in_2 == 11 && Hour() == MT4_TIMEZONE_GMT + 21 && Minute() == 0 )
    {
    tmp_in_655 = MAGICNUMBER;
    tmp_in_656 = 1;
    tmp_in_657 = -1;
    tmp_in_658 = 0;
    for (tmp_in_660 = OrdersTotal() - 1 ; tmp_in_660 >= 0 ; tmp_in_660=tmp_in_660 - 1)
     {
     if(OrderSelect(tmp_in_660,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_656 && OrderMagicNumber() == tmp_in_655 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_658 < 10 ; tmp_in_658=tmp_in_658 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_657 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_657 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_656 == 4 ) )
       {
       tmp_in_657 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_656 == 5 ) )
       {
       tmp_in_657 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_657 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_664 = MAGICNUMBER;
   tmp_in_666 = 1;
   tmp_in_667 = 0;
   for (tmp_in_668 = 0 ; tmp_in_668 < OrdersTotal() ; tmp_in_668=tmp_in_668 + 1)
    {
    if ( OrderSelect(tmp_in_668,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_666 && OrderMagicNumber() == tmp_in_664 && OrderSymbol() == Symbol() )
     {
     tmp_in_667=tmp_in_667 + 1; 
     }
    }
   if ( tmp_in_667 == 1 && local_in_4 == 2017 && local_in_3 == 10 && local_in_2 == 10 && Hour() == MT4_TIMEZONE_GMT + 23 && Minute() == 0 )
    {
    tmp_in_670 = MAGICNUMBER;
    tmp_in_671 = 1;
    tmp_in_672 = -1;
    tmp_in_673 = 0;
    for (tmp_in_675 = OrdersTotal() - 1 ; tmp_in_675 >= 0 ; tmp_in_675=tmp_in_675 - 1)
     {
     if(OrderSelect(tmp_in_675,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_671 && OrderMagicNumber() == tmp_in_670 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_673 < 10 ; tmp_in_673=tmp_in_673 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_672 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_672 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_671 == 4 ) )
       {
       tmp_in_672 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_671 == 5 ) )
       {
       tmp_in_672 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_672 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_679 = MAGICNUMBER;
   tmp_in_681 = 0;
   tmp_in_682 = 0;
   for (tmp_in_683 = 0 ; tmp_in_683 < OrdersTotal() ; tmp_in_683=tmp_in_683 + 1)
    {
    if ( OrderSelect(tmp_in_683,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_681 && OrderMagicNumber() == tmp_in_679 && OrderSymbol() == Symbol() )
     {
     tmp_in_682=tmp_in_682 + 1; 
     }
    }
   if ( tmp_in_682 == 0 )
    {
    tmp_in_684 = MAGICNUMBER;
    tmp_in_685 = 1;
    tmp_in_686 = 0;
    for (tmp_in_687 = 0 ; tmp_in_687 < OrdersTotal() ; tmp_in_687=tmp_in_687 + 1)
     {
     if ( OrderSelect(tmp_in_687,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_685 && OrderMagicNumber() == tmp_in_684 && OrderSymbol() == Symbol() )
      {
      tmp_in_686=tmp_in_686 + 1; 
      }
     }
    if ( tmp_in_686 == 0 && local_in_4 == 2017 && local_in_3 == 10 && local_in_2 == 19 && Hour() == MT4_TIMEZONE_GMT && Minute() == 55 )
     {
   ans = OrderSend(Symbol(),OP_SELL,local_do_7,Bid,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Red); 
    }}
   tmp_in_689 = MAGICNUMBER;
   tmp_in_690 = 0;
   tmp_in_691 = 0;
   for (tmp_in_692 = 0 ; tmp_in_692 < OrdersTotal() ; tmp_in_692=tmp_in_692 + 1)
    {
    if ( OrderSelect(tmp_in_692,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_690 && OrderMagicNumber() == tmp_in_689 && OrderSymbol() == Symbol() )
     {
     tmp_in_691=tmp_in_691 + 1; 
     }
    }
   if ( tmp_in_691 == 0 )
    {
    tmp_in_693 = MAGICNUMBER;
    tmp_in_694 = 1;
    tmp_in_695 = 0;
    for (tmp_in_696 = 0 ; tmp_in_696 < OrdersTotal() ; tmp_in_696=tmp_in_696 + 1)
     {
     if ( OrderSelect(tmp_in_696,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_694 && OrderMagicNumber() == tmp_in_693 && OrderSymbol() == Symbol() )
      {
      tmp_in_695=tmp_in_695 + 1; 
      }
     }
    if ( tmp_in_695 == 0 && local_in_4 == 2017 && local_in_3 == 10 && local_in_2 == 19 && Hour() == MT4_TIMEZONE_GMT + 20 && Minute() == 50 )
     {
   ans = OrderSend(Symbol(),OP_SELL,local_do_7,Bid,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Red); 
    }}
   tmp_in_698 = MAGICNUMBER;
   tmp_in_700 = 0;
   tmp_in_701 = 0;
   for (tmp_in_702 = 0 ; tmp_in_702 < OrdersTotal() ; tmp_in_702=tmp_in_702 + 1)
    {
    if ( OrderSelect(tmp_in_702,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_700 && OrderMagicNumber() == tmp_in_698 && OrderSymbol() == Symbol() )
     {
     tmp_in_701=tmp_in_701 + 1; 
     }
    }
   if ( tmp_in_701 == 0 )
    {
    tmp_in_703 = MAGICNUMBER;
    tmp_in_704 = 1;
    tmp_in_705 = 0;
    for (tmp_in_706 = 0 ; tmp_in_706 < OrdersTotal() ; tmp_in_706=tmp_in_706 + 1)
     {
     if ( OrderSelect(tmp_in_706,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_704 && OrderMagicNumber() == tmp_in_703 && OrderSymbol() == Symbol() )
      {
      tmp_in_705=tmp_in_705 + 1; 
      }
     }
    if ( tmp_in_705 == 0 && local_in_4 == 2017 && local_in_3 == 10 && local_in_2 == 19 && Hour() == MT4_TIMEZONE_GMT + 21 && Minute() == 55 )
     {
   ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
    }}
   tmp_in_708 = MAGICNUMBER;
   tmp_in_710 = 0;
   tmp_in_711 = 0;
   for (tmp_in_712 = 0 ; tmp_in_712 < OrdersTotal() ; tmp_in_712=tmp_in_712 + 1)
    {
    if ( OrderSelect(tmp_in_712,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_710 && OrderMagicNumber() == tmp_in_708 && OrderSymbol() == Symbol() )
     {
     tmp_in_711=tmp_in_711 + 1; 
     }
    }
   if ( tmp_in_711 == 0 )
    {
    tmp_in_713 = MAGICNUMBER;
    tmp_in_714 = 1;
    tmp_in_715 = 0;
    for (tmp_in_716 = 0 ; tmp_in_716 < OrdersTotal() ; tmp_in_716=tmp_in_716 + 1)
     {
     if ( OrderSelect(tmp_in_716,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_714 && OrderMagicNumber() == tmp_in_713 && OrderSymbol() == Symbol() )
      {
      tmp_in_715=tmp_in_715 + 1; 
      }
     }
    if ( tmp_in_715 == 0 && local_in_4 == 2017 && local_in_3 == 10 && local_in_2 == 20 && Hour() == MT4_TIMEZONE_GMT + 20 && Minute() == 5 )
     {
   ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
    }}
   tmp_in_718 = MAGICNUMBER;
   tmp_in_720 = 0;
   tmp_in_721 = 0;
   for (tmp_in_722 = 0 ; tmp_in_722 < OrdersTotal() ; tmp_in_722=tmp_in_722 + 1)
    {
    if ( OrderSelect(tmp_in_722,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_720 && OrderMagicNumber() == tmp_in_718 && OrderSymbol() == Symbol() )
     {
     tmp_in_721=tmp_in_721 + 1; 
     }
    }
   if ( tmp_in_721 == 0 )
    {
    tmp_in_723 = MAGICNUMBER;
    tmp_in_724 = 1;
    tmp_in_725 = 0;
    for (tmp_in_726 = 0 ; tmp_in_726 < OrdersTotal() ; tmp_in_726=tmp_in_726 + 1)
     {
     if ( OrderSelect(tmp_in_726,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_724 && OrderMagicNumber() == tmp_in_723 && OrderSymbol() == Symbol() )
      {
      tmp_in_725=tmp_in_725 + 1; 
      }
     }
    if ( tmp_in_725 == 0 && local_in_4 == 2017 && local_in_3 == 10 && local_in_2 == 19 && Hour() == MT4_TIMEZONE_GMT + 21 && Minute() == 45 )
     {
   ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
    }}
   tmp_in_728 = MAGICNUMBER;
   tmp_in_730 = 1;
   tmp_in_731 = 0;
   for (tmp_in_732 = 0 ; tmp_in_732 < OrdersTotal() ; tmp_in_732=tmp_in_732 + 1)
    {
    if ( OrderSelect(tmp_in_732,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_730 && OrderMagicNumber() == tmp_in_728 && OrderSymbol() == Symbol() )
     {
     tmp_in_731=tmp_in_731 + 1; 
     }
    }
   if ( tmp_in_731 == 1 && local_in_4 == 2017 && local_in_3 == 10 && local_in_2 == 25 && Hour() == MT4_TIMEZONE_GMT + 20 && Minute() == 5 )
    {
    tmp_in_734 = MAGICNUMBER;
    tmp_in_735 = 1;
    tmp_in_736 = -1;
    tmp_in_737 = 0;
    for (tmp_in_739 = OrdersTotal() - 1 ; tmp_in_739 >= 0 ; tmp_in_739=tmp_in_739 - 1)
     {
     if(OrderSelect(tmp_in_739,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_735 && OrderMagicNumber() == tmp_in_734 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_737 < 10 ; tmp_in_737=tmp_in_737 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_736 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_736 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_735 == 4 ) )
       {
       tmp_in_736 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_735 == 5 ) )
       {
       tmp_in_736 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_736 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_743 = MAGICNUMBER;
   tmp_in_745 = 1;
   tmp_in_746 = 0;
   for (tmp_in_747 = 0 ; tmp_in_747 < OrdersTotal() ; tmp_in_747=tmp_in_747 + 1)
    {
    if ( OrderSelect(tmp_in_747,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_745 && OrderMagicNumber() == tmp_in_743 && OrderSymbol() == Symbol() )
     {
     tmp_in_746=tmp_in_746 + 1; 
     }
    }
   if ( tmp_in_746 == 1 && local_in_4 == 2017 && local_in_3 == 10 && local_in_2 == 30 && Hour() == MT4_TIMEZONE_GMT + 21 && Minute() == 5 )
    {
    tmp_in_749 = MAGICNUMBER;
    tmp_in_750 = 1;
    tmp_in_751 = -1;
    tmp_in_752 = 0;
    for (tmp_in_754 = OrdersTotal() - 1 ; tmp_in_754 >= 0 ; tmp_in_754=tmp_in_754 - 1)
     {
     if(OrderSelect(tmp_in_754,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_750 && OrderMagicNumber() == tmp_in_749 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_752 < 10 ; tmp_in_752=tmp_in_752 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_751 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_751 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_750 == 4 ) )
       {
       tmp_in_751 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_750 == 5 ) )
       {
       tmp_in_751 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_751 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_758 = MAGICNUMBER;
   tmp_in_760 = 1;
   tmp_in_761 = 0;
   for (tmp_in_762 = 0 ; tmp_in_762 < OrdersTotal() ; tmp_in_762=tmp_in_762 + 1)
    {
    if ( OrderSelect(tmp_in_762,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_760 && OrderMagicNumber() == tmp_in_758 && OrderSymbol() == Symbol() )
     {
     tmp_in_761=tmp_in_761 + 1; 
     }
    }
   if ( tmp_in_761 == 1 && local_in_4 == 2017 && local_in_3 == 11 && local_in_2 == 5 && Hour() == MT4_TIMEZONE_GMT + 23 && Minute() == 40 )
    {
    tmp_in_764 = MAGICNUMBER;
    tmp_in_765 = 1;
    tmp_in_766 = -1;
    tmp_in_767 = 0;
    for (tmp_in_769 = OrdersTotal() - 1 ; tmp_in_769 >= 0 ; tmp_in_769=tmp_in_769 - 1)
     {
     if(OrderSelect(tmp_in_769,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_765 && OrderMagicNumber() == tmp_in_764 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_767 < 10 ; tmp_in_767=tmp_in_767 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_766 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_766 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_765 == 4 ) )
       {
       tmp_in_766 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_765 == 5 ) )
       {
       tmp_in_766 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_766 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_773 = MAGICNUMBER;
   tmp_in_775 = 1;
   tmp_in_776 = 0;
   for (tmp_in_777 = 0 ; tmp_in_777 < OrdersTotal() ; tmp_in_777=tmp_in_777 + 1)
    {
    if ( OrderSelect(tmp_in_777,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_775 && OrderMagicNumber() == tmp_in_773 && OrderSymbol() == Symbol() )
     {
     tmp_in_776=tmp_in_776 + 1; 
     }
    }
   if ( tmp_in_776 == 1 && local_in_4 == 2017 && local_in_3 == 11 && local_in_2 == 7 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 10 )
    {
    tmp_in_779 = MAGICNUMBER;
    tmp_in_780 = 1;
    tmp_in_781 = -1;
    tmp_in_782 = 0;
    for (tmp_in_784 = OrdersTotal() - 1 ; tmp_in_784 >= 0 ; tmp_in_784=tmp_in_784 - 1)
     {
     if(OrderSelect(tmp_in_784,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_780 && OrderMagicNumber() == tmp_in_779 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_782 < 10 ; tmp_in_782=tmp_in_782 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_781 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_781 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_780 == 4 ) )
       {
       tmp_in_781 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_780 == 5 ) )
       {
       tmp_in_781 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_781 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_788 = MAGICNUMBER;
   tmp_in_790 = 1;
   tmp_in_791 = 0;
   for (tmp_in_792 = 0 ; tmp_in_792 < OrdersTotal() ; tmp_in_792=tmp_in_792 + 1)
    {
    if ( OrderSelect(tmp_in_792,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_790 && OrderMagicNumber() == tmp_in_788 && OrderSymbol() == Symbol() )
     {
     tmp_in_791=tmp_in_791 + 1; 
     }
    }
   if ( tmp_in_791 == 1 && local_in_4 == 2017 && local_in_3 == 11 && local_in_2 == 9 && Hour() == MT4_TIMEZONE_GMT + 23 && Minute() == 45 )
    {
    tmp_in_794 = MAGICNUMBER;
    tmp_in_795 = 1;
    tmp_in_796 = -1;
    tmp_in_797 = 0;
    for (tmp_in_799 = OrdersTotal() - 1 ; tmp_in_799 >= 0 ; tmp_in_799=tmp_in_799 - 1)
     {
     if(OrderSelect(tmp_in_799,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_795 && OrderMagicNumber() == tmp_in_794 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_797 < 10 ; tmp_in_797=tmp_in_797 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_796 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_796 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_795 == 4 ) )
       {
       tmp_in_796 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_795 == 5 ) )
       {
       tmp_in_796 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_796 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_803 = MAGICNUMBER;
   tmp_in_805 = 1;
   tmp_in_806 = 0;
   for (tmp_in_807 = 0 ; tmp_in_807 < OrdersTotal() ; tmp_in_807=tmp_in_807 + 1)
    {
    if ( OrderSelect(tmp_in_807,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_805 && OrderMagicNumber() == tmp_in_803 && OrderSymbol() == Symbol() )
     {
     tmp_in_806=tmp_in_806 + 1; 
     }
    }
   if ( tmp_in_806 == 1 && local_in_4 == 2017 && local_in_3 == 11 && local_in_2 == 13 && Hour() == MT4_TIMEZONE_GMT + 21 && Minute() == 50 )
    {
    tmp_in_809 = MAGICNUMBER;
    tmp_in_810 = 1;
    tmp_in_811 = -1;
    tmp_in_812 = 0;
    for (tmp_in_814 = OrdersTotal() - 1 ; tmp_in_814 >= 0 ; tmp_in_814=tmp_in_814 - 1)
     {
     if(OrderSelect(tmp_in_814,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_810 && OrderMagicNumber() == tmp_in_809 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_812 < 10 ; tmp_in_812=tmp_in_812 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_811 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_811 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_810 == 4 ) )
       {
       tmp_in_811 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_810 == 5 ) )
       {
       tmp_in_811 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_811 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_818 = MAGICNUMBER;
   tmp_in_820 = 1;
   tmp_in_821 = 0;
   for (tmp_in_822 = 0 ; tmp_in_822 < OrdersTotal() ; tmp_in_822=tmp_in_822 + 1)
    {
    if ( OrderSelect(tmp_in_822,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_820 && OrderMagicNumber() == tmp_in_818 && OrderSymbol() == Symbol() )
     {
     tmp_in_821=tmp_in_821 + 1; 
     }
    }
   if ( tmp_in_821 == 1 && local_in_4 == 2017 && local_in_3 == 11 && local_in_2 == 17 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 5 )
    {
    tmp_in_824 = MAGICNUMBER;
    tmp_in_825 = 1;
    tmp_in_826 = -1;
    tmp_in_827 = 0;
    for (tmp_in_829 = OrdersTotal() - 1 ; tmp_in_829 >= 0 ; tmp_in_829=tmp_in_829 - 1)
     {
     if(OrderSelect(tmp_in_829,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_825 && OrderMagicNumber() == tmp_in_824 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_827 < 10 ; tmp_in_827=tmp_in_827 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_826 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_826 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_825 == 4 ) )
       {
       tmp_in_826 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_825 == 5 ) )
       {
       tmp_in_826 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_826 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_833 = MAGICNUMBER;
   tmp_in_835 = 0;
   tmp_in_836 = 0;
   for (tmp_in_837 = 0 ; tmp_in_837 < OrdersTotal() ; tmp_in_837=tmp_in_837 + 1)
    {
    if ( OrderSelect(tmp_in_837,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_835 && OrderMagicNumber() == tmp_in_833 && OrderSymbol() == Symbol() )
     {
     tmp_in_836=tmp_in_836 + 1; 
     }
    }
   if ( tmp_in_836 == 1 && local_in_4 == 2017 && local_in_3 == 11 && local_in_2 == 20 && Hour() == MT4_TIMEZONE_GMT + 2 && Minute() == 5 )
    {
    tmp_in_839 = MAGICNUMBER;
    tmp_in_840 = 0;
    tmp_in_841 = -1;
    tmp_in_842 = 0;
    for (tmp_in_844 = OrdersTotal() - 1 ; tmp_in_844 >= 0 ; tmp_in_844=tmp_in_844 - 1)
     {
     if(OrderSelect(tmp_in_844,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_840 && OrderMagicNumber() == tmp_in_839 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_842 < 10 ; tmp_in_842=tmp_in_842 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_841 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_841 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_840 == 4 ) )
       {
       tmp_in_841 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_840 == 5 ) )
       {
       tmp_in_841 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_841 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_848 = MAGICNUMBER;
   tmp_in_850 = 0;
   tmp_in_851 = 0;
   for (tmp_in_852 = 0 ; tmp_in_852 < OrdersTotal() ; tmp_in_852=tmp_in_852 + 1)
    {
    if ( OrderSelect(tmp_in_852,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_850 && OrderMagicNumber() == tmp_in_848 && OrderSymbol() == Symbol() )
     {
     tmp_in_851=tmp_in_851 + 1; 
     }
    }
   if ( tmp_in_851 == 1 && local_in_4 == 2017 && local_in_3 == 11 && local_in_2 == 21 && Hour() == MT4_TIMEZONE_GMT + 20 && Minute() == 30 )
    {
    tmp_in_854 = MAGICNUMBER;
    tmp_in_855 = 0;
    tmp_in_856 = -1;
    tmp_in_857 = 0;
    for (tmp_in_859 = OrdersTotal() - 1 ; tmp_in_859 >= 0 ; tmp_in_859=tmp_in_859 - 1)
     {
     if(OrderSelect(tmp_in_859,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_855 && OrderMagicNumber() == tmp_in_854 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_857 < 10 ; tmp_in_857=tmp_in_857 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_856 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_856 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_855 == 4 ) )
       {
       tmp_in_856 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_855 == 5 ) )
       {
       tmp_in_856 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_856 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_863 = MAGICNUMBER;
   tmp_in_865 = 1;
   tmp_in_866 = 0;
   for (tmp_in_867 = 0 ; tmp_in_867 < OrdersTotal() ; tmp_in_867=tmp_in_867 + 1)
    {
    if ( OrderSelect(tmp_in_867,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_865 && OrderMagicNumber() == tmp_in_863 && OrderSymbol() == Symbol() )
     {
     tmp_in_866=tmp_in_866 + 1; 
     }
    }
   if ( tmp_in_866 == 1 && local_in_4 == 2017 && local_in_3 == 11 && local_in_2 == 30 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 0 )
    {
    tmp_in_869 = MAGICNUMBER;
    tmp_in_870 = 1;
    tmp_in_871 = -1;
    tmp_in_872 = 0;
    for (tmp_in_874 = OrdersTotal() - 1 ; tmp_in_874 >= 0 ; tmp_in_874=tmp_in_874 - 1)
     {
     if(OrderSelect(tmp_in_874,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_870 && OrderMagicNumber() == tmp_in_869 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_872 < 10 ; tmp_in_872=tmp_in_872 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_871 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_871 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_870 == 4 ) )
       {
       tmp_in_871 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_870 == 5 ) )
       {
       tmp_in_871 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_871 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_878 = MAGICNUMBER;
   tmp_in_880 = 1;
   tmp_in_881 = 0;
   for (tmp_in_882 = 0 ; tmp_in_882 < OrdersTotal() ; tmp_in_882=tmp_in_882 + 1)
    {
    if ( OrderSelect(tmp_in_882,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_880 && OrderMagicNumber() == tmp_in_878 && OrderSymbol() == Symbol() )
     {
     tmp_in_881=tmp_in_881 + 1; 
     }
    }
   if ( tmp_in_881 == 1 && local_in_4 == 2017 && local_in_3 == 12 && local_in_2 == 4 && Hour() == MT4_TIMEZONE_GMT && Minute() == 15 )
    {
    tmp_in_883 = MAGICNUMBER;
    tmp_in_884 = 1;
    tmp_in_885 = -1;
    tmp_in_886 = 0;
    for (tmp_in_888 = OrdersTotal() - 1 ; tmp_in_888 >= 0 ; tmp_in_888=tmp_in_888 - 1)
     {
     if(OrderSelect(tmp_in_888,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_884 && OrderMagicNumber() == tmp_in_883 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_886 < 10 ; tmp_in_886=tmp_in_886 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_885 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_885 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_884 == 4 ) )
       {
       tmp_in_885 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_884 == 5 ) )
       {
       tmp_in_885 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_885 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_892 = MAGICNUMBER;
   tmp_in_894 = 1;
   tmp_in_895 = 0;
   for (tmp_in_896 = 0 ; tmp_in_896 < OrdersTotal() ; tmp_in_896=tmp_in_896 + 1)
    {
    if ( OrderSelect(tmp_in_896,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_894 && OrderMagicNumber() == tmp_in_892 && OrderSymbol() == Symbol() )
     {
     tmp_in_895=tmp_in_895 + 1; 
     }
    }
   if ( tmp_in_895 == 1 && local_in_4 == 2017 && local_in_3 == 12 && local_in_2 == 5 && Hour() == MT4_TIMEZONE_GMT + 2 && Minute() == 10 )
    {
    tmp_in_898 = MAGICNUMBER;
    tmp_in_899 = 1;
    tmp_in_900 = -1;
    tmp_in_901 = 0;
    for (tmp_in_903 = OrdersTotal() - 1 ; tmp_in_903 >= 0 ; tmp_in_903=tmp_in_903 - 1)
     {
     if(OrderSelect(tmp_in_903,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_899 && OrderMagicNumber() == tmp_in_898 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_901 < 10 ; tmp_in_901=tmp_in_901 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_900 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_900 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_899 == 4 ) )
       {
       tmp_in_900 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_899 == 5 ) )
       {
       tmp_in_900 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_900 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_907 = MAGICNUMBER;
   tmp_in_909 = 1;
   tmp_in_910 = 0;
   for (tmp_in_911 = 0 ; tmp_in_911 < OrdersTotal() ; tmp_in_911=tmp_in_911 + 1)
    {
    if ( OrderSelect(tmp_in_911,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_909 && OrderMagicNumber() == tmp_in_907 && OrderSymbol() == Symbol() )
     {
     tmp_in_910=tmp_in_910 + 1; 
     }
    }
   if ( tmp_in_910 == 1 && local_in_4 == 2017 && local_in_3 == 12 && local_in_2 == 5 && Hour() == MT4_TIMEZONE_GMT + 22 && Minute() == 5 )
    {
    tmp_in_913 = MAGICNUMBER;
    tmp_in_914 = 1;
    tmp_in_915 = -1;
    tmp_in_916 = 0;
    for (tmp_in_918 = OrdersTotal() - 1 ; tmp_in_918 >= 0 ; tmp_in_918=tmp_in_918 - 1)
     {
     if(OrderSelect(tmp_in_918,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_914 && OrderMagicNumber() == tmp_in_913 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_916 < 10 ; tmp_in_916=tmp_in_916 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_915 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_915 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_914 == 4 ) )
       {
       tmp_in_915 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_914 == 5 ) )
       {
       tmp_in_915 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_915 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_922 = MAGICNUMBER;
   tmp_in_924 = 0;
   tmp_in_925 = 0;
   for (tmp_in_926 = 0 ; tmp_in_926 < OrdersTotal() ; tmp_in_926=tmp_in_926 + 1)
    {
    if ( OrderSelect(tmp_in_926,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_924 && OrderMagicNumber() == tmp_in_922 && OrderSymbol() == Symbol() )
     {
     tmp_in_925=tmp_in_925 + 1; 
     }
    }
   if ( tmp_in_925 == 1 && local_in_4 == 2017 && local_in_3 == 12 && local_in_2 == 11 && Hour() == MT4_TIMEZONE_GMT + 23 && Minute() == 20 )
    {
    tmp_in_928 = MAGICNUMBER;
    tmp_in_929 = 0;
    tmp_in_930 = -1;
    tmp_in_931 = 0;
    for (tmp_in_933 = OrdersTotal() - 1 ; tmp_in_933 >= 0 ; tmp_in_933=tmp_in_933 - 1)
     {
     if(OrderSelect(tmp_in_933,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_929 && OrderMagicNumber() == tmp_in_928 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_931 < 10 ; tmp_in_931=tmp_in_931 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_930 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_930 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_929 == 4 ) )
       {
       tmp_in_930 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_929 == 5 ) )
       {
       tmp_in_930 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_930 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_937 = MAGICNUMBER;
   tmp_in_939 = 0;
   tmp_in_940 = 0;
   for (tmp_in_941 = 0 ; tmp_in_941 < OrdersTotal() ; tmp_in_941=tmp_in_941 + 1)
    {
    if ( OrderSelect(tmp_in_941,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_939 && OrderMagicNumber() == tmp_in_937 && OrderSymbol() == Symbol() )
     {
     tmp_in_940=tmp_in_940 + 1; 
     }
    }
   if ( tmp_in_940 == 0 )
    {
    tmp_in_942 = MAGICNUMBER;
    tmp_in_943 = 1;
    tmp_in_944 = 0;
    for (tmp_in_945 = 0 ; tmp_in_945 < OrdersTotal() ; tmp_in_945=tmp_in_945 + 1)
     {
     if ( OrderSelect(tmp_in_945,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_943 && OrderMagicNumber() == tmp_in_942 && OrderSymbol() == Symbol() )
      {
      tmp_in_944=tmp_in_944 + 1; 
      }
     }
    if ( tmp_in_944 == 0 && local_in_4 == 2017 && local_in_3 == 12 && local_in_2 == 13 && Hour() == MT4_TIMEZONE_GMT + 21 && Minute() == 20 )
     {
   ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
    }}
   tmp_in_947 = MAGICNUMBER;
   tmp_in_949 = 0;
   tmp_in_950 = 0;
   for (tmp_in_951 = 0 ; tmp_in_951 < OrdersTotal() ; tmp_in_951=tmp_in_951 + 1)
    {
    if ( OrderSelect(tmp_in_951,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_949 && OrderMagicNumber() == tmp_in_947 && OrderSymbol() == Symbol() )
     {
     tmp_in_950=tmp_in_950 + 1; 
     }
    }
   if ( tmp_in_950 == 0 )
    {
    tmp_in_952 = MAGICNUMBER;
    tmp_in_953 = 1;
    tmp_in_954 = 0;
    for (tmp_in_955 = 0 ; tmp_in_955 < OrdersTotal() ; tmp_in_955=tmp_in_955 + 1)
     {
     if ( OrderSelect(tmp_in_955,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_953 && OrderMagicNumber() == tmp_in_952 && OrderSymbol() == Symbol() )
      {
      tmp_in_954=tmp_in_954 + 1; 
      }
     }
    if ( tmp_in_954 == 0 && local_in_4 == 2017 && local_in_3 == 12 && local_in_2 == 13 && Hour() == MT4_TIMEZONE_GMT + 23 && Minute() == 20 )
     {
   ans = OrderSend(Symbol(),OP_SELL,local_do_7,Bid,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Red); 
    }}
   tmp_in_957 = MAGICNUMBER;
   tmp_in_959 = 0;
   tmp_in_960 = 0;
   for (tmp_in_961 = 0 ; tmp_in_961 < OrdersTotal() ; tmp_in_961=tmp_in_961 + 1)
    {
    if ( OrderSelect(tmp_in_961,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_959 && OrderMagicNumber() == tmp_in_957 && OrderSymbol() == Symbol() )
     {
     tmp_in_960=tmp_in_960 + 1; 
     }
    }
   if ( tmp_in_960 == 1 && local_in_4 == 2017 && local_in_3 == 12 && local_in_2 == 7 && Hour() == MT4_TIMEZONE_GMT + 2 && Minute() == 5 )
    {
    tmp_in_963 = MAGICNUMBER;
    tmp_in_964 = 0;
    tmp_in_965 = -1;
    tmp_in_966 = 0;
    for (tmp_in_968 = OrdersTotal() - 1 ; tmp_in_968 >= 0 ; tmp_in_968=tmp_in_968 - 1)
     {
     if(OrderSelect(tmp_in_968,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_964 && OrderMagicNumber() == tmp_in_963 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_966 < 10 ; tmp_in_966=tmp_in_966 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_965 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_965 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_964 == 4 ) )
       {
       tmp_in_965 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_964 == 5 ) )
       {
       tmp_in_965 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_965 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_972 = MAGICNUMBER;
   tmp_in_974 = 0;
   tmp_in_975 = 0;
   for (tmp_in_976 = 0 ; tmp_in_976 < OrdersTotal() ; tmp_in_976=tmp_in_976 + 1)
    {
    if ( OrderSelect(tmp_in_976,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_974 && OrderMagicNumber() == tmp_in_972 && OrderSymbol() == Symbol() )
     {
     tmp_in_975=tmp_in_975 + 1; 
     }
    }
   if ( tmp_in_975 == 1 && local_in_4 == 2017 && local_in_3 == 12 && local_in_2 == 18 && Hour() == MT4_TIMEZONE_GMT + 20 && Minute() == 10 )
    {
    tmp_in_978 = MAGICNUMBER;
    tmp_in_979 = 0;
    tmp_in_980 = -1;
    tmp_in_981 = 0;
    for (tmp_in_983 = OrdersTotal() - 1 ; tmp_in_983 >= 0 ; tmp_in_983=tmp_in_983 - 1)
     {
     if(OrderSelect(tmp_in_983,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_979 && OrderMagicNumber() == tmp_in_978 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_981 < 10 ; tmp_in_981=tmp_in_981 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_980 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_980 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_979 == 4 ) )
       {
       tmp_in_980 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_979 == 5 ) )
       {
       tmp_in_980 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_980 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_987 = MAGICNUMBER;
   tmp_in_989 = 0;
   tmp_in_990 = 0;
   for (tmp_in_991 = 0 ; tmp_in_991 < OrdersTotal() ; tmp_in_991=tmp_in_991 + 1)
    {
    if ( OrderSelect(tmp_in_991,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_989 && OrderMagicNumber() == tmp_in_987 && OrderSymbol() == Symbol() )
     {
     tmp_in_990=tmp_in_990 + 1; 
     }
    }
   if ( tmp_in_990 == 1 && local_in_4 == 2017 && local_in_3 == 12 && local_in_2 == 20 && Hour() == MT4_TIMEZONE_GMT && Minute() == 45 )
    {
    tmp_in_992 = MAGICNUMBER;
    tmp_in_993 = 0;
    tmp_in_994 = -1;
    tmp_in_995 = 0;
    for (tmp_in_997 = OrdersTotal() - 1 ; tmp_in_997 >= 0 ; tmp_in_997=tmp_in_997 - 1)
     {
     if(OrderSelect(tmp_in_997,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_993 && OrderMagicNumber() == tmp_in_992 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_995 < 10 ; tmp_in_995=tmp_in_995 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_994 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_994 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_993 == 4 ) )
       {
       tmp_in_994 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_993 == 5 ) )
       {
       tmp_in_994 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_994 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_1001 = MAGICNUMBER;
   tmp_in_1003 = 0;
   tmp_in_1004 = 0;
   for (tmp_in_1005 = 0 ; tmp_in_1005 < OrdersTotal() ; tmp_in_1005=tmp_in_1005 + 1)
    {
    if ( OrderSelect(tmp_in_1005,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1003 && OrderMagicNumber() == tmp_in_1001 && OrderSymbol() == Symbol() )
     {
     tmp_in_1004=tmp_in_1004 + 1; 
     }
    }
   if ( tmp_in_1004 == 1 && local_in_4 == 2017 && local_in_3 == 12 && local_in_2 == 22 && Hour() == MT4_TIMEZONE_GMT && Minute() == 10 )
    {
    tmp_in_1006 = MAGICNUMBER;
    tmp_in_1007 = 0;
    tmp_in_1008 = -1;
    tmp_in_1009 = 0;
    for (tmp_in_1011 = OrdersTotal() - 1 ; tmp_in_1011 >= 0 ; tmp_in_1011=tmp_in_1011 - 1)
     {
     if(OrderSelect(tmp_in_1011,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1007 && OrderMagicNumber() == tmp_in_1006 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_1009 < 10 ; tmp_in_1009=tmp_in_1009 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_1008 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_1008 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_1007 == 4 ) )
       {
       tmp_in_1008 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_1007 == 5 ) )
       {
       tmp_in_1008 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_1008 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_1015 = MAGICNUMBER;
   tmp_in_1017 = 0;
   tmp_in_1018 = 0;
   for (tmp_in_1019 = 0 ; tmp_in_1019 < OrdersTotal() ; tmp_in_1019=tmp_in_1019 + 1)
    {
    if ( OrderSelect(tmp_in_1019,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1017 && OrderMagicNumber() == tmp_in_1015 && OrderSymbol() == Symbol() )
     {
     tmp_in_1018=tmp_in_1018 + 1; 
     }
    }
   if ( tmp_in_1018 == 1 && local_in_4 == 2017 && local_in_3 == 12 && local_in_2 == 26 && Hour() == MT4_TIMEZONE_GMT + 20 && Minute() == 50 )
    {
    tmp_in_1021 = MAGICNUMBER;
    tmp_in_1022 = 0;
    tmp_in_1023 = -1;
    tmp_in_1024 = 0;
    for (tmp_in_1026 = OrdersTotal() - 1 ; tmp_in_1026 >= 0 ; tmp_in_1026=tmp_in_1026 - 1)
     {
     if(OrderSelect(tmp_in_1026,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1022 && OrderMagicNumber() == tmp_in_1021 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_1024 < 10 ; tmp_in_1024=tmp_in_1024 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_1023 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_1023 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_1022 == 4 ) )
       {
       tmp_in_1023 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_1022 == 5 ) )
       {
       tmp_in_1023 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_1023 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_1030 = MAGICNUMBER;
   tmp_in_1032 = 1;
   tmp_in_1033 = 0;
   for (tmp_in_1034 = 0 ; tmp_in_1034 < OrdersTotal() ; tmp_in_1034=tmp_in_1034 + 1)
    {
    if ( OrderSelect(tmp_in_1034,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1032 && OrderMagicNumber() == tmp_in_1030 && OrderSymbol() == Symbol() )
     {
     tmp_in_1033=tmp_in_1033 + 1; 
     }
    }
   if ( tmp_in_1033 == 1 && local_in_4 == 2017 && local_in_3 == 12 && local_in_2 == 26 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 0 )
    {
    tmp_in_1036 = MAGICNUMBER;
    tmp_in_1037 = 1;
    tmp_in_1038 = -1;
    tmp_in_1039 = 0;
    for (tmp_in_1041 = OrdersTotal() - 1 ; tmp_in_1041 >= 0 ; tmp_in_1041=tmp_in_1041 - 1)
     {
     if(OrderSelect(tmp_in_1041,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1037 && OrderMagicNumber() == tmp_in_1036 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_1039 < 10 ; tmp_in_1039=tmp_in_1039 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_1038 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_1038 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_1037 == 4 ) )
       {
       tmp_in_1038 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_1037 == 5 ) )
       {
       tmp_in_1038 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_1038 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_1045 = MAGICNUMBER;
   tmp_in_1047 = 0;
   tmp_in_1048 = 0;
   for (tmp_in_1049 = 0 ; tmp_in_1049 < OrdersTotal() ; tmp_in_1049=tmp_in_1049 + 1)
    {
    if ( OrderSelect(tmp_in_1049,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1047 && OrderMagicNumber() == tmp_in_1045 && OrderSymbol() == Symbol() )
     {
     tmp_in_1048=tmp_in_1048 + 1; 
     }
    }
   if ( tmp_in_1048 == 1 && local_in_4 == 2017 && local_in_3 == 12 && local_in_2 == 29 && Hour() == MT4_TIMEZONE_GMT + 20 && Minute() == 0 )
    {
    tmp_in_1051 = MAGICNUMBER;
    tmp_in_1052 = 0;
    tmp_in_1053 = -1;
    tmp_in_1054 = 0;
    for (tmp_in_1056 = OrdersTotal() - 1 ; tmp_in_1056 >= 0 ; tmp_in_1056=tmp_in_1056 - 1)
     {
     if(OrderSelect(tmp_in_1056,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1052 && OrderMagicNumber() == tmp_in_1051 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_1054 < 10 ; tmp_in_1054=tmp_in_1054 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_1053 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_1053 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_1052 == 4 ) )
       {
       tmp_in_1053 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_1052 == 5 ) )
       {
       tmp_in_1053 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_1053 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_1060 = MAGICNUMBER;
   tmp_in_1062 = 0;
   tmp_in_1063 = 0;
   for (tmp_in_1064 = 0 ; tmp_in_1064 < OrdersTotal() ; tmp_in_1064=tmp_in_1064 + 1)
    {
    if ( OrderSelect(tmp_in_1064,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1062 && OrderMagicNumber() == tmp_in_1060 && OrderSymbol() == Symbol() )
     {
     tmp_in_1063=tmp_in_1063 + 1; 
     }
    }
   if ( tmp_in_1063 == 0 )
    {
    tmp_in_1065 = MAGICNUMBER;
    tmp_in_1066 = 1;
    tmp_in_1067 = 0;
    for (tmp_in_1068 = 0 ; tmp_in_1068 < OrdersTotal() ; tmp_in_1068=tmp_in_1068 + 1)
     {
     if ( OrderSelect(tmp_in_1068,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1066 && OrderMagicNumber() == tmp_in_1065 && OrderSymbol() == Symbol() )
      {
      tmp_in_1067=tmp_in_1067 + 1; 
      }
     }
    if ( tmp_in_1067 == 0 && local_in_4 == 2017 && local_in_3 == 12 && local_in_2 == 29 && Hour() == MT4_TIMEZONE_GMT + 20 && Minute() == 5 )
     {
   ans = OrderSend(Symbol(),OP_SELL,local_do_7,Bid,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Red); 
    }}

   tmp_in_1070 = MAGICNUMBER;
   tmp_in_1072 = 0;
   tmp_in_1073 = 0;
   for (tmp_in_1074 = 0 ; tmp_in_1074 < OrdersTotal() ; tmp_in_1074=tmp_in_1074 + 1)
    {
    if ( OrderSelect(tmp_in_1074,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1072 && OrderMagicNumber() == tmp_in_1070 && OrderSymbol() == Symbol() )
     {
     tmp_in_1073=tmp_in_1073 + 1; 
     }
    }
   if ( tmp_in_1073 == 1 && local_in_4 == 2019 && local_in_3 == 1 && local_in_2 == 3 && Hour() == MT4_TIMEZONE_GMT + 2 && Minute() == 0 )
    {
    tmp_in_1076 = MAGICNUMBER;
    tmp_in_1077 = 0;
    tmp_in_1078 = -1;
    tmp_in_1079 = 0;
    for (tmp_in_1081 = OrdersTotal() - 1 ; tmp_in_1081 >= 0 ; tmp_in_1081=tmp_in_1081 - 1)
     {
     if(OrderSelect(tmp_in_1081,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1077 && OrderMagicNumber() == tmp_in_1076 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_1079 < 10 ; tmp_in_1079=tmp_in_1079 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_1078 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_1078 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_1077 == 4 ) )
       {
       tmp_in_1078 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_1077 == 5 ) )
       {
       tmp_in_1078 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_1078 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_1085 = MAGICNUMBER;
   tmp_in_1087 = 1;
   tmp_in_1088 = 0;
   for (tmp_in_1089 = 0 ; tmp_in_1089 < OrdersTotal() ; tmp_in_1089=tmp_in_1089 + 1)
    {
    if ( OrderSelect(tmp_in_1089,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1087 && OrderMagicNumber() == tmp_in_1085 && OrderSymbol() == Symbol() )
     {
     tmp_in_1088=tmp_in_1088 + 1; 
     }
    }
   if ( tmp_in_1088 == 1 && local_in_4 == 2019 && local_in_3 == 1 && local_in_2 == 4 && Hour() == MT4_TIMEZONE_GMT + 2 && Minute() == 5 )
    {
    tmp_in_1091 = MAGICNUMBER;
    tmp_in_1092 = 1;
    tmp_in_1093 = -1;
    tmp_in_1094 = 0;
    for (tmp_in_1096 = OrdersTotal() - 1 ; tmp_in_1096 >= 0 ; tmp_in_1096=tmp_in_1096 - 1)
     {
     if(OrderSelect(tmp_in_1096,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1092 && OrderMagicNumber() == tmp_in_1091 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_1094 < 10 ; tmp_in_1094=tmp_in_1094 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_1093 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_1093 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_1092 == 4 ) )
       {
       tmp_in_1093 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_1092 == 5 ) )
       {
       tmp_in_1093 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_1093 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_1100 = MAGICNUMBER;
   tmp_in_1102 = 0;
   tmp_in_1103 = 0;
   for (tmp_in_1104 = 0 ; tmp_in_1104 < OrdersTotal() ; tmp_in_1104=tmp_in_1104 + 1)
    {
    if ( OrderSelect(tmp_in_1104,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1102 && OrderMagicNumber() == tmp_in_1100 && OrderSymbol() == Symbol() )
     {
     tmp_in_1103=tmp_in_1103 + 1; 
     }
    }
   if ( tmp_in_1103 == 0 )
    {
    tmp_in_1105 = MAGICNUMBER;
    tmp_in_1106 = 1;
    tmp_in_1107 = 0;
    for (tmp_in_1108 = 0 ; tmp_in_1108 < OrdersTotal() ; tmp_in_1108=tmp_in_1108 + 1)
     {
     if ( OrderSelect(tmp_in_1108,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1106 && OrderMagicNumber() == tmp_in_1105 && OrderSymbol() == Symbol() )
      {
      tmp_in_1107=tmp_in_1107 + 1; 
      }
     }
    if ( tmp_in_1107 == 0 && local_in_4 == 2019 && local_in_3 == 1 && local_in_2 == 5 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 0 )
     {
   ans = OrderSend(Symbol(),OP_SELL,local_do_7,Bid,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Red); 
    }}
   tmp_in_1110 = MAGICNUMBER;
   tmp_in_1112 = 1;
   tmp_in_1113 = 0;
   for (tmp_in_1114 = 0 ; tmp_in_1114 < OrdersTotal() ; tmp_in_1114=tmp_in_1114 + 1)
    {
    if ( OrderSelect(tmp_in_1114,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1112 && OrderMagicNumber() == tmp_in_1110 && OrderSymbol() == Symbol() )
     {
     tmp_in_1113=tmp_in_1113 + 1; 
     }
    }
   if ( tmp_in_1113 == 1 && local_in_4 == 2019 && local_in_3 == 1 && local_in_2 == 7 && Hour() == MT4_TIMEZONE_GMT + 23 && Minute() == 40 )
    {
    tmp_in_1116 = MAGICNUMBER;
    tmp_in_1117 = 1;
    tmp_in_1118 = -1;
    tmp_in_1119 = 0;
    for (tmp_in_1121 = OrdersTotal() - 1 ; tmp_in_1121 >= 0 ; tmp_in_1121=tmp_in_1121 - 1)
     {
     if(OrderSelect(tmp_in_1121,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1117 && OrderMagicNumber() == tmp_in_1116 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_1119 < 10 ; tmp_in_1119=tmp_in_1119 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_1118 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_1118 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_1117 == 4 ) )
       {
       tmp_in_1118 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_1117 == 5 ) )
       {
       tmp_in_1118 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_1118 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_1125 = MAGICNUMBER;
   tmp_in_1127 = 1;
   tmp_in_1128 = 0;
   for (tmp_in_1129 = 0 ; tmp_in_1129 < OrdersTotal() ; tmp_in_1129=tmp_in_1129 + 1)
    {
    if ( OrderSelect(tmp_in_1129,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1127 && OrderMagicNumber() == tmp_in_1125 && OrderSymbol() == Symbol() )
     {
     tmp_in_1128=tmp_in_1128 + 1; 
     }
    }
   if ( tmp_in_1128 == 1 && local_in_4 == 2019 && local_in_3 == 1 && local_in_2 == 9 && Hour() == MT4_TIMEZONE_GMT + 23 && Minute() == 55 )
    {
    tmp_in_1131 = MAGICNUMBER;
    tmp_in_1132 = 1;
    tmp_in_1133 = -1;
    tmp_in_1134 = 0;
    for (tmp_in_1136 = OrdersTotal() - 1 ; tmp_in_1136 >= 0 ; tmp_in_1136=tmp_in_1136 - 1)
     {
     if(OrderSelect(tmp_in_1136,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1132 && OrderMagicNumber() == tmp_in_1131 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_1134 < 10 ; tmp_in_1134=tmp_in_1134 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_1133 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_1133 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_1132 == 4 ) )
       {
       tmp_in_1133 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_1132 == 5 ) )
       {
       tmp_in_1133 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_1133 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_1140 = MAGICNUMBER;
   tmp_in_1142 = 0;
   tmp_in_1143 = 0;
   for (tmp_in_1144 = 0 ; tmp_in_1144 < OrdersTotal() ; tmp_in_1144=tmp_in_1144 + 1)
    {
    if ( OrderSelect(tmp_in_1144,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1142 && OrderMagicNumber() == tmp_in_1140 && OrderSymbol() == Symbol() )
     {
     tmp_in_1143=tmp_in_1143 + 1; 
     }
    }
   if ( tmp_in_1143 == 1 && local_in_4 == 2019 && local_in_3 == 1 && local_in_2 == 10 && Hour() == MT4_TIMEZONE_GMT + 19 && Minute() == 35 )
    {
    tmp_in_1146 = MAGICNUMBER;
    tmp_in_1147 = 0;
    tmp_in_1148 = -1;
    tmp_in_1149 = 0;
    for (tmp_in_1151 = OrdersTotal() - 1 ; tmp_in_1151 >= 0 ; tmp_in_1151=tmp_in_1151 - 1)
     {
     if(OrderSelect(tmp_in_1151,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1147 && OrderMagicNumber() == tmp_in_1146 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_1149 < 10 ; tmp_in_1149=tmp_in_1149 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_1148 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_1148 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_1147 == 4 ) )
       {
       tmp_in_1148 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_1147 == 5 ) )
       {
       tmp_in_1148 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_1148 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_1155 = MAGICNUMBER;
   tmp_in_1157 = 1;
   tmp_in_1158 = 0;
   for (tmp_in_1159 = 0 ; tmp_in_1159 < OrdersTotal() ; tmp_in_1159=tmp_in_1159 + 1)
    {
    if ( OrderSelect(tmp_in_1159,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1157 && OrderMagicNumber() == tmp_in_1155 && OrderSymbol() == Symbol() )
     {
     tmp_in_1158=tmp_in_1158 + 1; 
     }
    }
   if ( tmp_in_1158 == 1 && local_in_4 == 2019 && local_in_3 == 1 && local_in_2 == 11 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 35 )
    {
    tmp_in_1161 = MAGICNUMBER;
    tmp_in_1162 = 1;
    tmp_in_1163 = -1;
    tmp_in_1164 = 0;
    for (tmp_in_1166 = OrdersTotal() - 1 ; tmp_in_1166 >= 0 ; tmp_in_1166=tmp_in_1166 - 1)
     {
     if(OrderSelect(tmp_in_1166,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1162 && OrderMagicNumber() == tmp_in_1161 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_1164 < 10 ; tmp_in_1164=tmp_in_1164 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_1163 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_1163 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_1162 == 4 ) )
       {
       tmp_in_1163 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_1162 == 5 ) )
       {
       tmp_in_1163 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_1163 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_1170 = MAGICNUMBER;
   tmp_in_1172 = 1;
   tmp_in_1173 = 0;
   for (tmp_in_1174 = 0 ; tmp_in_1174 < OrdersTotal() ; tmp_in_1174=tmp_in_1174 + 1)
    {
    if ( OrderSelect(tmp_in_1174,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1172 && OrderMagicNumber() == tmp_in_1170 && OrderSymbol() == Symbol() )
     {
     tmp_in_1173=tmp_in_1173 + 1; 
     }
    }
   if ( tmp_in_1173 == 1 && local_in_4 == 2019 && local_in_3 == 1 && local_in_2 == 10 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 15 )
    {
    tmp_in_1176 = MAGICNUMBER;
    tmp_in_1177 = 1;
    tmp_in_1178 = -1;
    tmp_in_1179 = 0;
    for (tmp_in_1181 = OrdersTotal() - 1 ; tmp_in_1181 >= 0 ; tmp_in_1181=tmp_in_1181 - 1)
     {
     if(OrderSelect(tmp_in_1181,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1177 && OrderMagicNumber() == tmp_in_1176 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_1179 < 10 ; tmp_in_1179=tmp_in_1179 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_1178 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_1178 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_1177 == 4 ) )
       {
       tmp_in_1178 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_1177 == 5 ) )
       {
       tmp_in_1178 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_1178 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_1185 = MAGICNUMBER;
   tmp_in_1187 = 1;
   tmp_in_1188 = 0;
   for (tmp_in_1189 = 0 ; tmp_in_1189 < OrdersTotal() ; tmp_in_1189=tmp_in_1189 + 1)
    {
    if ( OrderSelect(tmp_in_1189,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1187 && OrderMagicNumber() == tmp_in_1185 && OrderSymbol() == Symbol() )
     {
     tmp_in_1188=tmp_in_1188 + 1; 
     }
    }
   if ( tmp_in_1188 == 1 && local_in_4 == 2019 && local_in_3 == 1 && local_in_2 == 12 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 5 )
    {
    tmp_in_1191 = MAGICNUMBER;
    tmp_in_1192 = 1;
    tmp_in_1193 = -1;
    tmp_in_1194 = 0;
    for (tmp_in_1196 = OrdersTotal() - 1 ; tmp_in_1196 >= 0 ; tmp_in_1196=tmp_in_1196 - 1)
     {
     if(OrderSelect(tmp_in_1196,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1192 && OrderMagicNumber() == tmp_in_1191 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_1194 < 10 ; tmp_in_1194=tmp_in_1194 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_1193 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_1193 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_1192 == 4 ) )
       {
       tmp_in_1193 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_1192 == 5 ) )
       {
       tmp_in_1193 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_1193 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_1200 = MAGICNUMBER;
   tmp_in_1202 = 1;
   tmp_in_1203 = 0;
   for (tmp_in_1204 = 0 ; tmp_in_1204 < OrdersTotal() ; tmp_in_1204=tmp_in_1204 + 1)
    {
    if ( OrderSelect(tmp_in_1204,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1202 && OrderMagicNumber() == tmp_in_1200 && OrderSymbol() == Symbol() )
     {
     tmp_in_1203=tmp_in_1203 + 1; 
     }
    }
   if ( tmp_in_1203 == 1 && local_in_4 == 2019 && local_in_3 == 1 && local_in_2 == 12 && Hour() == MT4_TIMEZONE_GMT + 20 && Minute() == 30 )
    {
    tmp_in_1206 = MAGICNUMBER;
    tmp_in_1207 = 1;
    tmp_in_1208 = -1;
    tmp_in_1209 = 0;
    for (tmp_in_1211 = OrdersTotal() - 1 ; tmp_in_1211 >= 0 ; tmp_in_1211=tmp_in_1211 - 1)
     {
     if(OrderSelect(tmp_in_1211,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1207 && OrderMagicNumber() == tmp_in_1206 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_1209 < 10 ; tmp_in_1209=tmp_in_1209 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_1208 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_1208 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_1207 == 4 ) )
       {
       tmp_in_1208 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_1207 == 5 ) )
       {
       tmp_in_1208 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_1208 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_1215 = MAGICNUMBER;
   tmp_in_1217 = 1;
   tmp_in_1218 = 0;
   for (tmp_in_1219 = 0 ; tmp_in_1219 < OrdersTotal() ; tmp_in_1219=tmp_in_1219 + 1)
    {
    if ( OrderSelect(tmp_in_1219,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1217 && OrderMagicNumber() == tmp_in_1215 && OrderSymbol() == Symbol() )
     {
     tmp_in_1218=tmp_in_1218 + 1; 
     }
    }
   if ( tmp_in_1218 == 1 && local_in_4 == 2019 && local_in_3 == 1 && local_in_2 == 17 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 30 )
    {
    tmp_in_1221 = MAGICNUMBER;
    tmp_in_1222 = 1;
    tmp_in_1223 = -1;
    tmp_in_1224 = 0;
    for (tmp_in_1226 = OrdersTotal() - 1 ; tmp_in_1226 >= 0 ; tmp_in_1226=tmp_in_1226 - 1)
     {
     if(OrderSelect(tmp_in_1226,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1222 && OrderMagicNumber() == tmp_in_1221 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_1224 < 10 ; tmp_in_1224=tmp_in_1224 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_1223 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_1223 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_1222 == 4 ) )
       {
       tmp_in_1223 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_1222 == 5 ) )
       {
       tmp_in_1223 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_1223 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_1230 = MAGICNUMBER;
   tmp_in_1232 = 0;
   tmp_in_1233 = 0;
   for (tmp_in_1234 = 0 ; tmp_in_1234 < OrdersTotal() ; tmp_in_1234=tmp_in_1234 + 1)
    {
    if ( OrderSelect(tmp_in_1234,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1232 && OrderMagicNumber() == tmp_in_1230 && OrderSymbol() == Symbol() )
     {
     tmp_in_1233=tmp_in_1233 + 1; 
     }
    }
   if ( tmp_in_1233 == 0 )
    {
    tmp_in_1235 = MAGICNUMBER;
    tmp_in_1236 = 1;
    tmp_in_1237 = 0;
    for (tmp_in_1238 = 0 ; tmp_in_1238 < OrdersTotal() ; tmp_in_1238=tmp_in_1238 + 1)
     {
     if ( OrderSelect(tmp_in_1238,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1236 && OrderMagicNumber() == tmp_in_1235 && OrderSymbol() == Symbol() )
      {
      tmp_in_1237=tmp_in_1237 + 1; 
      }
     }
    if ( tmp_in_1237 == 0 && local_in_4 == 2019 && local_in_3 == 1 && local_in_2 == 17 && Hour() == MT4_TIMEZONE_GMT + 19 && Minute() == 5 )
     {
   ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
    }}
   tmp_in_1240 = MAGICNUMBER;
   tmp_in_1242 = 0;
   tmp_in_1243 = 0;
   for (tmp_in_1244 = 0 ; tmp_in_1244 < OrdersTotal() ; tmp_in_1244=tmp_in_1244 + 1)
    {
    if ( OrderSelect(tmp_in_1244,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1242 && OrderMagicNumber() == tmp_in_1240 && OrderSymbol() == Symbol() )
     {
     tmp_in_1243=tmp_in_1243 + 1; 
     }
    }
   if ( tmp_in_1243 == 0 )
    {
    tmp_in_1245 = MAGICNUMBER;
    tmp_in_1246 = 1;
    tmp_in_1247 = 0;
    for (tmp_in_1248 = 0 ; tmp_in_1248 < OrdersTotal() ; tmp_in_1248=tmp_in_1248 + 1)
     {
     if ( OrderSelect(tmp_in_1248,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1246 && OrderMagicNumber() == tmp_in_1245 && OrderSymbol() == Symbol() )
      {
      tmp_in_1247=tmp_in_1247 + 1; 
      }
     }
    if ( tmp_in_1247 == 0 && local_in_4 == 2019 && local_in_3 == 1 && local_in_2 == 17 && Hour() == MT4_TIMEZONE_GMT + 21 && Minute() == 0 )
     {
   ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
    }}
   tmp_in_1250 = MAGICNUMBER;
   tmp_in_1252 = 0;
   tmp_in_1253 = 0;
   for (tmp_in_1254 = 0 ; tmp_in_1254 < OrdersTotal() ; tmp_in_1254=tmp_in_1254 + 1)
    {
    if ( OrderSelect(tmp_in_1254,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1252 && OrderMagicNumber() == tmp_in_1250 && OrderSymbol() == Symbol() )
     {
     tmp_in_1253=tmp_in_1253 + 1; 
     }
    }
   if ( tmp_in_1253 == 0 )
    {
    tmp_in_1255 = MAGICNUMBER;
    tmp_in_1256 = 1;
    tmp_in_1257 = 0;
    for (tmp_in_1258 = 0 ; tmp_in_1258 < OrdersTotal() ; tmp_in_1258=tmp_in_1258 + 1)
     {
     if ( OrderSelect(tmp_in_1258,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1256 && OrderMagicNumber() == tmp_in_1255 && OrderSymbol() == Symbol() )
      {
      tmp_in_1257=tmp_in_1257 + 1; 
      }
     }
    if ( tmp_in_1257 == 0 && local_in_4 == 2019 && local_in_3 == 1 && local_in_2 == 17 && Hour() == MT4_TIMEZONE_GMT + 23 && Minute() == 10 )
     {
   ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
    }}
   tmp_in_1260 = MAGICNUMBER;
   tmp_in_1262 = 0;
   tmp_in_1263 = 0;
   for (tmp_in_1264 = 0 ; tmp_in_1264 < OrdersTotal() ; tmp_in_1264=tmp_in_1264 + 1)
    {
    if ( OrderSelect(tmp_in_1264,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1262 && OrderMagicNumber() == tmp_in_1260 && OrderSymbol() == Symbol() )
     {
     tmp_in_1263=tmp_in_1263 + 1; 
     }
    }
   if ( tmp_in_1263 == 1 && local_in_4 == 2019 && local_in_3 == 1 && local_in_2 == 24 && Hour() == MT4_TIMEZONE_GMT + 2 && Minute() == 30 )
    {
    tmp_in_1266 = MAGICNUMBER;
    tmp_in_1267 = 0;
    tmp_in_1268 = -1;
    tmp_in_1269 = 0;
    for (tmp_in_1271 = OrdersTotal() - 1 ; tmp_in_1271 >= 0 ; tmp_in_1271=tmp_in_1271 - 1)
     {
     if(OrderSelect(tmp_in_1271,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1267 && OrderMagicNumber() == tmp_in_1266 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_1269 < 10 ; tmp_in_1269=tmp_in_1269 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_1268 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_1268 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_1267 == 4 ) )
       {
       tmp_in_1268 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_1267 == 5 ) )
       {
       tmp_in_1268 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_1268 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_1275 = MAGICNUMBER;
   tmp_in_1277 = 1;
   tmp_in_1278 = 0;
   for (tmp_in_1279 = 0 ; tmp_in_1279 < OrdersTotal() ; tmp_in_1279=tmp_in_1279 + 1)
    {
    if ( OrderSelect(tmp_in_1279,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1277 && OrderMagicNumber() == tmp_in_1275 && OrderSymbol() == Symbol() )
     {
     tmp_in_1278=tmp_in_1278 + 1; 
     }
    }
   if ( tmp_in_1278 == 1 && local_in_4 == 2019 && local_in_3 == 1 && local_in_2 == 8 && Hour() == MT4_TIMEZONE_GMT && Minute() == 25 )
    {
    tmp_in_1280 = MAGICNUMBER;
    tmp_in_1281 = 1;
    tmp_in_1282 = -1;
    tmp_in_1283 = 0;
    for (tmp_in_1285 = OrdersTotal() - 1 ; tmp_in_1285 >= 0 ; tmp_in_1285=tmp_in_1285 - 1)
     {
     if(OrderSelect(tmp_in_1285,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1281 && OrderMagicNumber() == tmp_in_1280 && OrderSymbol() == Symbol() ) {
     for ( ; tmp_in_1283 < 10 ; tmp_in_1283=tmp_in_1283 + 1)
      {
      if ( OrderType() == 0 )
       {
       tmp_in_1282 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
       }
      if ( OrderType() == 1 )
       {
       tmp_in_1282 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
       }
      if ( ( OrderType() == 2 || tmp_in_1281 == 4 ) )
       {
       tmp_in_1282 = OrderDelete(OrderTicket(),Blue);
       }
      if ( ( OrderType() == 3 || tmp_in_1281 == 5 ) )
       {
       tmp_in_1282 = OrderDelete(OrderTicket(),Red);
       }
      if ( tmp_in_1282 >= 0 )   break;
      Alert("Error CLose Order",ErrorDescription(0)); 
      Sleep(1000); 
      RefreshRates(); 
      }
      }
     }
    }
   tmp_in_1289 = MAGICNUMBER;
   tmp_in_1291 = 1;
   tmp_in_1292 = 0;
   for (tmp_in_1293 = 0 ; tmp_in_1293 < OrdersTotal() ; tmp_in_1293=tmp_in_1293 + 1)
    {
    if ( OrderSelect(tmp_in_1293,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1291 && OrderMagicNumber() == tmp_in_1289 && OrderSymbol() == Symbol() )
     {
     tmp_in_1292=tmp_in_1292 + 1; 
     }
    }

   if ( tmp_in_1292 == 1 && local_in_4 == 2019 && local_in_3 == 1 && local_in_2 == 10 && Hour() == MT4_TIMEZONE_GMT && Minute() == 25 )
    {
    tmp_in_1294 = MAGICNUMBER;
    tmp_in_1295 = 1;
    tmp_in_1296 = -1;
    tmp_in_1297 = 0;
    tmp_in_1299 = OrdersTotal() - 1;
    if ( OrdersTotal() - 1 >= 0 )
     {

     for ( ; tmp_in_1299 >= 0 ; tmp_in_1299=tmp_in_1299 - 1)
      {
      if(OrderSelect(tmp_in_1299,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1295 && OrderMagicNumber() == tmp_in_1294 && OrderSymbol() == Symbol() ) {
      for ( ; tmp_in_1297 < 10 ; tmp_in_1297=tmp_in_1297 + 1)
       {
       if ( OrderType() == 0 )
        {
        tmp_in_1296 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
        }
       if ( OrderType() == 1 )
        {
        tmp_in_1296 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
        }
       if ( ( OrderType() == 2 || tmp_in_1295 == 4 ) )
        {
        tmp_in_1296 = OrderDelete(OrderTicket(),Blue);
        }
       if ( ( OrderType() == 3 || tmp_in_1295 == 5 ) )
        {
        tmp_in_1296 = OrderDelete(OrderTicket(),Red);
        }
       if ( tmp_in_1296 >= 0 )   break;
       Alert("Error CLose Order",ErrorDescription(0)); 
       Sleep(1000); 
       RefreshRates(); 
       }
       }
      }
   }}}
  else
   {
   if ( ( Symbol() == "EURGBP" || Symbol() == "EURGBP." || Symbol() == "EURGBP-" || Symbol() == "EURGBPm" || Symbol() == "EURGBPi" || Symbol() == "EURGBP.m" || Symbol() == "EURGBPe" || Symbol() == "EURGBP.pe" || Symbol() == "EURGBP.s" || Symbol() == "EURGBP.fxe" || Symbol() == "EURGBP+" || Symbol() == "EURGBP.f" || Symbol() == "EURGBP.G2" || Symbol() == "EURGBP!!" || Symbol() == "EURGBPb" ) )
    {
    tmp_in_1303 = MAGICNUMBER;
    tmp_in_1305 = 0;
    tmp_in_1306 = 0;
    for (tmp_in_1307 = 0 ; tmp_in_1307 < OrdersTotal() ; tmp_in_1307=tmp_in_1307 + 1)
     {
     if ( OrderSelect(tmp_in_1307,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1305 && OrderMagicNumber() == tmp_in_1303 && OrderSymbol() == Symbol() )
      {
      tmp_in_1306=tmp_in_1306 + 1; 
      }
     }
    if ( tmp_in_1306 == 0 )
     {
     tmp_in_1308 = MAGICNUMBER;
     tmp_in_1309 = 1;
     tmp_in_1310 = 0;
     for (tmp_in_1311 = 0 ; tmp_in_1311 < OrdersTotal() ; tmp_in_1311=tmp_in_1311 + 1)
      {
      if ( OrderSelect(tmp_in_1311,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1309 && OrderMagicNumber() == tmp_in_1308 && OrderSymbol() == Symbol() )
       {
       tmp_in_1310=tmp_in_1310 + 1; 
       }
      }
     if ( tmp_in_1310 == 0 )
      {
      if ( local_in_5 <= 2017 )
       {
       tmp_in_1312 = MAGICNUMBER;
       tmp_do_1313 = local_do_7 * global_do_13;
       tmp_do_1314 = local_do_7 * global_do_13;
       tmp_do_1316 = 0.0;
       tmp_do_1317 = 0.0;
       if ( lizong_6() == 0 )
        {
      ans = OrderSend(Symbol(),OP_BUY,tmp_do_1313,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,tmp_in_1312,0,Blue); 
        }
       if ( lizong_6() == 1 )
        {
      ans = OrderSend(Symbol(),OP_SELL,tmp_do_1314,Bid,3,tmp_do_1316,tmp_do_1317,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,tmp_in_1312,0,Red); 
        }
       tmp_in_1320 = MAGICNUMBER;
       tmp_do_1321 = TAKEPROFIT;
       tmp_do_1322 = STOP_LOSS;
       tmp_in_1323 = lizong_6();
       tmp_do_1324 = 0.0;
       tmp_do_1325 = 0.0;
       for (tmp_in_1326 = 0 ; tmp_in_1326 < OrdersTotal() ; tmp_in_1326=tmp_in_1326 + 1)
        {
        if ( OrderSelect(tmp_in_1326,SELECT_BY_POS,MODE_TRADES) )
         {
         if ( OrderType() == tmp_in_1323 && OrderSymbol() == Symbol() && OrderMagicNumber() == tmp_in_1320 )
          {
          if ( tmp_do_1322!=0.0 )
           {
           tmp_do_1324 = OrderOpenPrice() - tmp_do_1322 * Point();
           }
          if ( tmp_do_1321!=0.0 )
           {
           tmp_do_1325 = tmp_do_1321 * Point() + OrderOpenPrice();
           }
          if ( ( OrderStopLoss()!=tmp_do_1324 || OrderTakeProfit()!=tmp_do_1325 ) )
           {
         ans = OrderModify(OrderTicket(),OrderOpenPrice(),tmp_do_1324,tmp_do_1325,0,Blue); 
          }}
         if ( OrderType() == tmp_in_1323 && OrderSymbol() == Symbol() && OrderMagicNumber() == tmp_in_1320 )
          {
          if ( tmp_do_1322!=0.0 )
           {
           tmp_do_1324 = tmp_do_1322 * Point() + OrderOpenPrice();
           }
          if ( tmp_do_1321!=0.0 )
           {
           tmp_do_1325 = OrderOpenPrice() - tmp_do_1321 * Point();
           }
          if ( ( OrderStopLoss()!=tmp_do_1324 || OrderTakeProfit()!=tmp_do_1325 ) )
           {
         ans = OrderModify(OrderTicket(),OrderOpenPrice(),tmp_do_1324,tmp_do_1325,0,Red); 
         }}}
        }
       }
      if ( local_in_5 == 2019 )
       {
       tmp_in_1332 = MAGICNUMBER;
       tmp_do_1333 = local_do_7 * global_do_13;
       tmp_do_1334 = local_do_7 * global_do_13;
       tmp_do_1336 = 0.0;
       tmp_do_1337 = 0.0;
       if ( lizong_9() == 0 )
        {
      ans = OrderSend(Symbol(),OP_BUY,tmp_do_1333,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,tmp_in_1332,0,Blue); 
        }
       if ( lizong_9() == 1 )
        {
      ans = OrderSend(Symbol(),OP_SELL,tmp_do_1334,Bid,3,tmp_do_1336,tmp_do_1337,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,tmp_in_1332,0,Red); 
        }
       tmp_in_1340 = MAGICNUMBER;
       tmp_do_1341 = TAKEPROFIT;
       tmp_do_1342 = STOP_LOSS;
       tmp_in_1343 = lizong_9();
       tmp_do_1344 = 0.0;
       tmp_do_1345 = 0.0;
       for (tmp_in_1346 = 0 ; tmp_in_1346 < OrdersTotal() ; tmp_in_1346=tmp_in_1346 + 1)
        {
        if ( OrderSelect(tmp_in_1346,SELECT_BY_POS,MODE_TRADES) )
         {
         if ( OrderType() == tmp_in_1343 && OrderSymbol() == Symbol() && OrderMagicNumber() == tmp_in_1340 )
          {
          if ( tmp_do_1342!=0.0 )
           {
           tmp_do_1344 = OrderOpenPrice() - tmp_do_1342 * Point();
           }
          if ( tmp_do_1341!=0.0 )
           {
           tmp_do_1345 = tmp_do_1341 * Point() + OrderOpenPrice();
           }
          if ( ( OrderStopLoss()!=tmp_do_1344 || OrderTakeProfit()!=tmp_do_1345 ) )
           {
         ans = OrderModify(OrderTicket(),OrderOpenPrice(),tmp_do_1344,tmp_do_1345,0,Blue); 
          }}
         if ( OrderType() == tmp_in_1343 && OrderSymbol() == Symbol() && OrderMagicNumber() == tmp_in_1340 )
          {
          if ( tmp_do_1342!=0.0 )
           {
           tmp_do_1344 = tmp_do_1342 * Point() + OrderOpenPrice();
           }
          if ( tmp_do_1341!=0.0 )
           {
           tmp_do_1345 = OrderOpenPrice() - tmp_do_1341 * Point();
           }
          if ( ( OrderStopLoss()!=tmp_do_1344 || OrderTakeProfit()!=tmp_do_1345 ) )
           {
         ans = OrderModify(OrderTicket(),OrderOpenPrice(),tmp_do_1344,tmp_do_1345,0,Red); 
         }}}
        }
     }}}
    tmp_in_1352 = MAGICNUMBER;
    tmp_in_1353 = 0;
    tmp_in_1354 = 0;
    for (tmp_in_1355 = 0 ; tmp_in_1355 < OrdersTotal() ; tmp_in_1355=tmp_in_1355 + 1)
     {
     if ( OrderSelect(tmp_in_1355,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1353 && OrderMagicNumber() == tmp_in_1352 && OrderSymbol() == Symbol() )
      {
      tmp_in_1354=tmp_in_1354 + 1; 
      }
     }
    if ( tmp_in_1354 == 1 && local_in_4 == 2017 && local_in_3 == 7 && local_in_2 == 6 && Hour() == MT4_TIMEZONE_GMT && Minute() == 45 )
     {
     tmp_in_1356 = MAGICNUMBER;
     tmp_in_1357 = 0;
     tmp_in_1358 = -1;
     tmp_in_1359 = 0;
     for (tmp_in_1361 = OrdersTotal() - 1 ; tmp_in_1361 >= 0 ; tmp_in_1361=tmp_in_1361 - 1)
      {
      if(OrderSelect(tmp_in_1361,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1357 && OrderMagicNumber() == tmp_in_1356 && OrderSymbol() == Symbol() ) {
      for ( ; tmp_in_1359 < 10 ; tmp_in_1359=tmp_in_1359 + 1)
       {
       if ( OrderType() == 0 )
        {
        tmp_in_1358 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
        }
       if ( OrderType() == 1 )
        {
        tmp_in_1358 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
        }
       if ( ( OrderType() == 2 || tmp_in_1357 == 4 ) )
        {
        tmp_in_1358 = OrderDelete(OrderTicket(),Blue);
        }
       if ( ( OrderType() == 3 || tmp_in_1357 == 5 ) )
        {
        tmp_in_1358 = OrderDelete(OrderTicket(),Red);
        }
       if ( tmp_in_1358 >= 0 )   break;
       Alert("Error CLose Order",ErrorDescription(0)); 
       Sleep(1000); 
       RefreshRates(); 
       }
       }
      }
     }
    tmp_in_1365 = MAGICNUMBER;
    tmp_in_1367 = 0;
    tmp_in_1368 = 0;
    for (tmp_in_1369 = 0 ; tmp_in_1369 < OrdersTotal() ; tmp_in_1369=tmp_in_1369 + 1)
     {
     if ( OrderSelect(tmp_in_1369,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1367 && OrderMagicNumber() == tmp_in_1365 && OrderSymbol() == Symbol() )
      {
      tmp_in_1368=tmp_in_1368 + 1; 
      }
     }
    if ( tmp_in_1368 == 1 && local_in_4 == 2017 && local_in_3 == 7 && local_in_2 == 24 && Hour() == MT4_TIMEZONE_GMT + 1 && Minute() == 25 )
     {
     tmp_in_1371 = MAGICNUMBER;
     tmp_in_1372 = 0;
     tmp_in_1373 = -1;
     tmp_in_1374 = 0;
     for (tmp_in_1376 = OrdersTotal() - 1 ; tmp_in_1376 >= 0 ; tmp_in_1376=tmp_in_1376 - 1)
      {
      if(OrderSelect(tmp_in_1376,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1372 && OrderMagicNumber() == tmp_in_1371 && OrderSymbol() == Symbol() ) {
      for ( ; tmp_in_1374 < 10 ; tmp_in_1374=tmp_in_1374 + 1)
       {
       if ( OrderType() == 0 )
        {
        tmp_in_1373 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
        }
       if ( OrderType() == 1 )
        {
        tmp_in_1373 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
        }
       if ( ( OrderType() == 2 || tmp_in_1372 == 4 ) )
        {
        tmp_in_1373 = OrderDelete(OrderTicket(),Blue);
        }
       if ( ( OrderType() == 3 || tmp_in_1372 == 5 ) )
        {
        tmp_in_1373 = OrderDelete(OrderTicket(),Red);
        }
       if ( tmp_in_1373 >= 0 )   break;
       Alert("Error CLose Order",ErrorDescription(0)); 
       Sleep(1000); 
       RefreshRates(); 
       }
       }
      }
     }
    tmp_in_1380 = MAGICNUMBER;
    tmp_in_1382 = 1;
    tmp_in_1383 = 0;
    for (tmp_in_1384 = 0 ; tmp_in_1384 < OrdersTotal() ; tmp_in_1384=tmp_in_1384 + 1)
     {
     if ( OrderSelect(tmp_in_1384,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1382 && OrderMagicNumber() == tmp_in_1380 && OrderSymbol() == Symbol() )
      {
      tmp_in_1383=tmp_in_1383 + 1; 
      }
     }
    if ( tmp_in_1383 == 1 && local_in_4 == 2017 && local_in_3 == 7 && local_in_2 == 25 && Hour() == MT4_TIMEZONE_GMT + 2 && Minute() == 0 )
     {
     tmp_in_1386 = MAGICNUMBER;
     tmp_in_1387 = 1;
     tmp_in_1388 = -1;
     tmp_in_1389 = 0;
     for (tmp_in_1391 = OrdersTotal() - 1 ; tmp_in_1391 >= 0 ; tmp_in_1391=tmp_in_1391 - 1)
      {
      if(OrderSelect(tmp_in_1391,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1387 && OrderMagicNumber() == tmp_in_1386 && OrderSymbol() == Symbol() ) {
      for ( ; tmp_in_1389 < 10 ; tmp_in_1389=tmp_in_1389 + 1)
       {
       if ( OrderType() == 0 )
        {
        tmp_in_1388 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
        }
       if ( OrderType() == 1 )
        {
        tmp_in_1388 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
        }
       if ( ( OrderType() == 2 || tmp_in_1387 == 4 ) )
        {
        tmp_in_1388 = OrderDelete(OrderTicket(),Blue);
        }
       if ( ( OrderType() == 3 || tmp_in_1387 == 5 ) )
        {
        tmp_in_1388 = OrderDelete(OrderTicket(),Red);
        }
       if ( tmp_in_1388 >= 0 )   break;
       Alert("Error CLose Order",ErrorDescription(0)); 
       Sleep(1000); 
       RefreshRates(); 
       }
       }
      }
     }
    tmp_in_1395 = MAGICNUMBER;
    tmp_in_1397 = 0;
    tmp_in_1398 = 0;
    for (tmp_in_1399 = 0 ; tmp_in_1399 < OrdersTotal() ; tmp_in_1399=tmp_in_1399 + 1)
     {
     if ( OrderSelect(tmp_in_1399,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1397 && OrderMagicNumber() == tmp_in_1395 && OrderSymbol() == Symbol() )
      {
      tmp_in_1398=tmp_in_1398 + 1; 
      }
     }
    if ( tmp_in_1398 == 1 && local_in_4 == 2017 && local_in_3 == 8 && local_in_2 == 2 && Hour() == MT4_TIMEZONE_GMT + 22 && Minute() == 30 )
     {
     tmp_in_1401 = MAGICNUMBER;
     tmp_in_1402 = 0;
     tmp_in_1403 = -1;
     tmp_in_1404 = 0;
     for (tmp_in_1406 = OrdersTotal() - 1 ; tmp_in_1406 >= 0 ; tmp_in_1406=tmp_in_1406 - 1)
      {
      if(OrderSelect(tmp_in_1406,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1402 && OrderMagicNumber() == tmp_in_1401 && OrderSymbol() == Symbol() ) {
      for ( ; tmp_in_1404 < 10 ; tmp_in_1404=tmp_in_1404 + 1)
       {
       if ( OrderType() == 0 )
        {
        tmp_in_1403 = OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);
        }
       if ( OrderType() == 1 )
        {
        tmp_in_1403 = OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
        }
       if ( ( OrderType() == 2 || tmp_in_1402 == 4 ) )
        {
        tmp_in_1403 = OrderDelete(OrderTicket(),Blue);
        }
       if ( ( OrderType() == 3 || tmp_in_1402 == 5 ) )
        {
        tmp_in_1403 = OrderDelete(OrderTicket(),Red);
        }
       if ( tmp_in_1403 >= 0 )   break;
       Alert("Error CLose Order",ErrorDescription(0)); 
       Sleep(1000); 
       RefreshRates(); 
       }
       }
      }
     }
    tmp_in_1410 = MAGICNUMBER;
    tmp_in_1412 = 0;
    tmp_in_1413 = 0;
    for (tmp_in_1414 = 0 ; tmp_in_1414 < OrdersTotal() ; tmp_in_1414=tmp_in_1414 + 1)
     {
     if ( OrderSelect(tmp_in_1414,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1412 && OrderMagicNumber() == tmp_in_1410 && OrderSymbol() == Symbol() )
      {
      tmp_in_1413=tmp_in_1413 + 1; 
      }
     }
    if ( tmp_in_1413 == 0 )
     {
     tmp_in_1415 = MAGICNUMBER;
     tmp_in_1416 = 1;
     tmp_in_1417 = 0;
     for (tmp_in_1418 = 0 ; tmp_in_1418 < OrdersTotal() ; tmp_in_1418=tmp_in_1418 + 1)
      {
      if ( OrderSelect(tmp_in_1418,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1416 && OrderMagicNumber() == tmp_in_1415 && OrderSymbol() == Symbol() )
       {
       tmp_in_1417=tmp_in_1417 + 1; 
       }
      }
     if ( tmp_in_1417 == 0 && local_in_4 == 2017 && local_in_3 == 8 && local_in_2 == 8 && Hour() == MT4_TIMEZONE_GMT + 19 && Minute() == 30 )
      {
    ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
     }}
    tmp_in_1420 = MAGICNUMBER;
    tmp_in_1422 = 0;
    tmp_in_1423 = 0;
    for (tmp_in_1424 = 0 ; tmp_in_1424 < OrdersTotal() ; tmp_in_1424=tmp_in_1424 + 1)
     {
     if ( OrderSelect(tmp_in_1424,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1422 && OrderMagicNumber() == tmp_in_1420 && OrderSymbol() == Symbol() )
      {
      tmp_in_1423=tmp_in_1423 + 1; 
      }
     }
    if ( tmp_in_1423 == 0 )
     {
     tmp_in_1425 = MAGICNUMBER;
     tmp_in_1426 = 1;
     tmp_in_1427 = 0;
     for (tmp_in_1428 = 0 ; tmp_in_1428 < OrdersTotal() ; tmp_in_1428=tmp_in_1428 + 1)
      {
      if ( OrderSelect(tmp_in_1428,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1426 && OrderMagicNumber() == tmp_in_1425 && OrderSymbol() == Symbol() )
       {
       tmp_in_1427=tmp_in_1427 + 1; 
       }
      }
     if ( tmp_in_1427 == 0 && local_in_4 == 2017 && local_in_3 == 8 && local_in_2 == 8 && Hour() == MT4_TIMEZONE_GMT + 20 && Minute() == 50 )
      {
    ans = OrderSend(Symbol(),OP_SELL,local_do_7,Bid,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Red); 
     }}
    tmp_in_1430 = MAGICNUMBER;
    tmp_in_1432 = 0;
    tmp_in_1433 = 0;
    for (tmp_in_1434 = 0 ; tmp_in_1434 < OrdersTotal() ; tmp_in_1434=tmp_in_1434 + 1)
     {
     if ( OrderSelect(tmp_in_1434,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1432 && OrderMagicNumber() == tmp_in_1430 && OrderSymbol() == Symbol() )
      {
      tmp_in_1433=tmp_in_1433 + 1; 
      }
     }
    if ( tmp_in_1433 == 0 )
     {
     tmp_in_1435 = MAGICNUMBER;
     tmp_in_1436 = 1;
     tmp_in_1437 = 0;
     for (tmp_in_1438 = 0 ; tmp_in_1438 < OrdersTotal() ; tmp_in_1438=tmp_in_1438 + 1)
      {
      if ( OrderSelect(tmp_in_1438,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1436 && OrderMagicNumber() == tmp_in_1435 && OrderSymbol() == Symbol() )
       {
       tmp_in_1437=tmp_in_1437 + 1; 
       }
      }
     if ( tmp_in_1437 == 0 && local_in_4 == 2017 && local_in_3 == 8 && local_in_2 == 8 && Hour() == MT4_TIMEZONE_GMT + 22 && Minute() == 10 )
      {
    ans = OrderSend(Symbol(),OP_BUY,local_do_7,Ask,3,0.0,0.0,EA_NAME + "_" + YOUR_COMMENT_IN_MT4,MAGICNUMBER,0,Blue); 
     }}
    tmp_in_1440 = MAGICNUMBER;
    tmp_in_1442 = 0;
    tmp_in_1443 = 0;
    for (tmp_in_1444 = 0 ; tmp_in_1444 < OrdersTotal() ; tmp_in_1444=tmp_in_1444 + 1)
     {
     if ( OrderSelect(tmp_in_1444,SELECT_BY_POS,MODE_TRADES) && OrderType() == tmp_in_1442 && OrderMagicNumber() == tmp_in_1440 && OrderSymbol() == Symbol() )
      {
      tmp_in_1443=tmp_in_1443 + 1; 
      }
   

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

Открыть по тарифу

Купите тариф с пакетом открытий или войдите, если тариф уже есть. Открытый файл останется в вашем кабинете навсегда.

Разовая покупка файла

На этой странице откроется полный исходный код файла вместо ознакомительного фрагмента.

Чтобы оформить заказ, введите email и перейдите к оплате.

Стоимость полного кода
29 078₽ ≈ $355.39