Get Values for EA from custom indicator

 
I'm trying to pass, order entry points and stop loss values from double profit indicator to a EA. but it seems indicator already use all slots for pass other values for draw the lines,

i need someone help to pass that values to a EA,

i tested this indicator on 30 min time frame and it was very profitable that's why I'm tiring to made an EA from this indicator for use, can anyone help me with this please.

Its enough for me pass values using "SetIndexBuffer" or if anyone can made simple EA using this i highly appreciate. I'm still learning mql from a month so i haven't much advanced knowledge, if anyone can help me with this i highly appreciated. thank you

Here is the source code and i also attached the mql file with the post

#property indicator_chart_window
#property indicator_buffers 8
#property indicator_color1 Black
#property indicator_color2 Black
#property indicator_color3 Black
#property indicator_color4 Black
#property indicator_color5 Black
#property indicator_color6 Black
#property indicator_color7 Black
#property indicator_color8 Black

int G_width_76 = 3;
int Gi_80 = 0;
int G_ma_method_84 = MODE_SMMA;
int G_applied_price_88 = PRICE_CLOSE;
bool Gi_unused_92 = TRUE;
int Gi_96 = 0;
int Gi_100 = 10000;
bool Gi_unused_104 = FALSE;
int Gi_108 = 0;
int G_ma_method_112 = MODE_EMA;
int G_applied_price_116 = PRICE_CLOSE;
bool Gi_unused_120 = TRUE;
int Gi_124 = 0;
int Gi_128 = 10000;
bool Gi_unused_132 = FALSE;
extern string NOTE = "Downloaded from Forex-Shop.com";
extern int SignalPeriod1 = 5;
extern int SignalPeriod2 = 6;
extern int aTake_Profit = 200;
extern int aStop_Loss = 150;
extern bool aAlerts = TRUE;
extern bool EmailOn = TRUE;
extern color Line1Up = Green;
extern color Line1Down = Red;
extern color Line2Up = Blue;
extern color Line2Down = White;
datetime G_time_184;
string Gs_188;
double Gd_196 = 0.8;
string Gs_204 = "Double Trend Profit";
double G_ibuf_212[];
double G_ibuf_216[];
double G_ibuf_220[];
double G_ibuf_224[];
double Gd_228 = 1.6;
double G_ibuf_236[];
double G_ibuf_240[];
double G_ibuf_244[];
double G_ibuf_248[];
int Gi_252;
string Gs_256 = "";
string Gs_unused_264 = "";
double Gprice[];
// E37F0136AA3FFAF149B351F6A4C948E9
int init() {
   Comment(" www.forex-shop.com ");
   Comment(" forex-shop.com ");
   SetIndexBuffer(0, G_ibuf_212);  
   //SetIndexBuffer(0, Gprice);  
   SetIndexBuffer(1, G_ibuf_216);
   SetIndexBuffer(2, G_ibuf_220);
   SetIndexBuffer(3, G_ibuf_224);
   SetIndexBuffer(4, G_ibuf_236);
   SetIndexBuffer(5, G_ibuf_240);
   SetIndexBuffer(6, G_ibuf_244);
   SetIndexBuffer(7, G_ibuf_248);
   SetIndexBuffer(8, Gprice);
   SetIndexBuffer(9, Gprice);
  
  
   //SetIndexBuffer(0, bullishDivergence);
  
  
   SetIndexStyle(0, DRAW_NONE, EMPTY, G_width_76 - 0);
   SetIndexStyle(1, DRAW_NONE, EMPTY, G_width_76 - 0);
   SetIndexStyle(2, DRAW_NONE, EMPTY, G_width_76 - 0);
   SetIndexArrow(0, 159);
   SetIndexArrow(1, 159);
   SetIndexArrow(2, 159);
   SetIndexStyle(4, DRAW_NONE, EMPTY, G_width_76 - 0);
   SetIndexStyle(5, DRAW_NONE, EMPTY, G_width_76 - 0);
   SetIndexStyle(6, DRAW_NONE, EMPTY, G_width_76 - 0);
   SetIndexArrow(4, 159);
   SetIndexArrow(5, 159);
   SetIndexArrow(6, 159);
   Gi_252 = SignalPeriod1 + MathFloor(MathSqrt(SignalPeriod1));
   SetIndexDrawBegin(0, Gi_252);
   SetIndexDrawBegin(1, Gi_252);
   SetIndexDrawBegin(2, Gi_252);
   SetIndexDrawBegin(4, Gi_252);
   SetIndexDrawBegin(5, Gi_252);
   SetIndexDrawBegin(6, Gi_252);
   IndicatorDigits(MarketInfo(Symbol(), MODE_DIGITS) + 1.0);
   IndicatorShortName("Double Trend Profit(" + SignalPeriod1 + ")");
   SetIndexLabel(0, "Double Trend Profit");
   Gs_256 = Symbol() + "(" + f0_5() + "):  ";
   Gs_188 = "";
   f0_6();
   ObjectsDeleteAll(0, OBJ_TEXT);
   ObjectsDeleteAll(0, OBJ_LABEL);
   return (0);
}

