Navigation:Home > Content >

EA_DS_V9_-_RC1_EDU.mq4

Time: 2012-01-25 | Download file:EA_DS_V9_-_RC1_EDU.mq4

//=============================================================================================
//Decompiled and Educated by lptuyen at www.forexisbiz.com (FIB Forum)
//Profile: http://www.forexisbiz.com/member.php/11057-lptuyen?tab=aboutme#aboutme
//Email: lptuyen_fx@yahoo.com
//Another forum: lptuyen at WWI
//http://worldwide-invest.org/members/48543-lptuyen?tab=aboutme#aboutme
//=============================================================================================

#property copyright "Copyright © 2013, Rungsing19"
#property link      "http://www.facebook.com/KiAgenk"

//#include 
#import "stdlib.ex4"
   string ErrorDescription(int a0); // DA69CBAFF4D38B87377667EEC549DE5A
#import

extern string _____ON_OFF_EA_____ = "false= EA tidak akan membuka OP";
extern bool HIDUPKAN = TRUE;
extern double Lots = 0.01;
extern string _____Identitas_OP_____ = "Isikan nomor berbeda pada tiap Pair";
extern int MagicNumber = 76500;
extern string _____TARGET_____ = "Isi berapa $ target close OP";
extern double TARGET_$_PROFIT = 20.0;
extern string _____TARGET_HARIAN____ = "true= tidak OP lagi jika nyampe target";
extern bool STOP_OP_JIKA_KENA_TARGET = FALSE;
double Gd_136 = 10.0;
double Gd_144 = 10.0;
extern bool CLOSE_ALL_JIKA_PROFIT = FALSE;
extern int Slippage = 3;
extern bool TIMEFILTER = FALSE;
extern int GMTOffset = 0;
extern int Mulai_Jam = 6;
extern int Stop_Jam = 20;
int Gi_176;
int G_pos_180;
int G_index_184;
int G_index_188;
int G_index_192;
int G_index_196;
int G_index_200;
int G_index_204;
int G_count_208;
int G_count_212;
int G_count_216;
int G_count_220;
int G_count_224;
int G_count_228;
int G_ticket_232;
int G_error_236;
double Gda_240[99];
double Gda_244[99];
double Gda_248[99];
double Gda_252[99];
double Gda_256[99];
double Gda_260[99];
int Gi_unused_264 = 0;
int G_count_268 = 0;
double Gd_272;
double G_pos_280;
double G_minlot_288;
int Gi_unused_296 = 16776960;
int Gi_300 = 16748574;
int G_color_304 = Lime;
int Gi_308 = 65535;
int Gi_312 = 12632256;
int Gi_316 = 65280;
string Gs_unused_320 = "Jarak PO dr harga skrg";
double Gd_328 = 7.0;
string Gs_unused_336 = "Jarak PO pertama ke PO berikutnya";
double Gd_344 = 5.0;
string Gs_unused_352 = "Buy Stop / Sell Stop / keduanya juga boleh";
bool Gi_360 = TRUE;
bool Gi_364 = TRUE;
double G_price_368;
double G_price_376;

// E37F0136AA3FFAF149B351F6A4C948E9
int init() {
   if (Digits == 3 || Digits == 5) Gd_272 = 10.0 * Point;
   else Gd_272 = Point;
   G_minlot_288 = MarketInfo(Symbol(), MODE_MINLOT);
   if (G_minlot_288 == 0.01) Gi_unused_264 = 2;
   else {
      if (G_minlot_288 == 0.1) Gi_unused_264 = 1;
      else Gi_unused_264 = 0;
   }
   return (0);
}
	   	    		  	 	 		 				      		 			 		     	 	  		    	   				 	  	    	 	 								 	 						  			 			     		  			 			  	  			 	 		 			 		 		  	 
// 5524E95EE77830A0E253526C99705D8E
string f0_0() {
   double ima_0 = iMA(NULL, 0, 11, 0, MODE_LWMA, PRICE_MEDIAN, 1);
   double ima_8 = iMA(NULL, 0, 29, 0, MODE_LWMA, PRICE_MEDIAN, 1);
   double ima_16 = iMA(NULL, 0, 11, 0, MODE_LWMA, PRICE_MEDIAN, 0);
   double ima_24 = iMA(NULL, 0, 29, 0, MODE_LWMA, PRICE_MEDIAN, 0);
   if (ima_8 > ima_0 && Bid < ima_8) return ("sell");
   if (ima_8 < ima_0 && Ask > ima_8) return ("buy");
   return ("wait and see");
}
	 		    		 			 			 	 				 			 				  			 	 		  	 		 		  		 	  		   	 	      	 			 	  		 	 	     	 		  	  	 	    	 		  	    	  	 			 	 		  		    		
// 52D46093050F38C27267BCE42543EF60
int deinit() {
   ObjectsDeleteAll(0, OBJ_LABEL);
   return (0);
}
		 					  		  	   			    	 	 	    	    	 	 			 	  		 		  	  	  			   								   	 	   	 	 	 			 	   	 		 	  			 	   	 				  	 	   			  		   			  
