← Назад к списку файлов

papeda ea@lifeindreamsworld.mq4

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

#property version    "1.00"
#property strict
#property description  "RISK WARNING – Trading on the forex market involves significant risks, including complete possible loss of funds. Trading is not suitable for all investors and traders.\nDISCLAIMER – By using Papeda EA, You acknowledge that You are familiar with these risks and that You are solely responsible for the outcomes of your decisions. We accept no liability whatsoever for any direct or consequential loss arising from the use of this product."

  enum CN      {e = 0,d = 1  };
  enum OR      {Reverse = 2,Follow = 1  };
  enum FL      {L = 0,M = 1  };
  enum MTP      {Simultan = 1,Parsial = 0  };

extern int   Magic=356  ;    //Magic Number
extern string Set1="---- Licensed to 5185319 - expire on 31/12/3000 ----"  ;   //=====================================
extern bool MM=false ;    //Auto Lot
extern double Risk=0.01  ;    //Lot Risk (% Balance)
extern int   Ketahanan=10000  ;   
extern double Lots=0.01  ;    //Base Lot
extern double TPmf=10  ;    //Target Profit Money [0=false]
extern double TP=0  ;    //Target Profit Pips [0=false]
extern double SLQf=0  ;    //Maximum Loss % Equity [0=false]
extern bool Close_Profit=false ;    //Close % Profit
extern double TPQf=0  ;    //Profit % Equity
  bool      总_1_bo_0 = true;
  int       总_2_in_4 = 5185319;
  bool      总_3_bo_8 = false;
  string    总_4_st_10 = "Muhamad Adi Sujai";
  long      总_5_lo_20 = 32535129600;
  string    总_6_st_28 = "---- Licensed to - Exp 31/12/3000 ----";
  string    总_7_st_38 = "---- Default setting for EURUSD TF H1 balance 100k ----";
  string    总_8_st_48 = "---- Open Order Setting ----";
  int       总_9_in_54 = 2;
  string    总_10_st_58 = "---- Filter ----";
  int       总_11_in_64 = 0;
  bool      总_12_bo_68 = false;
  int       总_13_in_6C = 9;
  int       总_14_in_70 = 26;
  int       总_15_in_74 = 52;
  string    总_16_st_78 = "---- Close Order Setting ----";
  int       总_17_in_84 = 1;
  double    总_18_do_88 = 0.0;
  double    总_19_do_90 = 0.0;
  string    总_20_st_98 = "---- Setting Trailing Stop ----";
  double    总_21_do_A8 = 0.0;
  double    总_22_do_B0 = 0.0;
  string    总_23_st_B8 = "---- Averaging Setting ----";
  int       总_24_in_C4 = 1;
  double    总_25_do_C8 = 1.4;
  double    总_26_do_D0 = 0.02;
  double    总_27_do_D8 = 1.0;
  int       总_28_in_E0 = 200;
  int       总_29_in_E4 = 1;
  string    总_30_st_E8 = "---- Trading Time Setting ----";
  int       总_31_in_F4 = 1;
  string    总_32_st_F8 = "00:30";
  string    总_33_st_108 = "23:30";
  int       总_34_in_114 = 6;
  int       总_35_in_118 = 5;
  int       总_36_in_11C = 3;
  string    总_37_st_120 = "Papeda EA - t.me/su741";
  int       总_38_in_12C = 3;
  bool      总_39_bo_130 = false;
  int       总_40_in_134 = 0;
  int       总_41_in_138 = 0;
  string    总_42_st_140 = "cash-register-05.wav";
  bool      总_43_bo_14C = true;
  bool      总_44_bo_14D = false;
  uint      总_45_ui_150 = Aqua;
  int       总_46_in_154 = 0;
  double    总_47_do_158 = 0.0;
  double    总_48_do_160 = 0.0;
  double    总_49_do_168 = 0.0;
  double    总_50_do_170 = 0.0;
  double    总_51_do_178 = 1.0;
  double    总_52_do_180 = 0.0;
  double    总_53_do_188 = 0.0;
  double    总_54_do_190 = 0.0;
  double    总_55_do_198 = 0.0;
  double    总_56_do_1A0 = 0.0;
  double    总_57_do_1A8 = 0.0;
  double    总_58_do_1B0 = 0.0;
  double    总_59_do_1B8 = 0.0;
  double    总_60_do_1C0 = 0.0;
  double    总_61_do_1C8 = 0.0;
  int       总_62_in_1D0 = 0;
  int       总_63_in_1D4 = 0;
  int       总_64_in_1D8 = 0;