// 52D46093050F38C27267BCE42543EF60
int deinit() {
   f0_6();
   ObjectsDeleteAll(0, OBJ_TEXT);
   ObjectsDeleteAll(0, OBJ_LABEL);
   Comment("");
   return (0);
}

// EA2B2676C28C0DB26D39331A336C6B92
int start() {
   double ima_on_arr_0;
   double ima_on_arr_8;
   int Li_unused_16;
   int Li_unused_20;
   int ind_counted_24 = IndicatorCounted();
   if (ind_counted_24 > 1) {
      for (int Li_28 = 0; Li_28 < Gi_252; Li_28++) G_ibuf_224[Bars - Li_28] = 0;
      for (Li_28 = 0; Li_28 < SignalPeriod1; Li_28++) {
         G_ibuf_212[Bars - Li_28] = EMPTY_VALUE;
         G_ibuf_216[Bars - Li_28] = EMPTY_VALUE;
         G_ibuf_220[Bars - Li_28] = EMPTY_VALUE;
      }
   }
   int Li_32 = Bars - ind_counted_24;
   for (Li_28 = 0; Li_28 < Li_32 - 1; Li_28++) {
      G_ibuf_224[Li_28] = 2.0 * iMA(NULL, 0, MathFloor(SignalPeriod1 / Gd_228), Gi_80, G_ma_method_84, G_applied_price_88, Li_28) - iMA(NULL, 0, SignalPeriod1, Gi_80, G_ma_method_84,
         G_applied_price_88, Li_28);
   }
   double ima_on_arr_36 = iMAOnArray(G_ibuf_224, 0, MathFloor(MathSqrt(SignalPeriod1)), 0, G_ma_method_84, 0);
   for (Li_28 = 1; Li_28 < Li_32; Li_28++) {
      ima_on_arr_0 = iMAOnArray(G_ibuf_224, 0, MathFloor(MathSqrt(SignalPeriod1)), 0, G_ma_method_84, Li_28);
      Li_unused_16 = 0;
      if (ima_on_arr_0 > ima_on_arr_36) {
         G_ibuf_220[Li_28 - 1] = ima_on_arr_36 - Gi_96 * Point;
         Li_unused_16 = 1;
      } else {
         if (ima_on_arr_0 < ima_on_arr_36) {
            G_ibuf_212[Li_28 - 1] = ima_on_arr_36 + Gi_96 * Point;
            Li_unused_16 = 2;
         } else {
            G_ibuf_212[Li_28 - 1] = EMPTY_VALUE;
            G_ibuf_216[Li_28 - 1] = ima_on_arr_36;
            G_ibuf_220[Li_28 - 1] = EMPTY_VALUE;
            Li_unused_16 = 3;
         }
      }
      ima_on_arr_36 = ima_on_arr_0;
   }
   if (ind_counted_24 > 1) {
      for (Li_28 = 0; Li_28 < Gi_252; Li_28++) G_ibuf_248[Bars - Li_28] = 0;
      for (Li_28 = 0; Li_28 < SignalPeriod2; Li_28++) {
         G_ibuf_236[Bars - Li_28] = EMPTY_VALUE;
         G_ibuf_240[Bars - Li_28] = EMPTY_VALUE;
         G_ibuf_244[Bars - Li_28] = EMPTY_VALUE;
      }
      G_time_184 = Time[0];
   }
   Li_32 = Bars - ind_counted_24;
   for (Li_28 = 0; Li_28 < Li_32 - 1; Li_28++) {
      G_ibuf_248[Li_28] = 2.0 * iMA(NULL, 0, MathFloor(SignalPeriod2 / Gd_196), Gi_80, G_ma_method_84, G_applied_price_88, Li_28) - iMA(NULL, 0, SignalPeriod1, Gi_80, G_ma_method_84,
         G_applied_price_88, Li_28);
   }
   double ima_on_arr_44 = iMAOnArray(G_ibuf_248, 0, MathFloor(MathSqrt(SignalPeriod1)), 0, G_ma_method_84, 0);
   if (Li_32 > Gi_100) Li_32 = Gi_100;
   for (Li_28 = 1; Li_28 < Li_32 - 1; Li_28++) {
      if (G_ibuf_212[Li_28 - 1] != EMPTY_VALUE) {
         if (G_ibuf_212[Li_28] != EMPTY_VALUE) f0_3(0, Li_28 - 1, Li_28, 1);
         else f0_3(0, Li_28 - 1, Li_28, 10);
      }
      if (G_ibuf_220[Li_28 - 1] != EMPTY_VALUE) {
         if (G_ibuf_220[Li_28] != EMPTY_VALUE) {
            f0_3(0, Li_28 - 1, Li_28, -1);
            continue;
         }
         f0_3(0, Li_28 - 1, Li_28, -10);
      }
   }
   for (Li_28 = 0; Li_28 < Li_32 - 1; Li_28++) {
      G_ibuf_248[Li_28] = 2.0 * iMA(NULL, 0, MathFloor(SignalPeriod2 / Gd_196), Gi_108, G_ma_method_112, G_applied_price_116, Li_28) - iMA(NULL, 0, SignalPeriod2, Gi_108,
         G_ma_method_112, G_applied_price_116, Li_28);
   }
   ima_on_arr_44 = iMAOnArray(G_ibuf_248, 0, MathFloor(MathSqrt(SignalPeriod2)), 0, G_ma_method_112, 0);
   for (Li_28 = 1; Li_28 < Li_32; Li_28++) {
      ima_on_arr_8 = iMAOnArray(G_ibuf_248, 0, MathFloor(MathSqrt(SignalPeriod2)), 0, G_ma_method_112, Li_28);
      Li_unused_20 = 0;
      if (ima_on_arr_8 > ima_on_arr_44) {
         G_ibuf_244[Li_28 - 1] = ima_on_arr_44 - Gi_124 * Point;
         Li_unused_20 = 1;
      } else {
         if (ima_on_arr_8 < ima_on_arr_44) {
            G_ibuf_236[Li_28 - 1] = ima_on_arr_44 + Gi_124 * Point;
            Li_unused_20 = 2;
         } else {
            G_ibuf_236[Li_28 - 1] = EMPTY_VALUE;
            G_ibuf_240[Li_28 - 1] = ima_on_arr_44;
            G_ibuf_244[Li_28 - 1] = EMPTY_VALUE;
            Li_unused_20 = 3;
         }
      }
      ima_on_arr_44 = ima_on_arr_8;
   }
   if (Li_32 > Gi_128) Li_32 = Gi_128;
   for (Li_28 = 1; Li_28 < Li_32 - 1; Li_28++) {
      if (G_ibuf_236[Li_28 - 1] != EMPTY_VALUE) {
         if (G_ibuf_236[Li_28] != EMPTY_VALUE) f0_3(1, Li_28 - 1, Li_28, 1);
         else f0_3(1, Li_28 - 1, Li_28, 10);
      }
      if (G_ibuf_244[Li_28 - 1] != EMPTY_VALUE) {
         if (G_ibuf_244[Li_28] != EMPTY_VALUE) {
            f0_3(1, Li_28 - 1, Li_28, -1);
            continue;
         }
         f0_3(1, Li_28 - 1, Li_28, -10);
      }
   }
   string Ls_52 = "";
   bool Li_60 = FALSE;
   bool Li_64 = FALSE;
   if (G_ibuf_244[0] != EMPTY_VALUE && G_ibuf_220[0] != EMPTY_VALUE) {
      Ls_52 = Ls_52 + "" + "";
      Li_64 = TRUE;
   }
   if (G_ibuf_236[0] != EMPTY_VALUE && G_ibuf_212[0] != EMPTY_VALUE) {
      Ls_52 = Ls_52 + "" + "";
      Li_60 = TRUE;
   }
   Comment(Ls_52);
   if (Li_64) f0_2("Sell signal", Close[0], f0_7(), f0_4());
   if (Li_60) f0_2("Buy signal", Close[0], f0_0(), f0_1());
   return (0);
}