// EA2B2676C28C0DB26D39331A336C6B92
int start() {
   double Ld_100;
   double Ld_108;
   double Ld_116;
   double Ld_124;
   /*string Ls_0 = "2013.07.26 14:00";
   int str2time_8 = StrToTime(Ls_0);
   if (TimeCurrent() >= str2time_8) {
      Alert("EA expired! Silahkan hubungi developer (0877 6500 6600)");
      Print("EA expired! Silahkan hubungi developer (0877 6500 6600)");
      return (0);
   }*/
   G_index_200 = 0;
   G_index_184 = 0;
   G_index_188 = 0;
   G_index_192 = 0;
   G_index_196 = 0;
   G_index_204 = 0;
   G_count_208 = 0;
   G_count_220 = 0;
   G_count_212 = 0;
   G_count_216 = 0;
   G_count_228 = 0;
   G_count_224 = 0;
   for (G_pos_180 = 0; G_pos_180 < OrdersTotal(); G_pos_180++) {
      OrderSelect(G_pos_180, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() != Symbol() || OrderMagicNumber() != MagicNumber) continue;
      if (OrderType() == OP_BUY) {
         Gda_240[G_index_200] = OrderOpenPrice();
         G_index_200++;
         G_count_208++;
      }
      if (OrderType() == OP_SELL) {
         Gda_244[G_index_204] = OrderOpenPrice();
         G_index_204++;
         G_count_220++;
      }
      if (OrderType() == OP_BUYLIMIT) {
         Gda_248[G_index_184] = OrderOpenPrice();
         G_index_184++;
         G_count_212++;
      }
      if (OrderType() == OP_SELLLIMIT) {
         Gda_252[G_index_188] = OrderOpenPrice();
         G_index_188++;
         G_count_216++;
      }
      if (OrderType() == OP_SELLSTOP) {
         Gda_260[G_index_192] = OrderOpenPrice();
         G_index_192++;
         G_count_228++;
      }
      if (OrderType() == OP_BUYSTOP) {
         Gda_256[G_index_196] = OrderOpenPrice();
         G_index_196++;
         G_count_224++;
      }
   }
   string text_12 = "Equity : $ " + DoubleToStr(AccountEquity(), 2);
   ObjectCreate("Market_Price_Label1", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("Market_Price_Label1", text_12, 9, "Arial Bold", Fuchsia);
   ObjectSet("Market_Price_Label1", OBJPROP_CORNER, 0);
   ObjectSet("Market_Price_Label1", OBJPROP_XDISTANCE, 220);
   ObjectSet("Market_Price_Label1", OBJPROP_YDISTANCE, 90);
   string text_20 = "Balance : $ " + DoubleToStr(AccountBalance(), 2);
   ObjectCreate("Market_Price_Label2", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("Market_Price_Label2", text_20, 9, "Arial Bold", Gold);
   ObjectSet("Market_Price_Label2", OBJPROP_CORNER, 0);
   ObjectSet("Market_Price_Label2", OBJPROP_XDISTANCE, 25);
   ObjectSet("Market_Price_Label2", OBJPROP_YDISTANCE, 90);
   string text_28 = "--------------------------------------------------------------------";
   ObjectCreate("Market_Price_Label3", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("Market_Price_Label3", text_28, 14, "Arial Bold", Blue);
   ObjectSet("Market_Price_Label3", OBJPROP_CORNER, 0);
   ObjectSet("Market_Price_Label3", OBJPROP_XDISTANCE, 25);
   ObjectSet("Market_Price_Label3", OBJPROP_YDISTANCE, 27);
   string text_36 = "--------------------------------------------------------------------";
   ObjectCreate("Market_Price_Label4", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("Market_Price_Label4", text_36, 14, "Arial Bold", Blue);
   ObjectSet("Market_Price_Label4", OBJPROP_CORNER, 0);
   ObjectSet("Market_Price_Label4", OBJPROP_XDISTANCE, 25);
   ObjectSet("Market_Price_Label4", OBJPROP_YDISTANCE, 73);
   string text_44 = "---------------------------------------------------------";
   ObjectCreate("Market_Price_Label5", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("Market_Price_Label5", text_44, 15, "Arial Bold", White);
   ObjectSet("Market_Price_Label5", OBJPROP_CORNER, 0);
   ObjectSet("Market_Price_Label5", OBJPROP_XDISTANCE, 25);
   ObjectSet("Market_Price_Label5", OBJPROP_YDISTANCE, 60);
   string text_52 = "= DS V9 MIRACLE OF WALISONGO =";
   ObjectCreate("Market_Price_Label6", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("Market_Price_Label6", text_52, 15, "Arial Black", G_color_304);
   ObjectSet("Market_Price_Label6", OBJPROP_CORNER, 0);
   ObjectSet("Market_Price_Label6", OBJPROP_XDISTANCE, 25);
   ObjectSet("Market_Price_Label6", OBJPROP_YDISTANCE, 40);
   string text_60 = "JUMLAH BUY STOP   : " + G_count_224;
   ObjectCreate("Market_Price_Label9", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("Market_Price_Label9", text_60, 9, "Comic Sans MS", Aqua);
   ObjectSet("Market_Price_Label9", OBJPROP_CORNER, 0);
   ObjectSet("Market_Price_Label9", OBJPROP_XDISTANCE, 25);
   ObjectSet("Market_Price_Label9", OBJPROP_YDISTANCE, 125);
   string text_68 = "JUMLAH SELL STOP  : " + G_count_228;
   ObjectCreate("Market_Price_Label10", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("Market_Price_Label10", text_68, 9, "Comic Sans MS", Fuchsia);
   ObjectSet("Market_Price_Label10", OBJPROP_CORNER, 0);
   ObjectSet("Market_Price_Label10", OBJPROP_XDISTANCE, 25);
   ObjectSet("Market_Price_Label10", OBJPROP_YDISTANCE, 145);
   string text_76 = "JUMLAH BUY   : " + G_count_208;
   ObjectCreate("Market_Price_Label11", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("Market_Price_Label11", text_76, 9, "Arial Bold", DodgerBlue);
   ObjectSet("Market_Price_Label11", OBJPROP_CORNER, 0);
   ObjectSet("Market_Price_Label11", OBJPROP_XDISTANCE, 200);
   ObjectSet("Market_Price_Label11", OBJPROP_YDISTANCE, 125);
   string text_84 = "JUMLAH SELL : " + G_count_220;
   ObjectCreate("Market_Price_Label12", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("Market_Price_Label12", text_84, 9, "Arial Bold", DeepPink);
   ObjectSet("Market_Price_Label12", OBJPROP_CORNER, 0);
   ObjectSet("Market_Price_Label12", OBJPROP_XDISTANCE, 200);
   ObjectSet("Market_Price_Label12", OBJPROP_YDISTANCE, 145);
   double Ld_92 = NormalizeDouble((Ask - Bid) / Gd_272, 0);
   if (Gd_144 > 0.0) {
      Ld_100 = Ask - Gd_144 * Gd_272;
      Ld_108 = Bid + Gd_144 * Gd_272;
   }
   if (Gd_144 == 0.0) {
      Ld_100 = 0;
      Ld_108 = 0;
   }
   if (Gd_136 > 0.0) {
      Ld_116 = Ask + Gd_136 * Gd_272;
      Ld_124 = Bid - Gd_136 * Gd_272;
   }
   if (Gd_136 == 0.0) {
      Ld_116 = 0;
      Ld_124 = 0;
   }
   double order_lots_132 = 0;
   for (G_pos_280 = 0; G_pos_280 < OrdersTotal(); G_pos_280++) {
      OrderSelect(G_pos_280, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() != Symbol() || OrderMagicNumber() != MagicNumber || OrderType() > OP_SELL) continue;
      order_lots_132 = OrderLots();
   }
   double order_profit_140 = 0;
   for (G_pos_280 = 0; G_pos_280 < OrdersHistoryTotal(); G_pos_280++) {
      OrderSelect(OrdersHistoryTotal() - 1, SELECT_BY_POS, MODE_HISTORY);
      if (OrderSymbol() != Symbol() || OrderMagicNumber() != MagicNumber || OrderType() > OP_SELL) continue;
      order_profit_140 = OrderProfit();
   }
   double order_lots_148 = 0;
   for (G_pos_280 = 0; G_pos_280 < OrdersHistoryTotal(); G_pos_280++) {
      OrderSelect(OrdersHistoryTotal() - 1, SELECT_BY_POS, MODE_HISTORY);
      if (OrderSymbol() != Symbol() || OrderMagicNumber() != MagicNumber || OrderType() > OP_SELL) continue;
      order_lots_148 = OrderLots();
   }
   double Ld_156 = 0;
   for (G_pos_280 = 0; G_pos_280 < OrdersTotal(); G_pos_280++) {
      OrderSelect(G_pos_280, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() != Symbol() || OrderMagicNumber() != MagicNumber || OrderType() > OP_SELL) continue;
      Ld_156 += OrderProfit();
   }
   string text_164 = "PROFIT : $ " + DoubleToStr(Ld_156, 2);
   ObjectCreate("Market_Price_Label13", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("Market_Price_Label13", text_164, 9, "Comic Sans MS", Lime);
   ObjectSet("Market_Price_Label13", OBJPROP_CORNER, 0);
   ObjectSet("Market_Price_Label13", OBJPROP_XDISTANCE, 350);
   ObjectSet("Market_Price_Label13", OBJPROP_YDISTANCE, 90);
   double order_lots_172 = 0;
   for (G_pos_280 = 0; G_pos_280 < OrdersHistoryTotal(); G_pos_280++) {
      OrderSelect(G_pos_280, SELECT_BY_POS, MODE_HISTORY);
      if (OrderSymbol() != Symbol() || OrderMagicNumber() != MagicNumber || OrderType() > OP_SELL) continue;
      order_lots_172 = OrderLots();
   }
   double cmd_180 = 9;
   for (G_pos_280 = 0; G_pos_280 < OrdersHistoryTotal(); G_pos_280++) {
      OrderSelect(G_pos_280, SELECT_BY_POS, MODE_HISTORY);
      if (OrderSymbol() != Symbol() || OrderMagicNumber() != MagicNumber || OrderType() > OP_SELL) continue;
      cmd_180 = OrderType();
   }
   string Ls_188 = "BELUM ADA OP";
   if (cmd_180 == 0.0) Ls_188 = "OP BUY";
   if (cmd_180 == 1.0) Ls_188 = "OP SELL";
   string text_196 = "OP SEBELUMNYA : " + Ls_188;
   ObjectCreate("Market_Price_Label14", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("Market_Price_Label14", text_196, 9, "Comic Sans MS", Yellow);
   ObjectSet("Market_Price_Label14", OBJPROP_CORNER, 0);
   ObjectSet("Market_Price_Label14", OBJPROP_XDISTANCE, 350);
   ObjectSet("Market_Price_Label14", OBJPROP_YDISTANCE, 135);
   double Ld_unused_204 = 0;
   for (G_pos_280 = 0; G_pos_280 < OrdersTotal(); G_pos_280++) {
      OrderSelect(G_pos_280, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() != Symbol() || OrderMagicNumber() != MagicNumber || OrderType() > OP_SELL) continue;
      Ld_unused_204 = OrderType();
   }
   double Ld_212 = 0;
   for (G_pos_280 = 0; G_pos_280 < OrdersTotal(); G_pos_280++) {
      OrderSelect(G_pos_280, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() != Symbol() || OrderMagicNumber() != MagicNumber || OrderType() > OP_SELL) continue;
      Ld_212 = OrderTakeProfit();
   }
   double Ld_220 = 0;
   for (G_pos_280 = 0; G_pos_280 < OrdersTotal(); G_pos_280++) {
      OrderSelect(G_pos_280, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() != Symbol() || OrderMagicNumber() != MagicNumber || OrderType() > OP_SELL) continue;
      Ld_212 = OrderStopLoss();
   }
   double Ld_228 = 0;
   for (G_pos_280 = 0; G_pos_280 < OrdersHistoryTotal(); G_pos_280++) {
      OrderSelect(OrdersHistoryTotal() - 1, SELECT_BY_POS, MODE_HISTORY);
      if (OrderSymbol() != Symbol() || OrderMagicNumber() != MagicNumber || OrderType() > OP_SELL) continue;
      Ld_228 = OrderTakeProfit();
   }
   double Ld_unused_236 = 0;
   for (G_pos_280 = 0; G_pos_280 < OrdersHistoryTotal(); G_pos_280++) {
      OrderSelect(OrdersHistoryTotal() - 1, SELECT_BY_POS, MODE_HISTORY);
      if (OrderSymbol() != Symbol() || OrderMagicNumber() != MagicNumber || OrderType() > OP_SELL) continue;
      Ld_228 = OrderStopLoss();
   }
   int Li_244 = G_count_208 + G_count_220;
   if (HIDUPKAN && G_count_208 + G_count_220 == 0 && G_count_224 + G_count_228 == 0 && f0_3() && Gi_176 != Time[0]) {
      if (f0_0() == "sell" || f0_0() == "buy") {
         if (Gi_360 == TRUE) {
            G_price_368 = Ask + Gd_328 * Gd_272;
            G_ticket_232 = OrderSend(Symbol(), OP_BUYSTOP, Lots, G_price_368, 0, Bid - Gd_328 * Gd_272 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272), G_price_368 + 20.0 * Gd_272 +
               9.0 * (Gd_344 * Gd_272), "SUNAN GRESIK", MagicNumber, 0, CLR_NONE);
            OrderSend(Symbol(), OP_BUYSTOP, 2.0 * Lots, G_price_368 + Gd_344 * Gd_272, 0, Bid - Gd_328 * Gd_272 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272), G_price_368 + 20.0 * Gd_272 +
               9.0 * (Gd_344 * Gd_272), "SUNAN AMPEL", MagicNumber, 0, CLR_NONE);
            OrderSend(Symbol(), OP_BUYSTOP, 3.0 * Lots, G_price_368 + 2.0 * (Gd_344 * Gd_272), 0, Bid - Gd_328 * Gd_272 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272), G_price_368 +
               20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), "SUNAN BONANG", MagicNumber, 0, CLR_NONE);
            OrderSend(Symbol(), OP_BUYSTOP, 4.0 * Lots, G_price_368 + 3.0 * (Gd_344 * Gd_272), 0, Bid - Gd_328 * Gd_272 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272), G_price_368 +
               20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), "SUNAN DRAJAT", MagicNumber, 0, CLR_NONE);
            OrderSend(Symbol(), OP_BUYSTOP, 5.0 * Lots, G_price_368 + 4.0 * (Gd_344 * Gd_272), 0, Bid - Gd_328 * Gd_272 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272), G_price_368 +
               20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), "SUNAN KUDUS", MagicNumber, 0, CLR_NONE);
            OrderSend(Symbol(), OP_BUYSTOP, 6.0 * Lots, G_price_368 + 5.0 * (Gd_344 * Gd_272), 0, Bid - Gd_328 * Gd_272 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272), G_price_368 +
               20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), "SUNAN GIRI", MagicNumber, 0, CLR_NONE);
            OrderSend(Symbol(), OP_BUYSTOP, 7.0 * Lots, G_price_368 + 6.0 * (Gd_344 * Gd_272), 0, Bid - Gd_328 * Gd_272 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272), G_price_368 +
               20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), "SUNAN KALIJAGA", MagicNumber, 0, CLR_NONE);
            OrderSend(Symbol(), OP_BUYSTOP, 8.0 * Lots, G_price_368 + 7.0 * (Gd_344 * Gd_272), 0, Bid - Gd_328 * Gd_272 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272), G_price_368 +
               20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), "SUNAN MURIA", MagicNumber, 0, CLR_NONE);
            OrderSend(Symbol(), OP_BUYSTOP, 9.0 * Lots, G_price_368 + 8.0 * (Gd_344 * Gd_272), 0, Bid - Gd_328 * Gd_272 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272), G_price_368 +
               20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), "SUNAN GUNUNGJATI", MagicNumber, 0, CLR_NONE);
            OrderSend(Symbol(), OP_BUYSTOP, 10.0 * Lots, G_price_368 + 9.0 * (Gd_344 * Gd_272), 0, Bid - Gd_328 * Gd_272 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272), G_price_368 +
               20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), "SYEKH SITI JENAR", MagicNumber, 0, CLR_NONE);
            Alert("SEMUA PO BUYSTOP terpasang...! Insya Allah Profit!!");
         }
         if (Gi_364 == TRUE) {
            G_price_376 = Bid - Gd_328 * Gd_272;
            G_ticket_232 = OrderSend(Symbol(), OP_SELLSTOP, Lots, G_price_376, 0, Ask + Gd_328 * Gd_272 + 20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), G_price_376 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272),
               "#SUNAN GRESIK#", MagicNumber, 0, CLR_NONE);
            OrderSend(Symbol(), OP_SELLSTOP, 2.0 * Lots, G_price_376 - Gd_344 * Gd_272, 0, Ask + Gd_328 * Gd_272 + 20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), G_price_376 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272),
               "#SUNAN AMPEL#", MagicNumber, 0, CLR_NONE);
            OrderSend(Symbol(), OP_SELLSTOP, 3.0 * Lots, G_price_376 - 2.0 * (Gd_344 * Gd_272), 0, Ask + Gd_328 * Gd_272 + 20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), G_price_376 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272),
               "#SUNAN BONANG#", MagicNumber, 0, CLR_NONE);
            OrderSend(Symbol(), OP_SELLSTOP, 4.0 * Lots, G_price_376 - 3.0 * (Gd_344 * Gd_272), 0, Ask + Gd_328 * Gd_272 + 20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), G_price_376 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272),
               "#SUNAN DRAJAT#", MagicNumber, 0, CLR_NONE);
            OrderSend(Symbol(), OP_SELLSTOP, 5.0 * Lots, G_price_376 - 4.0 * (Gd_344 * Gd_272), 0, Ask + Gd_328 * Gd_272 + 20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), G_price_376 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272),
               "#SUNAN KUDUS#", MagicNumber, 0, CLR_NONE);
            OrderSend(Symbol(), OP_SELLSTOP, 6.0 * Lots, G_price_376 - 5.0 * (Gd_344 * Gd_272), 0, Ask + Gd_328 * Gd_272 + 20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), G_price_376 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272),
               "#SUNAN GIRI#", MagicNumber, 0, CLR_NONE);
            OrderSend(Symbol(), OP_SELLSTOP, 7.0 * Lots, G_price_376 - 6.0 * (Gd_344 * Gd_272), 0, Ask + Gd_328 * Gd_272 + 20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), G_price_376 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272),
               "#SUNAN KALIJAGA#", MagicNumber, 0, CLR_NONE);
            OrderSend(Symbol(), OP_SELLSTOP, 8.0 * Lots, G_price_376 - 7.0 * (Gd_344 * Gd_272), 0, Ask + Gd_328 * Gd_272 + 20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), G_price_376 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272),
               "#SUNAN MURIA#", MagicNumber, 0, CLR_NONE);
            OrderSend(Symbol(), OP_SELLSTOP, 9.0 * Lots, G_price_376 - 8.0 * (Gd_344 * Gd_272), 0, Ask + Gd_328 * Gd_272 + 20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), G_price_376 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272),
               "#SUNAN GUNUNGJATI#", MagicNumber, 0, CLR_NONE);
            OrderSend(Symbol(), OP_SELLSTOP, 10.0 * Lots, G_price_376 - 9.0 * (Gd_344 * Gd_272), 0, Ask + Gd_328 * Gd_272 + 20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), G_price_376 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272),
               "#SYEKH SITI JENAR#", MagicNumber, 0, CLR_NONE);
            Alert("SEMUA PO SELLSTOP terpasang...! Insya Allah Profit!!");
         }
         if (G_ticket_232 < 1) {
            G_error_236 = GetLastError();
            Print("Error = ", ErrorDescription(G_error_236));
            return;
         }
         OrderPrint();
      }
   }
   if (G_count_208 == 9 && G_count_220 == 9 && G_count_224 + G_count_228 == 2) {
      if (Gi_360 == TRUE) {
         G_price_368 = Ask + Gd_328 * Gd_272;
         G_ticket_232 = OrderSend(Symbol(), OP_BUYSTOP, 2.0 * Lots, Ask + 6.0 * Gd_272, 0, Bid - Gd_328 * Gd_272 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272), G_price_368 + 20.0 * Gd_272 +
            9.0 * (Gd_344 * Gd_272), "SUNAN GRESIK", MagicNumber, 0, CLR_NONE);
         OrderSend(Symbol(), OP_BUYSTOP, 4.0 * Lots, G_price_368 + Gd_344 * Gd_272, 0, Bid - Gd_328 * Gd_272 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272), G_price_368 + 20.0 * Gd_272 +
            9.0 * (Gd_344 * Gd_272), "SUNAN AMPEL", MagicNumber, 0, CLR_NONE);
         OrderSend(Symbol(), OP_BUYSTOP, 6.0 * Lots, G_price_368 + 2.0 * (Gd_344 * Gd_272), 0, Bid - Gd_328 * Gd_272 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272), G_price_368 +
            20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), "SUNAN BONANG", MagicNumber, 0, CLR_NONE);
         OrderSend(Symbol(), OP_BUYSTOP, 8.0 * Lots, G_price_368 + 3.0 * (Gd_344 * Gd_272), 0, Bid - Gd_328 * Gd_272 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272), G_price_368 +
            20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), "SUNAN DRAJAT", MagicNumber, 0, CLR_NONE);
         OrderSend(Symbol(), OP_BUYSTOP, 10.0 * Lots, G_price_368 + 4.0 * (Gd_344 * Gd_272), 0, Bid - Gd_328 * Gd_272 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272), G_price_368 +
            20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), "SUNAN KUDUS", MagicNumber, 0, CLR_NONE);
         OrderSend(Symbol(), OP_BUYSTOP, 12.0 * Lots, G_price_368 + 5.0 * (Gd_344 * Gd_272), 0, Bid - Gd_328 * Gd_272 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272), G_price_368 +
            20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), "SUNAN GIRI", MagicNumber, 0, CLR_NONE);
         OrderSend(Symbol(), OP_BUYSTOP, 14.0 * Lots, G_price_368 + 6.0 * (Gd_344 * Gd_272), 0, Bid - Gd_328 * Gd_272 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272), G_price_368 +
            20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), "SUNAN KALIJAGA", MagicNumber, 0, CLR_NONE);
         OrderSend(Symbol(), OP_BUYSTOP, 16.0 * Lots, G_price_368 + 7.0 * (Gd_344 * Gd_272), 0, Bid - Gd_328 * Gd_272 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272), G_price_368 +
            20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), "SUNAN MURIA", MagicNumber, 0, CLR_NONE);
         OrderSend(Symbol(), OP_BUYSTOP, 18.0 * Lots, G_price_368 + 8.0 * (Gd_344 * Gd_272), 0, Bid - Gd_328 * Gd_272 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272), G_price_368 +
            20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), "SUNAN GUNUNGJATI", MagicNumber, 0, CLR_NONE);
         OrderSend(Symbol(), OP_BUYSTOP, 20.0 * Lots, G_price_368 + 9.0 * (Gd_344 * Gd_272), 0, Bid - Gd_328 * Gd_272 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272), G_price_368 +
            20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), "SYEKH SITI JENAR", MagicNumber, 0, CLR_NONE);
         Alert("SEMUA PO BUYSTOP terpasang...! Insya Allah Profit!!");
      }
      if (Gi_364 == TRUE) {
         G_price_376 = Bid - Gd_328 * Gd_272;
         G_ticket_232 = OrderSend(Symbol(), OP_SELLSTOP, 2.0 * Lots, Bid - 6.0 * Gd_272, 0, Ask + Gd_328 * Gd_272 + 20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), G_price_376 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272),
            "#SUNAN GRESIK#", MagicNumber, 0, CLR_NONE);
         OrderSend(Symbol(), OP_SELLSTOP, 4.0 * Lots, G_price_376 - Gd_344 * Gd_272, 0, Ask + Gd_328 * Gd_272 + 20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), G_price_376 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272),
            "#SUNAN AMPEL#", MagicNumber, 0, CLR_NONE);
         OrderSend(Symbol(), OP_SELLSTOP, 6.0 * Lots, G_price_376 - 2.0 * (Gd_344 * Gd_272), 0, Ask + Gd_328 * Gd_272 + 20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), G_price_376 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272),
            "#SUNAN BONANG#", MagicNumber, 0, CLR_NONE);
         OrderSend(Symbol(), OP_SELLSTOP, 8.0 * Lots, G_price_376 - 3.0 * (Gd_344 * Gd_272), 0, Ask + Gd_328 * Gd_272 + 20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), G_price_376 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272),
            "#SUNAN DRAJAT#", MagicNumber, 0, CLR_NONE);
         OrderSend(Symbol(), OP_SELLSTOP, 10.0 * Lots, G_price_376 - 4.0 * (Gd_344 * Gd_272), 0, Ask + Gd_328 * Gd_272 + 20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), G_price_376 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272),
            "#SUNAN KUDUS#", MagicNumber, 0, CLR_NONE);
         OrderSend(Symbol(), OP_SELLSTOP, 12.0 * Lots, G_price_376 - 5.0 * (Gd_344 * Gd_272), 0, Ask + Gd_328 * Gd_272 + 20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), G_price_376 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272),
            "#SUNAN GIRI#", MagicNumber, 0, CLR_NONE);
         OrderSend(Symbol(), OP_SELLSTOP, 14.0 * Lots, G_price_376 - 6.0 * (Gd_344 * Gd_272), 0, Ask + Gd_328 * Gd_272 + 20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), G_price_376 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272),
            "#SUNAN KALIJAGA#", MagicNumber, 0, CLR_NONE);
         OrderSend(Symbol(), OP_SELLSTOP, 16.0 * Lots, G_price_376 - 7.0 * (Gd_344 * Gd_272), 0, Ask + Gd_328 * Gd_272 + 20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), G_price_376 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272),
            "#SUNAN MURIA#", MagicNumber, 0, CLR_NONE);
         OrderSend(Symbol(), OP_SELLSTOP, 18.0 * Lots, G_price_376 - 8.0 * (Gd_344 * Gd_272), 0, Ask + Gd_328 * Gd_272 + 20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), G_price_376 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272),
            "#SUNAN GUNUNGJATI#", MagicNumber, 0, CLR_NONE);
         OrderSend(Symbol(), OP_SELLSTOP, 20.0 * Lots, G_price_376 - 9.0 * (Gd_344 * Gd_272), 0, Ask + Gd_328 * Gd_272 + 20.0 * Gd_272 + 9.0 * (Gd_344 * Gd_272), G_price_376 - 20.0 * Gd_272 - 9.0 * (Gd_344 * Gd_272),
            "#SYEKH SITI JENAR#", MagicNumber, 0, CLR_NONE);
         Alert("SEMUA PO SELLSTOP terpasang...! Insya Allah Profit!!");
      }
      if (G_ticket_232 < 1) {
         G_error_236 = GetLastError();
         Print("Error = ", ErrorDescription(G_error_236));
         return;
      }
      OrderPrint();
   }
   if (G_count_208 == 7 && G_count_220 == 7 && G_count_224 + G_count_228 == 6) {
      for (int pos_248 = OrdersTotal() - 1; pos_248 >= 0; pos_248--) {
         OrderSelect(pos_248, SELECT_BY_POS, MODE_TRADES);
         if (OrderSymbol() != Symbol() || OrderMagicNumber() != MagicNumber) continue;
         if (OrderType() == OP_BUY || OrderType() == OP_BUYSTOP)
            if (OrderTakeProfit() != Ld_212 + 35.0 * Gd_272) OrderModify(OrderTicket(), OrderOpenPrice(), Ld_220 - 35.0 * Gd_272, Ld_212 + 35.0 * Gd_272, 0, CLR_NONE);
         if (OrderType() == OP_SELL || OrderType() == OP_SELLSTOP)
            if (OrderTakeProfit() != Ld_212 - 35.0 * Gd_272) OrderModify(OrderTicket(), OrderOpenPrice(), Ld_220 + 35.0 * Gd_272, Ld_212 - 35.0 * Gd_272, 0, CLR_NONE);
      }
   }
   for (pos_248 = OrdersTotal() - 1; pos_248 >= 0; pos_248--) {
      OrderSelect(pos_248, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() != Symbol() || OrderMagicNumber() != MagicNumber) continue;
      if (OrderType() == OP_BUYSTOP)
         if (OrderTakeProfit() == Ld_228) f0_4();
      if (OrderType() == OP_SELLSTOP)
         if (OrderTakeProfit() == Ld_228) f0_4();
   }
   if (CLOSE_ALL_JIKA_PROFIT == TRUE && order_profit_140 > 0.0 || G_count_268 > 0) {
      f0_2();
      f0_2();
      f0_2();
      G_count_268++;
      if (f0_6() == 0) G_count_268 = 0;
   }
   if (Ld_156 >= TARGET_$_PROFIT || G_count_268 > 0) {
      f0_2();
      f0_2();
      f0_2();
      G_count_268++;
      if (f0_6() == 0) G_count_268 = 0;
   }
   if (STOP_OP_JIKA_KENA_TARGET && Ld_156 >= TARGET_$_PROFIT) {
      f0_2();
      f0_2();
      f0_2();
      HIDUPKAN = FALSE;
   }
   f0_5();
   return (0);
}
	       			 		 				  				   	 									 	     	 			 	  		  	 		    		     	  			 					 	 			   	 	 	 	  	  	   	 	 	 	     	 	 				  		  	 	   		
