Jump to content

Recommended Posts

  • Replies 1.6k
  • Created
  • Last Reply

Top Posters In This Topic

Posted
http://www.multiupload.com/8C92F0LVLY

 

Looking for code to build an EA

 

i am not sure what you need...

/*
  Generated by EX4-TO-MQ4 decompiler V4.0.224.1 []
  Website: http://purebeam.biz
  E-mail : [email protected]
*/

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Lime
#property indicator_color2 Red

extern int ADXbars = 14;
extern int CountBars = 350;
double g_ibuf_84[];
double g_ibuf_88[];
double g_iadx_92;
double g_iadx_100;
double g_iadx_108;
double g_iadx_116;

int init() {
  string ls_unused_0;
  IndicatorBuffers(2);
  SetIndexStyle(0, DRAW_ARROW);
  SetIndexArrow(0, 108);
  SetIndexStyle(1, DRAW_ARROW);
  SetIndexArrow(1, 108);
  SetIndexBuffer(0, g_ibuf_84);
  SetIndexBuffer(1, g_ibuf_88);
  return (0);
}

int start() {
  if (CountBars >= Bars) CountBars = Bars;
  SetIndexDrawBegin(0, Bars - CountBars);
  SetIndexDrawBegin(1, Bars - CountBars);
  int l_ind_counted_8 = IndicatorCounted();
  if (l_ind_counted_8 < 0) return (-1);
  if (l_ind_counted_8 < 1) {
     for (int li_0 = 1; li_0 <= CountBars; li_0++) g_ibuf_84[CountBars - li_0] = 0.0;
     for (li_0 = 1; li_0 <= CountBars; li_0++) g_ibuf_88[CountBars - li_0] = 0.0;
  }
  for (int li_4 = CountBars; li_4 >= 0; li_4--) {
     g_iadx_92 = iADX(NULL, 0, ADXbars, PRICE_CLOSE, MODE_PLUSDI, li_4 - 1);
     g_iadx_100 = iADX(NULL, 0, ADXbars, PRICE_CLOSE, MODE_PLUSDI, li_4);
     g_iadx_108 = iADX(NULL, 0, ADXbars, PRICE_CLOSE, MODE_MINUSDI, li_4 - 1);
     g_iadx_116 = iADX(NULL, 0, ADXbars, PRICE_CLOSE, MODE_MINUSDI, li_4);
     if (g_iadx_92 > g_iadx_108 && g_iadx_100 < g_iadx_116 && li_0 != 1) {
        g_ibuf_84[li_4] = Low[li_4] - 5.0 * Point;
        Alert("Buy Arrow", 
           "\n", "Current time is ", TimeToStr(TimeCurrent()), 
        "\n", Symbol());
        li_0++;
     }
     if (g_iadx_92 < g_iadx_108 && g_iadx_100 > g_iadx_116 && li_0 != 1) {
        g_ibuf_88[li_4] = High[li_4] + 5.0 * Point;
        Alert("Sell Arrow", 
           "\n", "Current time is ", TimeToStr(TimeCurrent()), 
        "\n", Symbol());
        li_0++;
     }
  }
  return (0);
}

Posted

Greetings! is there anyone that can please program this very accurate indicator to open a trade in the direction of the arrow when it appears.....thanks in advance!! works on all timeframes and has email alert (thanks to Musketeer!) and a sound alert but if it can be automated to open a trade in the direction of the signal arrow, i believe it will rival even megadroid EA!

 

http://www.multiupload.com/HOMSJC895P

Posted

 

here it is:

/*
  Generated by EX4-TO-MQ4 decompiler V4.0.224.1 []
  Website: http://purebeam.biz
  E-mail : [email protected]
*/

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Blue
#property indicator_color2 Fuchsia

int gi_76 = 100;
int gi_80 = 75;
int gi_84 = 15;
double g_ibuf_88[];
double g_ibuf_92[];
int gi_96;
int gi_100;

int init() {
  IndicatorBuffers(2);
  SetIndexStyle(0, DRAW_ARROW);
  SetIndexArrow(0, 233);
  SetIndexStyle(1, DRAW_ARROW);
  SetIndexArrow(1, 234);
  SetIndexBuffer(0, g_ibuf_88);
  SetIndexBuffer(1, g_ibuf_92);
  SetIndexEmptyValue(0, 0.0);
  IndicatorShortName("Entry Indicator");
  return (0);
}