// D1DDCE31F1A86B3140880F6B1877CBF8
double f0_7() {
   return (Bid - aTake_Profit * Point);
}

// 09CBB5F5CE12C31A043D5C81BF20AA4A
double f0_0() {
   return (Ask + aTake_Profit * Point);
}

// 945D754CB0DC06D04243FCBA25FC0802
double f0_4() {
   return (Bid + aStop_Loss * Point);
}

// 2569208C5E61CB15E209FFE323DB48B7
double f0_1() {
   return (Ask - aStop_Loss * Point);
}

// A9B24A824F70CC1232D1C2BA27039E8D
void f0_6() {
   string name_0;
   int str_len_8;
   for (int Li_12 = ObjectsTotal() - 1; Li_12 >= 0; Li_12--) {
      name_0 = ObjectName(Li_12);
      str_len_8 = StringLen(Gs_204);
      if (StringSubstr(name_0, 1, str_len_8) == Gs_204) ObjectDelete(name_0);
   }
}

// 6ABA3523C7A75AAEA41CC0DEC7953CC5
void f0_3(int Ai_0, int Ai_4, int Ai_8, int Ai_12) {
   double price_16;
   double price_24;
   color color_32;
   if (Ai_0 == 0) {
      if (Ai_12 > 0) {
         price_16 = G_ibuf_212[Ai_4];
         if (Ai_12 == 1) price_24 = G_ibuf_212[Ai_8];
         else price_24 = G_ibuf_220[Ai_8];
         color_32 = Line1Up;
      } else {
         price_16 = G_ibuf_220[Ai_4];
         if (Ai_12 == -1) price_24 = G_ibuf_220[Ai_8];
         else price_24 = G_ibuf_212[Ai_8];
         color_32 = Line1Down;
      }
   }
   if (Ai_0 == 1) {
      if (Ai_12 > 0) {
         price_16 = G_ibuf_236[Ai_4];
         if (Ai_12 == 1) price_24 = G_ibuf_236[Ai_8];
         else price_24 = G_ibuf_244[Ai_8];
         color_32 = Line2Up;
      } else {
         price_16 = G_ibuf_244[Ai_4];
         if (Ai_12 == -1) price_24 = G_ibuf_244[Ai_8];
         else price_24 = G_ibuf_236[Ai_8];
         color_32 = Line2Down;
      }
   }
   int time_36 = Time[Ai_4];
   int time_40 = Time[Ai_8];
   if (price_16 == EMPTY_VALUE || price_24 == EMPTY_VALUE) {
      Print("Double Trend Profit");
      return;
   }
   string name_44 = Ai_0 + Gs_204 + "_segment_" + color_32 + time_36 + "_" + time_40;
   ObjectDelete(name_44);
   ObjectCreate(name_44, OBJ_TREND, 0, time_36, price_16, time_40, price_24, 0, 0);
   ObjectSet(name_44, OBJPROP_WIDTH, G_width_76);
   ObjectSet(name_44, OBJPROP_COLOR, color_32);
   ObjectSet(name_44, OBJPROP_STYLE, STYLE_SOLID);
   ObjectSet(name_44, OBJPROP_RAY, FALSE);
}