// FBB44B4487415B134BCE9C790A27FE5E
int f0_6() {
   int count_0 = 0;
   for (G_pos_280 = OrdersTotal() - 1; G_pos_280 >= 0.0; G_pos_280--) {
      OrderSelect(G_pos_280, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() != Symbol() || OrderMagicNumber() != MagicNumber) continue;
      count_0++;
   }
   return (count_0);
}
			 		         	    	 		 		  			   	  	  		 			      	 	 				 	 				 	  		  	 			  	   		  			 		 			    					 		 			   					  	    	 	 	 				 	 
// 799B6F2C43F9E173C5420064357F04E6
void f0_2() {
   for (G_pos_280 = OrdersTotal() - 1; G_pos_280 >= 0.0; G_pos_280--) {
      OrderSelect(G_pos_280, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() != Symbol() || OrderMagicNumber() != MagicNumber) continue;
      if (OrderType() > OP_SELL) OrderDelete(OrderTicket());
      else {
         if (OrderType() == OP_BUY) OrderClose(OrderTicket(), OrderLots(), Bid, 3, CLR_NONE);
         else OrderClose(OrderTicket(), OrderLots(), Ask, 3, CLR_NONE);
      }
   }
}
	 		 	   	 		  	 	 	  		  						 	  	 	   		 		  	 			 	  	   	 	 	 		  	  	  				  	  			   	 				       	  	 				     	 	    	 	 	  	 			  	 	 