int start() {
  double ld_16;
  double ld_24;
  double ld_32;
  double ld_40;
  double ld_48;
  double ld_56;
  int li_unused_64;
  int li_68;
  int li_72;
  for (int li_0 = Bars - gi_76; li_0 >= 0; li_0--) {
     ld_16 = Low[iLowest(NULL, 0, MODE_LOW, gi_76, li_0)];
     if (ld_16 == ld_56) ld_16 = 0.0;
     else {
        ld_56 = ld_16;
        if (Low[li_0] - ld_16 > gi_80 * Point) ld_16 = 0.0;
        else {
           for (int li_4 = 1; li_4 <= gi_84; li_4++) {
              ld_24 = g_ibuf_88[li_0 + li_4];
              if (ld_24 != 0.0 && ld_24 > ld_16) g_ibuf_88[li_0 + li_4] = 0.0;
           }
        }
     }
     g_ibuf_88[li_0] = ld_16;
     ld_16 = High[iHighest(NULL, 0, MODE_HIGH, gi_76, li_0)];
     if (ld_16 == ld_48) ld_16 = 0.0;
     else {
        ld_48 = ld_16;
        if (ld_16 - High[li_0] > gi_80 * Point) ld_16 = 0.0;
        else {
           for (li_4 = 1; li_4 <= gi_84; li_4++) {
              ld_24 = g_ibuf_92[li_0 + li_4];
              if (ld_24 != 0.0 && ld_24 < ld_16) g_ibuf_92[li_0 + li_4] = 0.0;
           }
        }
     }
     g_ibuf_92[li_0] = ld_16;
  }
  ld_48 = -1;
  int li_8 = -1;
  ld_56 = -1;
  int li_12 = -1;
  for (li_0 = Bars - gi_76; li_0 >= 0; li_0--) {
     ld_32 = g_ibuf_88[li_0];
     ld_40 = g_ibuf_92[li_0];
     if (ld_32 == 0.0 && ld_40 == 0.0) continue;
     if (ld_40 != 0.0) {
        if (ld_48 > 0.0) {
           if (ld_48 < ld_40) g_ibuf_92[li_8] = 0;
           else g_ibuf_92[li_0] = 0;
        }
        if (ld_48 < ld_40 || ld_48 < 0.0) {
           ld_48 = ld_40;
           li_8 = li_0;
        }
        ld_56 = -1;
     }
     if (ld_32 != 0.0) {
        if (ld_56 > 0.0) {
           if (ld_56 > ld_32) g_ibuf_88[li_12] = 0;
           else g_ibuf_88[li_0] = 0;
        }
        if (ld_32 < ld_56 || ld_56 < 0.0) {
           ld_56 = ld_32;
           li_12 = li_0;
        }
        ld_48 = -1;
     }
  }
  for (li_0 = Bars - 1; li_0 >= 0; li_0--) {
     if (li_0 >= Bars - gi_76) g_ibuf_88[li_0] = 0.0;
     else {
        ld_24 = g_ibuf_92[li_0];
        if (ld_24 != 0.0) g_ibuf_92[li_0] = ld_24;
     }
     li_unused_64 = 0;
     for (int l_index_76 = 0; g_ibuf_88[l_index_76] == 0.0 && g_ibuf_92[l_index_76] == 0.0; l_index_76++) {
     }
     li_68 = l_index_76;
     for (l_index_76++; g_ibuf_88[l_index_76] == 0.0 && g_ibuf_92[l_index_76] == 0.0; l_index_76++) {
     }
     li_72 = l_index_76;
     if (gi_96 != li_68 || gi_100 != li_72) {
        gi_96 = li_68;
        gi_100 = li_72;
     }
     if (gi_96 != li_68 || gi_100 != li_72) {
        gi_96 = li_68;
        gi_100 = li_72;
     }
  }
  return (0);
}

Guest dave_rimmer
Posted

please decompile this interesting Ea Found on russian site

 

hxxp://depositfiles.com/files/rq66f97y0

 

thanks

Guest dave_rimmer
Posted

please decompile this ea

 

hxxp://depositfiles.com/files/cqt8i7cdb

 

thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...