// 9B1AEE847CFB597942D106A4135D4FE6
string f0_5() {
   string timeframe_0;
   switch (Period()) {
   case PERIOD_M1:
      timeframe_0 = "M1";
      break;
   case PERIOD_M5:
      timeframe_0 = "M5";
      break;
   case PERIOD_M15:
      timeframe_0 = "M15";
      break;
   case PERIOD_M30:
      timeframe_0 = "M30";
      break;
   case PERIOD_H1:
      timeframe_0 = "H1";
      break;
   case PERIOD_H4:
      timeframe_0 = "H4";
      break;
   case PERIOD_D1:
      timeframe_0 = "D1";
      break;
   case PERIOD_W1:
      timeframe_0 = "W1";
      break;
   case PERIOD_MN1:
      timeframe_0 = "MN1";
      break;
   default:
      timeframe_0 = Period();
   }
   return (timeframe_0);
}

// 5710F6E623305B2C1458238C9757193B
void f0_2(string As_0, double Ad_8, double Ad_16, double Ad_24) {
   string Ls_32;
   string Ls_40;
   string Ls_48;
   string Ls_56;
   if (Time[0] != G_time_184) {
      G_time_184 = Time[0];
      if (Gs_188 != As_0) {
         Gs_188 = As_0;
         if (Ad_8 != 0.0) Ls_48 = " - Price " + DoubleToStr(Ad_8, 5);
         else Ls_48 = "";
         if (Ad_16 != 0.0) Ls_40 = ", TakeProfit   " + DoubleToStr(Ad_16, 5);
         else Ls_40 = "";
         if (Ad_24 != 0.0) Ls_32 = ", StopLoss   " + DoubleToStr(Ad_24, 5);
         else Ls_32 = "";
         Ls_56 = Gs_256 + "Double Trend Profit " + " Alert " + As_0 + "" + Ls_48 + Ls_40 + Ls_32 + " ";
         if (aAlerts == TRUE) {
            Alert(Ls_56);
            PlaySound("alert.wav");
            Alert("suneth test");
            Gprice[0]=DoubleToStr(Ad_8, 5);
         }
         if (EmailOn) SendMail(Gs_256, Ls_56);
      }
   }
}