#import     

 int OnInit()
 {
      // код доступен только после оплаты
   }

 int start()
 {
      // код доступен только после оплаты
   }
  string    子_2_st_si256[256]={};
  int       子_3_in;
  int       子_4_in;
  bool      子_5_bo;
  string    子_6_st;
  string    子_7_st;
  int       子_8_in;
  int       子_9_in;
  int       子_10_in;
  int       子_11_in;
  int       子_12_in;
  int       子_13_in;
  double    子_14_do;
  double    子_15_do;
  double    子_16_do;
  double    子_17_do;
  double    子_18_do;
  double    子_19_do;
  double    子_20_do;
  long      子_21_lo;
  long      子_22_lo;
  string    子_23_st;
  double    子_24_do;
  double    子_25_do;
  double    子_26_do;
  double    子_27_do;
  double    子_28_do;
  double    子_29_do;
  double    子_30_do;
  double    子_31_do;
  double    子_32_do;
  double    子_33_do;
  double    子_34_do;
  double    子_35_do;
  double    子_36_do;
  double    子_37_do;
  double    子_38_do;
  bool      子_39_bo;
  bool      子_40_bo;
  bool      子_41_bo;
  bool      子_42_bo;
  double    子_43_do;
  double    子_44_do;
  double    子_45_do;
  double    子_46_do;
  uint      子_47_ui;
  uint      子_48_ui;
  uint      子_49_ui;
  uint      子_50_ui;
  uint      子_51_ui;
  uint      子_52_ui;
  double    子_53_do;
  uint      子_54_ui;
  double    子_55_do;
  double    子_56_do;

 int        临_in_1;
 double     临_do_2;
 int        临_in_3;
 double     临_do_4;
 double     临_do_5;
 double     临_do_6;
 double     临_do_7;
 double     临_do_8;
 int        临_in_9;
 int        临_in_10;
 double     临_do_11;
 int        临_in_12;
 double     临_do_13;
 double     临_do_14;
 double     临_do_15;
 double     临_do_16;
 double     临_do_17;
 int        临_in_18;
 int        临_in_19;
 double     临_do_20;
 int        临_in_21;
 double     临_do_22;
 double     临_do_23;
 double     临_do_24;
 double     临_do_25;
 double     临_do_26;
 int        临_in_27;
 int        临_in_28;
 double     临_do_29;
 int        临_in_30;
 double     临_do_31;
 double     临_do_32;
 double     临_do_33;
 double     临_do_34;
 double     临_do_35;
 int        临_in_36;
 int        临_in_37;
 uint       临_ui_38;
 int        临_in_39;
 int        临_in_40;
 int        临_in_41;
 string     临_st_42;
 int        临_in_43;
 uint       临_ui_44;
 int        临_in_45;
 int        临_in_46;
 int        临_in_47;
 string     临_st_48;
 int        临_in_49;
 uint       临_ui_50;
 int        临_in_51;
 int        临_in_52;
 int        临_in_53;
 string     临_st_54;
 int        临_in_55;
 uint       临_ui_56;
 int        临_in_57;
 int        临_in_58;
 int        临_in_59;
 string     临_st_60;
 int        临_in_61;
 uint       临_ui_62;
 int        临_in_63;
 int        临_in_64;
 int        临_in_65;
 string     临_st_66;
 int        临_in_67;
 uint       临_ui_68;
 int        临_in_69;
 int        临_in_70;
 int        临_in_71;
 string     临_st_72;
 int        临_in_73;
 uint       临_ui_74;
 int        临_in_75;
 int        临_in_76;
 int        临_in_77;
 string     临_st_78;
 int        临_in_79;
 uint       临_ui_80;
 int        临_in_81;
 int        临_in_82;
 int        临_in_83;
 string     临_st_84;
 int        临_in_85;
 uint       临_ui_86;
 int        临_in_87;
 int        临_in_88;
 int        临_in_89;
 string     临_st_90;
 int        临_in_91;
 uint       临_ui_92;
 int        临_in_93;
 int        临_in_94;
 int        临_in_95;
 string     临_st_96;
 int        临_in_97;
 uint       临_ui_98;
 int        临_in_99;
 int        临_in_100;
 int        临_in_101;
 string     临_st_102;
 int        临_in_103;
 uint       临_ui_104;
 int        临_in_105;
 int        临_in_106;
 int        临_in_107;
 string     临_st_108;
 int        临_in_109;
 uint       临_ui_110;
 int        临_in_111;
 int        临_in_112;
 int        临_in_113;
 string     临_st_114;
 int        临_in_115;
 uint       临_ui_116;
 int        临_in_117;
 int        临_in_118;
 int        临_in_119;
 string     临_st_120;
 int        临_in_121;
 uint       临_ui_122;
 int        临_in_123;
 int        临_in_124;
 int        临_in_125;
 string     临_st_126;
 int        临_in_127;
 uint       临_ui_128;
 int        临_in_129;
 int        临_in_130;
 int        临_in_131;
 string     临_st_132;
 int        临_in_133;
 uint       临_ui_134;
 int        临_in_135;
 int        临_in_136;
 int        临_in_137;
 string     临_st_138;
 int        临_in_139;
 uint       临_ui_140;
 int        临_in_141;
 int        临_in_142;
 int        临_in_143;
 string     临_st_144;
 int        临_in_145;
 uint       临_ui_146;
 int        临_in_147;
 int        临_in_148;
 int        临_in_149;
 string     临_st_150;
 uint       临_ui_151;
 int        临_in_152;
 int        临_in_153;
 int        临_in_154;
 string     临_st_155;
 uint       临_ui_156;
 int        临_in_157;
 int        临_in_158;
 int        临_in_159;
 string     临_st_160;

 for (子_3_in = 0 ; 子_3_in < 256 ; 子_3_in ++)
 {
   子_2_st_si256[子_3_in] = CharToString(子_3_in);
 }
 子_4_in = StringToTime(子_2_st_si256[50] + 子_2_st_si256[48] + 子_2_st_si256[48] + 子_2_st_si256[57] + 子_2_st_si256[46] + 子_2_st_si256[48] + 子_2_st_si256[57] + 子_2_st_si256[46] + 子_2_st_si256[49] + 子_2_st_si256[49] + 子_2_st_si256[32] + 子_2_st_si256[50] + 子_2_st_si256[51] + 子_2_st_si256[58] + 子_2_st_si256[53] + 子_2_st_si256[57] + 子_2_st_si256[58] + 子_2_st_si256[48] + 子_2_st_si256[48]) ;
 if ( TimeCurrent() == 238 )
 {
   ObjectCreate("M6",OBJ_LABEL,0,0,0.0,0,0.0,0,0.0); 
   ObjectSetText("M6","Your expert advisor has expired,",9,"Thoma",Yellow); 
   ObjectSet("M6",OBJPROP_CORNER,0.0); 
   ObjectSet("M6",OBJPROP_XDISTANCE,0.0); 
   ObjectSet("M6",OBJPROP_YDISTANCE,20.0); 
   ObjectCreate("M7",OBJ_LABEL,0,0,0.0,0,0.0,0,0.0); 
   ObjectSetText("M7","or you do not have a license to use it.",9,"Thoma",Yellow); 
   ObjectSet("M7",OBJPROP_CORNER,0.0); 
   ObjectSet("M7",OBJPROP_XDISTANCE,0.0); 
   ObjectSet("M7",OBJPROP_YDISTANCE,40.0); 
   ObjectCreate("M8",OBJ_LABEL,0,0,0.0,0,0.0,0,0.0); 
   ObjectSetText("M8","Please contact bung.jai@gmail.com.",8,"Thoma",Yellow); 
   ObjectSet("M8",OBJPROP_CORNER,0.0); 
   ObjectSet("M8",OBJPROP_XDISTANCE,0.0); 
   ObjectSet("M8",OBJPROP_YDISTANCE,60.0); 
   return(0); 
 }
 if ( 总_1_bo_0 && AccountNumber() == 238 )
 {
   ObjectCreate("M6",OBJ_LABEL,0,0,0.0,0,0.0,0,0.0); 
   ObjectSetText("M6","Your expert advisor has expired,",9,"Thoma",Yellow); 
   ObjectSet("M6",OBJPROP_CORNER,0.0); 
   ObjectSet("M6",OBJPROP_XDISTANCE,0.0); 
   ObjectSet("M6",OBJPROP_YDISTANCE,20.0); 
   ObjectCreate("M7",OBJ_LABEL,0,0,0.0,0,0.0,0,0.0); 
   ObjectSetText("M7","or you do not have a license to use it.",9,"Thoma",Yellow); 
   ObjectSet("M7",OBJPROP_CORNER,0.0); 
   ObjectSet("M7",OBJPROP_XDISTANCE,0.0); 
   ObjectSet("M7",OBJPROP_YDISTANCE,40.0); 
   ObjectCreate("M8",OBJ_LABEL,0,0,0.0,0,0.0,0,0.0); 
   ObjectSetText("M8","Please contact bung.jai@gmail.com.",8,"Thoma",Yellow); 
   ObjectSet("M8",OBJPROP_CORNER,0.0); 
   ObjectSet("M8",OBJPROP_XDISTANCE,0.0); 
   ObjectSet("M8",OBJPROP_YDISTANCE,60.0); 
   return(0); 
 }
 if ( 总_3_bo_8 )
 {
   AccountName(); 
   if ( AccountNumber() == 238 )
   {
     ObjectCreate("M6",OBJ_LABEL,0,0,0.0,0,0.0,0,0.0); 
     ObjectSetText("M6","Your expert advisor has expired,",9,"Thoma",Yellow); 
     ObjectSet("M6",OBJPROP_CORNER,0.0); 
     ObjectSet("M6",OBJPROP_XDISTANCE,0.0); 
     ObjectSet("M6",OBJPROP_YDISTANCE,20.0); 
     ObjectCreate("M7",OBJ_LABEL,0,0,0.0,0,0.0,0,0.0); 
     ObjectSetText("M7","or you do not have a license to use it.",9,"Thoma",Yellow); 
     ObjectSet("M7",OBJPROP_CORNER,0.0); 
     ObjectSet("M7",OBJPROP_XDISTANCE,0.0); 
     ObjectSet("M7",OBJPROP_YDISTANCE,40.0); 
     ObjectCreate("M8",OBJ_LABEL,0,0,0.0,0,0.0,0,0.0); 
     ObjectSetText("M8","Please contact bung.jai@gmail.com.",8,"Thoma",Yellow); 
     ObjectSet("M8",OBJPROP_CORNER,0.0); 
     ObjectSet("M8",OBJPROP_XDISTANCE,0.0); 
     ObjectSet("M8",OBJPROP_YDISTANCE,60.0); 
     return(0); 
   }
 }
 子_5_bo = false ;
 if ( 总_31_in_F4 == 1 )
 {
   子_6_st = TimeToString(TimeCurrent(),1) + " " + 总_32_st_F8 ;
   子_7_st = TimeToString(TimeCurrent(),1) + " " + 总_33_st_108 ;
   if ( TimeCurrent() >= StringToTime(子_6_st) && TimeCurrent() <  StringToTime(子_7_st) )
   {
     子_5_bo = true ;
   }
 }
 else
 {
   子_5_bo = true ;
 }
 子_8_in = 0 ;
 子_9_in = 0 ;
 子_10_in = 0 ;
 子_11_in = 0 ;
 子_12_in = 0 ;
 子_13_in = 0 ;
 子_14_do = 0.0 ;
 子_15_do = 0.0 ;
 子_16_do = 0.0 ;
 子_17_do = 0.0 ;
 子_18_do = 0.0 ;
 子_19_do = 0.0 ;
 子_20_do = 0.0 ;
 子_21_lo = 0 ;
 子_22_lo = 0 ;
 子_23_st = "" ;
 总_56_do_1A0 = 0.0 ;
 总_57_do_1A8 = 0.0 ;
 for (子_13_in = 0 ; 子_13_in < OrdersTotal() ; 子_13_in ++)
 {
   总_63_in_1D4 = OrderSelect(子_13_in,0,0) ;
   if ( ( OrderSymbol() != Symbol() && OrderMagicNumber() != Magic ) )   continue;

   if ( OrderType() == 0 )
   {
     子_9_in ++;
     子_8_in ++;
     子_14_do = 子_14_do + OrderProfit() + OrderCommission() + OrderSwap() ;
     子_16_do = 子_16_do + OrderLots() ;
     总_56_do_1A0 = OrderStopLoss() ;
   }
   if ( OrderType() == 1 )
   {
     子_10_in ++;
     子_8_in ++;
     子_15_do = 子_15_do + OrderProfit() + OrderCommission() + OrderSwap() ;
     子_17_do = 子_17_do + OrderLots() ;
     总_57_do_1A8 = OrderStopLoss() ;
   }
   if ( OrderType() == 4 )
   {
     子_12_in ++;
     子_18_do = OrderOpenPrice() ;
     子_8_in ++;
   }
   if ( OrderType() != 5 )   continue;
   子_11_in ++;
   子_19_do = OrderOpenPrice() ;
   子_8_in ++;

 }
 总_50_do_170 = Lots ;
 if ( MM )
 {
   总_50_do_170 = AccountEquity() * Risk / Ketahanan ;
 }
 if ( 总_17_in_84 == 0 )
 {
   if ( TPmf>0.0 && 子_9_in >  0 && 子_14_do>=TPmf )
   {
     lizong_9(0); 
   }
   if ( TPmf>0.0 && 子_10_in >  0 && 子_15_do>=TPmf )
   {
     lizong_9(1); 
   }
 }
 if ( 总_17_in_84 == 1 )
 {
   if ( TPmf>0.0 && 子_9_in >  0 && 子_10_in == 0 && 子_14_do>=TPmf )
   {
     lizong_9(0); 
   }
   if ( TPmf>0.0 && 子_10_in >  0 && 子_9_in == 0 && 子_15_do>=TPmf )
   {
     lizong_9(1); 
   }
   if ( TPmf>0.0 && 子_9_in >  0 && 子_10_in >  0 && 子_14_do + 子_15_do>=TPmf )
   {
     lizong_9(-1); 
   }
 }
 if ( OrdersTotal() >  0 && 总_18_do_88>0.0 && AccountProfit()>0.0 && AccountProfit()>总_18_do_88 )
 {
   lizong_9(-1); 
 }
 子_24_do = 0.0 ;
 if ( AccountProfit()!=0.0 )
 {
   子_24_do = AccountProfit() / AccountBalance() * 100.0 ;
 }
 if ( 子_24_do<0.0 )
 {
   子_25_do = 0.0 ;
   子_25_do = 0.0 - 子_24_do ;
   if ( 子_25_do>总_53_do_188 )
   {
     总_53_do_188 = 子_25_do ;
   }
 }
 if ( SLQf>0.0 && 子_24_do<0.0 )
 {
   子_26_do = 0.0 ;
   子_26_do = 0.0 - 子_24_do ;
   if ( 子_26_do>=SLQf )
   {
     lizong_9(-1); 
   }
 }
 子_27_do = AccountBalance() ;
 子_28_do = AccountEquity() ;
 子_29_do = 子_28_do - 子_27_do ;
 子_30_do = 子_29_do / 子_28_do * 100.0 ;
 if ( Close_Profit && 子_30_do>=TPQf )
 {
   lizong_9(-1); 
 }
 HideTestIndicators(true); 
 子_31_do = iCustom(Symbol(),0,"ZigZag",总_34_in_114,总_35_in_118,总_36_in_11C,1,1) ;
 子_32_do = iCustom(Symbol(),0,"ZigZag",总_34_in_114,总_35_in_118,总_36_in_11C,2,1) ;
 子_33_do = iIchimoku(Symbol(),总_11_in_64,总_13_in_6C,总_14_in_70,总_15_in_74,3,1) ;
 子_34_do = iIchimoku(Symbol(),总_11_in_64,总_13_in_6C,总_14_in_70,总_15_in_74,4,1) ;
 子_35_do = iClose(Symbol(),总_11_in_64,1) ;
 子_36_do = iHigh(Symbol(),总_11_in_64,1) ;
 子_37_do = iLow(Symbol(),总_11_in_64,1) ;
 子_38_do = iOpen(Symbol(),总_11_in_64,1) ;
 子_39_bo = 子_31_do>0.0 && 子_32_do==0.0 &&  (子_35_do>子_33_do && 子_35_do>子_34_do) ;
 子_40_bo = 子_31_do==0.0 && 子_32_do>0.0 &&  (子_35_do<子_34_do && 子_35_do<子_33_do) ;
 if ( 总_9_in_54 == 1 && Volume[0] <  15 && 子_5_bo )
 {
   if ( 子_9_in == 0 && 子_31_do>0.0 && 子_32_do==0.0 && 子_35_do>子_33_do && 子_35_do>子_34_do )
   {
     lizong_7(); 
   }
   if ( 子_10_in == 0 && 子_31_do==0.0 && 子_32_do>0.0 && 子_35_do<子_34_do && 子_35_do<子_33_do )
   {
     lizong_8(); 
   }
 }
 else
 {
   if ( 总_9_in_54 == 2 && Volume[0] <  15 && 子_5_bo )
   {
     if ( 子_10_in == 0 && 子_31_do>0.0 && 子_32_do==0.0 && 子_35_do<子_34_do && 子_35_do<子_33_do )
     {
       lizong_8(); 
     }
     if ( 子_9_in == 0 && 子_31_do==0.0 && 子_32_do>0.0 && 子_35_do>子_33_do && 子_35_do>子_34_do )
     {
       lizong_7(); 
     }
   }
 }
 if ( 子_8_in >  0 )
 {
   lizong_10(); 
 }
 子_41_bo = 子_35_do<子_34_do && 子_35_do<子_33_do ;
 子_42_bo = 子_35_do>子_33_do && 子_35_do>子_34_do ;
 if ( 总_12_bo_68 )
 {
   if ( 子_9_in >  0 && 子_41_bo )
   {
     lizong_9(0); 
   }
   if ( 子_10_in >  0 && 子_42_bo )
   {
     lizong_9(1); 
   }
 }
 if ( 总_21_do_A8>0.0 && 总_22_do_B0>0.0 && 总_17_in_84 == 0 )
 {
   if ( 子_9_in >  0 )
   {
     临_in_1 = 0;
     临_do_2 = 0.0;
     for (临_in_3 = 0 ; 临_in_3 < OrdersTotal() ; 临_in_3=临_in_3 + 1)
     {
       if ( !(OrderSelect(临_in_3,0,0)) || OrderSymbol() != Symbol() || OrderType() != 临_in_1 || OrderMagicNumber() != Magic )   continue;
       临_do_2 = OrderOpenPrice() * OrderLots() + 临_do_2;

     }
     总_54_do_190 = (临_do_2) / 子_16_do ;
     临_do_4 = 总_54_do_190;
     临_do_5 = 总_22_do_B0;
     临_do_6 = 总_21_do_A8;
     临_do_7 = 0.0;
     临_do_8 = 0.0;
     if ( 总_22_do_B0>0.0 )
     {
       for (临_in_9 = OrdersTotal() - 1 ; 临_in_9 >= 0 ; 临_in_9=临_in_9 - 1)
       {
         if ( !(OrderSelect(临_in_9,0,0)) )   continue;

         if ( ( OrderType() != 0 && OrderSymbol() != Symbol() && OrderMagicNumber() != Magic ) )   continue;

         if ( OrderType() == 0 && OrderSymbol() == Symbol() && OrderMagicNumber() == Magic && (Bid - 临_do_4) / 总_47_do_158>=临_do_6 )
         {
           临_do_7 = OrderStopLoss();
           临_do_8 = NormalizeDouble(Bid - 临_do_5 * 总_47_do_158,Digits);
           if ( ( 临_do_7==0.0 || (临_do_7!=0.0 && 临_do_8>临_do_7) ) )
           {
             总_64_in_1D8 = OrderModify(OrderTicket(),临_do_4,临_do_8,OrderTakeProfit(),0,Blue) ;
           }
         }
         Sleep(1000); 

       }
     }
   }
   if ( 子_10_in >  0 )
   {
     临_in_10 = 1;
     临_do_11 = 0.0;
     for (临_in_12 = 0 ; 临_in_12 < OrdersTotal() ; 临_in_12=临_in_12 + 1)
     {
       if ( !(OrderSelect(临_in_12,0,0)) || OrderSymbol() != Symbol() || OrderType() != 临_in_10 || OrderMagicNumber() != Magic )   continue;
       临_do_11 = OrderOpenPrice() * OrderLots() + 临_do_11;

     }
     总_55_do_198 = (临_do_11) / 子_17_do ;
     临_do_13 = 总_55_do_198;
     临_do_14 = 总_22_do_B0;
     临_do_15 = 总_21_do_A8;
     临_do_16 = 0.0;
     临_do_17 = 0.0;
     if ( 总_22_do_B0>0.0 )
     {
       for (临_in_18 = OrdersTotal() - 1 ; 临_in_18 >= 0 ; 临_in_18=临_in_18 - 1)
       {
         if ( !(OrderSelect(临_in_18,0,0)) )   continue;

         if ( ( OrderType() != 1 && OrderSymbol() != Symbol() && OrderMagicNumber() != Magic ) )   continue;

         if ( OrderType() == 1 && OrderSymbol() == Symbol() && OrderMagicNumber() == Magic && (临_do_13 - Ask) / 总_47_do_158>=临_do_15 )
         {
           临_do_16 = OrderStopLoss();
           临_do_17 = NormalizeDouble(临_do_14 * 总_47_do_158 + Ask,Digits);
           if ( ( 临_do_16==0.0 || (临_do_16!=0.0 && 临_do_17<临_do_16) ) )
           {
             总_64_in_1D8 = OrderModify(OrderTicket(),临_do_13,临_do_17,OrderTakeProfit(),0,Red) ;
           }
         }
         Sleep(1000); 

       }
     }
   }
 }
 if ( 总_21_do_A8>0.0 && 总_22_do_B0>0.0 && 总_17_in_84 == 1 )
 {
   if ( 子_9_in >  0 && 子_10_in == 0 )
   {
     临_in_19 = 0;
     临_do_20 = 0.0;
     for (临_in_21 = 0 ; 临_in_21 < OrdersTotal() ; 临_in_21=临_in_21 + 1)
     {
       if ( !(OrderSelect(临_in_21,0,0)) || OrderSymbol() != Symbol() || OrderType() != 临_in_19 || OrderMagicNumber() != Magic )   continue;
       临_do_20 = OrderOpenPrice() * OrderLots() + 临_do_20;

     }
     总_54_do_190 = (临_do_20) / 子_16_do ;
     临_do_22 = 总_54_do_190;
     临_do_23 = 总_22_do_B0;
     临_do_24 = 总_21_do_A8;
     临_do_25 = 0.0;
     临_do_26 = 0.0;
     if ( 总_22_do_B0>0.0 )
     {
       for (临_in_27 = OrdersTotal() - 1 ; 临_in_27 >= 0 ; 临_in_27=临_in_27 - 1)
       {
         if ( !(OrderSelect(临_in_27,0,0)) )   continue;

         if ( ( OrderType() != 0 && OrderSymbol() != Symbol() && OrderMagicNumber() != Magic ) )   continue;

         if ( OrderType() == 0 && OrderSymbol() == Symbol() && OrderMagicNumber() == Magic && (Bid - 临_do_22) / 总_47_do_158>=临_do_24 )
         {
           临_do_25 = OrderStopLoss();
           临_do_26 = NormalizeDouble(Bid - 临_do_23 * 总_47_do_158,Digits);
           if ( ( 临_do_25==0.0 || (临_do_25!=0.0 && 临_do_26>临_do_25) ) )
           {
             总_64_in_1D8 = OrderModify(OrderTicket(),临_do_22,临_do_26,OrderTakeProfit(),0,Blue) ;
           }
         }
         Sleep(1000); 

       }
     }
   }
   if ( 子_10_in >  0 && 子_9_in == 0 )
   {
     临_in_28 = 1;
     临_do_29 = 0.0;
     for (临_in_30 = 0 ; 临_in_30 < OrdersTotal() ; 临_in_30=临_in_30 + 1)
     {
       if ( !(OrderSelect(临_in_30,0,0)) || OrderSymbol() != Symbol() || OrderType() != 临_in_28 || OrderMagicNumber() != Magic )   continue;
       临_do_29 = OrderOpenPrice() * OrderLots() + 临_do_29;

     }
     总_55_do_198 = (临_do_29) / 子_17_do ;
     临_do_31 = 总_55_do_198;
     临_do_32 = 总_22_do_B0;
     临_do_33 = 总_21_do_A8;
     临_do_34 = 0.0;
     临_do_35 = 0.0;
     if ( 总_22_do_B0>0.0 )
     {
       for (临_in_36 = OrdersTotal() - 1 ; 临_in_36 >= 0 ; 临_in_36=临_in_36 - 1)
       {
         if ( !(OrderSelect(临_in_36,0,0)) )   continue;

         if ( ( OrderType() != 1 && OrderSymbol() != Symbol() && OrderMagicNumber() != Magic ) )   continue;

         if ( OrderType() == 1 && OrderSymbol() == Symbol() && OrderMagicNumber() == Magic && (临_do_31 - Ask) / 总_47_do_158>=临_do_33 )
         {
           临_do_34 = OrderStopLoss();
           临_do_35 = NormalizeDouble(临_do_32 * 总_47_do_158 + Ask,Digits);
           if ( ( 临_do_34==0.0 || (临_do_34!=0.0 && 临_do_35<临_do_34) ) )
           {
             总_64_in_1D8 = OrderModify(OrderTicket(),临_do_31,临_do_35,OrderTakeProfit(),0,Red) ;
           }
         }
         Sleep(1000); 

       }
     }
   }
 }
 if ( 总_43_bo_14C )
 {
   子_43_do = NormalizeDouble(MarketInfo(Symbol(),MODE_SPREAD),2) ;
   子_44_do = 子_14_do ;
   子_45_do = 子_15_do ;
   子_46_do = AccountProfit() ;
   子_47_ui = LightGray ;
   子_48_ui = LightGray ;
   子_49_ui = LightGray ;
   子_50_ui = LightGray ;
   子_51_ui = LightGray ;
   子_52_ui = 0 ;
   if ( 子_46_do>0.0 )
   {
     子_48_ui = Lime ;
   }
   if ( 子_46_do<0.0 )
   {
     子_48_ui = Red ;
   }
   if ( 子_44_do>0.0 )
   {
     子_49_ui = Lime ;
   }
   if ( 子_44_do<0.0 )
   {
     子_49_ui = Red ;
   }
   if ( 子_45_do>0.0 )
   {
     子_50_ui = Lime ;
   }
   if ( 子_45_do<0.0 )
   {
     子_50_ui = Red ;
   }
   子_53_do = AccountFreeMargin() ;
   子_54_ui = White ;
   if ( 子_53_do>0.0 )
   {
     子_54_ui = GreenYellow ;
   }
   if ( 子_53_do<0.0 )
   {
     子_54_ui = Red ;
   }
   if ( 子_53_do==0.0 )
   {
     子_54_ui = Yellow ;
   }
   临_in_37 = 1;
   临_ui_38 = DodgerBlue;
   临_in_39 = 18;
   临_in_40 = 10;
   临_in_41 = 9;
   临_st_42 = WindowExpertName();
   if ( ObjectFind("ea") <  0 )
   {
     ObjectCreate("ea",OBJ_LABEL,0,0,0.0,0,0.0,0,0.0); 
   }
   ObjectSet("ea",OBJPROP_CORNER,临_in_37); 
   ObjectSet("ea",OBJPROP_XDISTANCE,临_in_40); 
   ObjectSet("ea",OBJPROP_YDISTANCE,临_in_39); 
   ObjectSetText(

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

Как получить полную версию?

Введите ваш email и нажмите кнопку, чтобы перейти к оплате.