// D0D30DBDBD550359B26C2F6801C4F632
void f0_4() {
   for (int pos_0 = OrdersTotal() - 1; pos_0 >= 0; pos_0--) {
      OrderSelect(pos_0, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() != Symbol() || OrderMagicNumber() != MagicNumber) continue;
      if (OrderType() > OP_SELL) OrderDelete(OrderTicket());
   }
}
								   	  	    		    			 	         	 					 	   	 		  		 	  				  					 		   	     	 	   			 	 	 	 		 		 			 	 	 	 					 	 	    		  		 	 			  
// C70B011498B6E7EA30EFE950EF9B8691
int f0_3() {
   double Ld_0 = Stop_Jam + GMTOffset;
   double Ld_8 = Mulai_Jam + GMTOffset;
   if (Mulai_Jam + GMTOffset < 0) Ld_8 = Mulai_Jam + GMTOffset + 24;
   if (Stop_Jam + GMTOffset < 0) Ld_0 = Stop_Jam + GMTOffset + 24;
   if (Mulai_Jam + GMTOffset > 24) Ld_8 = Mulai_Jam + GMTOffset - 24;
   if (Stop_Jam + GMTOffset > 24) Ld_0 = Stop_Jam + GMTOffset - 24;
   if (TIMEFILTER == FALSE) return (1);
   if (Ld_8 < Ld_0) {
      if (!(Hour() >= Ld_8 && Hour() < Ld_0)) return (0);
      return (1);
   }
   if (Ld_8 > Ld_0) {
      if (!(Hour() >= Ld_8 || Hour() < Ld_0)) return (0);
      return (1);
   }
   return (0);
}
	  				 				  							  		  	 	 				     	  			  				 				   	        		   			  	 		   		 		 				 	  	 	 	   				 	  	 	     	 							    	  					