Files:
 
  1. Don't paste code
    Play video
    Please edit your post.
    For large amounts of code, attach it.

  2. double G_ibuf_216[];
    double G_ibuf_220[];
    double G_ibuf_224[];

    Ask the owner of the indicator to give source code to you.

    Decompiled code is stolen code. Either you are a thief, a fence, or the receiver of stolen (intellectual) property. Either way we will not be an accomplice after the fact to theft. See also https://www.mql5.com/en/forum/134317

    If you post decompiled code again, you will likely be banned.

    Don't tell us you found it on the 'net: if someone stole your bank details and uploaded them on to the internet, is it OK for everyone to use them because "someone uploaded it, I don't know why I can't use that"?

 
product site closed on year 2013 their no way to get his support for creating EA and thanks for warning , btw do you know a solution for this :)
 

Ask the owner of the indicator to give source code to you. Who you got that from was not the owner.

What part of "we will not be an accomplice after the fact to theft" was unclear.

 
according to wiki he was died before a year so i can't go to hell or heaven for questioning about his works. i didn't try to sell anything here  i just ask a help about how to get a values from codes for use for a EA. society also have few of  your kind of peoples when someone ask to see at moon they looking at ugliness of finger.anyway i found a solution, thanks for wasting your time.
 
suneth2:

according to wiki he was died before a year so i can't go to hell or heaven for questioning about his works.

i didn't try to sell anything here 

i just ask a help about how to get a values from codes for use for a EA.

society also have few of  your kind of peoples

thanks for wasting your time.

  1. It wasn't his work, it was stolen.
  2. Never said you did
  3. We will not be an accomplice after the fact to theft.
  4. It is your kind of people that think they can keep the money when they find a dropped wallet.
  5. I've added your name to people that I won't help.
Reason: