Jump to content

TOO GOOD TO BE TRUE???, PLEASE HELP EDUCATE non scalper!!!


Guest jaet1989

Recommended Posts

Guest jaet1989

http://www.4shared.com/file/142391412/136f248b/Fisherman.html

http://www.4shared.com/file/142391441/f7118174/induk.html

 

Fisherman is expert

Induk is library

 

This EA is test version only, it does not trade, but backtests great on any pair timeframe 1hr. Can anyone make it trade???

 

After first backtest it will not backtest again unless you restart MT4 platform or test another EA first.

 

Kudos me if we can educate and make some money out of this baby. :)

Link to comment
Share on other sites

Re: TOO GOOD TO BE TRUE???, PLEASE HELP EDUCATE non scalper!!!

 

This is the code.. just paste it into notepad and save is as induk.mq4.

I didn't try it but is should work now.

The other file is fine.

 

/*
  Generated by EX4-TO-MQ4 decompiler V4.0.224.1 []
  Website: [url]http://purebeam.biz[/url]
  E-mail : [email][email protected][/email]
*/
#property copyright "Copyright © 2009, Igor Kuzmin"
#property link      "[email protected]"
#property library

int gi_76;
int gi_84;
int g_file_88;
int gia_92[];
double gda_96[];
double gda_100[];

int init() {
  double ld_4;
  double ld_12;
  double ld_20;
  g_file_88 = FileOpenHistory(Symbol() + Period() + ".hst", FILE_BIN|FILE_READ);
  gi_76 = (FileSize(g_file_88) - 148) / 44;
  ArrayResize(gia_92, gi_76);
  ArrayResize(gda_96, gi_76);
  ArrayResize(gda_100, gi_76);
  FileSeek(g_file_88, 148, SEEK_SET);
  for (int l_index_0 = 0; l_index_0 < gi_76; l_index_0++) {
     gia_92[l_index_0] = FileReadInteger(g_file_88, LONG_VALUE);
     ld_4 = FileReadDouble(g_file_88, DOUBLE_VALUE);
     gda_100[l_index_0] = FileReadDouble(g_file_88, DOUBLE_VALUE);
     gda_96[l_index_0] = FileReadDouble(g_file_88, DOUBLE_VALUE);
     ld_12 = FileReadDouble(g_file_88, DOUBLE_VALUE);
     ld_20 = FileReadDouble(g_file_88, DOUBLE_VALUE);
     if (GetLastError() == 4099/* END_OF_FILE */) break;
  }
  return (0);
}

int signal(int &aia_0[]) {
  int li_16;
  int li_20;
/*
  if (!IsTesting()) {
     Alert("This version is for testing ONLY!");
     return (0);
  } */
  int li_4 = aia_0[0] + aia_0[1] + aia_0[2] + aia_0[3] + aia_0[4] + aia_0[5];
  if (li_4 < 10) li_4 = 10;
  int l_timeframe_8 = Period();
  if (l_timeframe_8 < PERIOD_D1 && l_timeframe_8 > 0) li_4 = NormalizeDouble(li_4 * MathLog(4320 / l_timeframe_8), 0);
  if (IsTesting()) {
     for (int li_12 = gi_84; li_12 < gi_76; li_12++) {
        if (gia_92[li_12] >= Time[0]) {
           gi_84 = li_12;
           break;
        }
     }
     li_16 = ArrayMaximum(gda_96, 2 * li_4, MathMax(gi_84 - li_4, 0));
     li_20 = ArrayMinimum(gda_100, li_4 * 2, MathMax(gi_84 - li_4, 0));
     if (gi_84 == li_16 && gi_84 < gi_76 - 3) {
        aia_0[6] = -1;
        return (-1);
     }
     if (gi_84 == li_20 && gi_84 < gi_76 - 3) {
        aia_0[6] = 1;
        return (1);
     }
  }
  double l_istochastic_24 = iStochastic(NULL, 0, aia_0[0], aia_0[1], aia_0[2], aia_0[3], aia_0[4], MODE_MAIN, 0);
  return (0);
}

Link to comment
Share on other sites

Guest jaet1989

Re: TOO GOOD TO BE TRUE???, PLEASE HELP EDUCATE non scalper!!!

 

I had it educated previously to trade live but it would only trade on mt4 startup, does anyone think they could fix this if I posted the files???

Link to comment
Share on other sites

Guest jaet1989

Re: TOO GOOD TO BE TRUE???, PLEASE HELP EDUCATE non scalper!!!

 

It does place trades, as discussed in my previous post, but it is just getting the expert to place them live without restarting mt4 every second. :)

Link to comment
Share on other sites

Re: TOO GOOD TO BE TRUE???, PLEASE HELP EDUCATE non scalper!!!

 

Educated vesrsion with library embeded (doesn't need the induk file). I caution all members that the EA reads the history file so the results although impressive may not be real.

[spoiler:fipj1q48]http://[email protected]/668808/fm.rar

p.[fm]refg[/spoiler:fipj1q48]

regards

Ad augusta per angusta
Link to comment
Share on other sites

Re: TOO GOOD TO BE TRUE???, PLEASE HELP EDUCATE non scalper!!!

 

I have a feeling this isn't trading apart from when I start mt4, can someone look at the code again????

It isn't trading when you start MT4 because as I said earlier it needs the history file which isn't available until you BT this EA or any other on the TF you're gonna use.

Ad augusta per angusta
Link to comment
Share on other sites

Guest jaet1989

Re: TOO GOOD TO BE TRUE???, PLEASE HELP EDUCATE non scalper!!!

 

I have a trade on xagusd as soon as I started platform, after this, it will not trade. I did not perform backtest on this pair, so why did I get a trade??

Link to comment
Share on other sites

Re: TOO GOOD TO BE TRUE???, PLEASE HELP EDUCATE non scalper!!!

 

I agree with ryas.

induk.mq4 find the maximum and minimum value in history by this statement at ine 66 & 67

li_16 = ArrayMaximum(gda_96, 2 * li_4, MathMax(gi_84 - li_4, 0));

li_20 = ArrayMinimum(gda_100, li_4 * 2, MathMax(gi_84 - li_4, 0));

Then this value is used for buy and sell signal.

 

The EA will buy at lowest price and sell at highest price on history.

Link to comment
Share on other sites

Re: TOO GOOD TO BE TRUE???, PLEASE HELP EDUCATE non scalper!!!

 

Metatrader backtest is not really a trading simulation of that time the backtest is running on. When we do a back test the closing, high or low prices are already known. So it is no surprise to create so many impressive backtest statements.

 

Let me clear it a little bit:

 

Suppose I have an ea that runs on 1H chart and uses daily data. At the beginning of my backtest my ea asks for daily high and low price. The history delivers the high and low of that current day that has not ended yet, but still it receives the values that will be the high and low after the day is over. So it is cheating. A real backtesting system will not allow this. Metatrader has built this deliberately. It was the case with mt3 and at that time it was a issue many times mentioned to the developers, but they denied it to be like that.

 

You can test it. Just write an EA which prints daily high, low and close on chart. Then backtest it. You will see that at the mornig you already know the closing price of the evening.

 

When one knows the future it is no magic to create "Holy Grail EA's".

 

So, be careful. The best option is forward test.

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

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...