// EBF78B512222FE4DCD14E7D5060A15B0
void f0_5() {
   int Li_0;
   if (Seconds() >= 0 && Seconds() < 10) Li_0 = 255;
   if (Seconds() >= 10 && Seconds() < 20) Li_0 = 15631086;
   if (Seconds() >= 20 && Seconds() < 30) Li_0 = 42495;
   if (Seconds() >= 30 && Seconds() < 40) Li_0 = 16711680;
   if (Seconds() >= 40 && Seconds() < 50) Li_0 = 65535;
   if (Seconds() >= 50 && Seconds() <= 59) Li_0 = 16776960;
   string Ls_4 = "-------------------------------------------";
   f0_1("L01", "Arial", 9, 10, 190, Gi_316, 1, Ls_4);
   f0_1("L02", "Arial", 14, 10, 205, Li_0, 1, "::: EA DS V9:::");
   f0_1("L0i", "Arial", 11, 10, 220, Gi_312, 1, "-- Versi Delta -- ");
   f0_1("L03", "Arial", 9, 10, 235, Gi_316, 1, Ls_4);
   f0_1("L04", "Arial", 9, 10, 250, Gi_300, 1, ">> Programmer : rungsing19");
   f0_1("L05", "Arial", 9, 10, 265, G_color_304, 1, ">> Email : ajo.grage@gmail.com");
   f0_1("L07", "Arial", 9, 10, 290, Gi_300, 1, ">> Nama Broker : " + AccountCompany());
   f0_1("L08", "Arial", 9, 10, 305, Gi_300, 1, ">> Server    : " + AccountServer());
   f0_1("L09", "Arial", 9, 10, 320, Gi_308, 1, ">> Akun      : " + AccountName() + " - " + AccountNumber());
   f0_1("L10", "Arial", 9, 10, 335, Li_0, 1, ">> Free Margin   : " + DoubleToStr(AccountFreeMargin(), 2));
   f0_1("L11", "Arial", 9, 10, 350, G_color_304, 1, ">> Used Margin      : " + DoubleToStr(AccountMargin(), 2));
   f0_1("L13", "Arial", 9, 10, 365, Gi_316, 1, ">> Profit All         : " + DoubleToStr(AccountEquity() - AccountBalance(), 2));
   f0_1("L14", "Arial", 9, 10, 380, Gi_300, 1, ">> Akun Currency      : " + AccountCurrency());
   f0_1("L15", "Arial", 9, 10, 395, G_color_304, 1, ">> © 2013, Ki_Ageng Rungsing AjoGrage <<");
}
		    	 	 	 					 	  	 			  	  		 				  		      	 	 	 				 	 	   	 		 	  		  	 	  						  		  		   	 		 		 	  		   	 		  	 	 				 	  	     	  			
// 6F434C508AD901B8667ED22F713E52BB
void f0_1(string A_name_0, string A_fontname_8, int A_fontsize_16, int A_x_20, int A_y_24, color A_color_28, int A_corner_32, string A_text_36) {
   if (ObjectFind(A_name_0) < 0) ObjectCreate(A_name_0, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(A_name_0, A_text_36, A_fontsize_16, A_fontname_8, A_color_28);
   ObjectSet(A_name_0, OBJPROP_CORNER, A_corner_32);
   ObjectSet(A_name_0, OBJPROP_XDISTANCE, A_x_20);
   ObjectSet(A_name_0, OBJPROP_YDISTANCE, A_y_24);
}

Recommend