A quick and free library for MT4, much to the delight of neuralnetworkers - page 46

 

This is what it says in the log files

00:00:19 FANN-EA EURUSD,H1: Wise result: -1.30784737
01:00:01 FANN-EA EURUSD,H1: Wise result: -1.23740669
02:00:00 FANN-EA EURUSD,H1: Wise result: 0.46817772
03:00:06 FANN-EA EURUSD,H1: Wise result: 0.65751276
04:00:03 FANN-EA EURUSD,H1: Wise result: 0.39205720
05:00:00 FANN-EA EURUSD,H1: Wise result: -1.18181472
06:00:15 FANN-EA EURUSD,H1: Wise result: -1.09955563
07:00:42 FANN-EA EURUSD,H1: Wise result: 0.57101135
08:00:11 FANN-EA EURUSD,H1: Wise result: 0.47496803
09:00:04 FANN-EA EURUSD,H1: Wise result: 0.22667800
10:00:00 FANN-EA EURUSD,H1: Wise result: -1.83377596
11:00:01 FANN-EA EURUSD,H1: Wise result: 0.50387309
11:59:59 FANN-EA EURUSD,H1: Wise result: 0.51340410
12:59:59 FANN-EA EURUSD,H1: Wise result: 0.52298164
14:00:01 FANN-EA EURUSD,H1: Wise result: -0.22988651
14:59:59 FANN-EA EURUSD,H1: Wise result: -0.33804175
15:59:59 FANN-EA EURUSD,H1: Wise result: -0.06542254
17:00:00 FANN-EA EURUSD,H1: Wise result: 0.19141732
18:00:01 FANN-EA EURUSD,H1: Wise result: 0.68342569
19:00:01 FANN-EA EURUSD,H1: Wise result: 1.28678559
19:59:59 FANN-EA EURUSD,H1: Wise result: 1.30079682

 

He now on xp on home does not want to work on a real account, who can REALLY tell me what's wrong?

 

As far as I know, psychics don't come here....

Based on the scraps of logs you've posted, no one can say anything specifically.

Let's do this:

-- find this piece of code in your code

   RefreshRates();
   if (res > 0) {
      ticket = OrderSend(Symbol(), OP_BUY, Lots, Ask, 2, Ask -  StopLoss * Point, Ask + StopLoss * Point, WindowExpertName(), 0, 0, Blue);
   } else {
      ticket = OrderSend(Symbol(), OP_SELL, Lots, Bid, 2, Bid +  StopLoss * Point, Bid - StopLoss * Point, WindowExpertName(), 0, 0, Red);
   }

and replace it with this one, compile it, etc.

   GetLastError(); 
   if (res > 0) {
      ticket = OrderSend(Symbol(), OP_BUY, Lots, Ask, 2, Ask -  StopLoss * Point, Ask + StopLoss * Point, WindowExpertName(), 0, 0, Blue);
      Print("buy err=",GetLastError());
   } else {
      ticket = OrderSend(Symbol(), OP_SELL, Lots, Bid, 2, Bid +  StopLoss * Point, Bid - StopLoss * Point, WindowExpertName(), 0, 0, Red);
      Print("seel err=",GetLastError());
   }
In a couple of hours or so, logs to the studio.
 

GetLastError();
if (res > 0) {
ticket = OrderSend(Symbol(), OP_BUY, Lots, Ask, 2, Ask - StopLoss * Point, Ask + StopLoss * Point, WindowExpertName(), 0, 0, Blue);
Print("buy err=",GetLastError());
} else {
ticket = OrderSend(Symbol(), OP_SELL, Lots, Bid, 2, Bid + StopLoss * Point, Bid - StopLoss * Point, WindowExpertName(), 0, 0, Red);
Print("seel err=",GetLastError());
}
if (ticket >= 0) {
ann_prepare_input ();
}
return (0);
}

Replaced it, commented it out, now the piece of code (it's at the end) looks like this.

Then I deleted all logs of today, restarted the terminal, went to C:{Program Files\Alpari MT4\experts\logs

21:17:21 Compiling 'FANN-EA'
21:17:23 FANN-EA EURUSD,H1: loaded successfully
21:17:31 FANN-EA EURUSD,H1 inputs: StopLoss=180; x=500; Lots=0.1;
21:17:31 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.0.net' loaded successfully with handler 0
21:17:31 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.1.net' loaded successfully with handler 1
21:17:31 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.2.net' loaded successfully with handler 2
21:17:31 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.3.net' loaded successfully with handler 3
21:17:31 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.4.net' loaded successfully with handler 4
21:17:31 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.5.net' loaded successfully with handler 5
21:17:31 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.6.net' loaded successfully with handler 6
21:17:31 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.7.net' loaded successfully with handler 7
21:17:31 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.8.net' loaded successfully with handler 8
21:17:31 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.9.net' loaded successfully with handler 9
21:17:31 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.10.net' loaded successfully with handler 10
21:17:31 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.11.net' loaded successfully with handler 11
21:17:31 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.12.net' loaded successfully with handler 12
21:17:31 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.13.net' loaded successfully with handler 13
21:17:31 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.14.net' loaded successfully with handler 14
21:17:31 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.15.net' loaded successfully with handler 15
21:17:31 FANN-EA EURUSD,H1: initialized
21:19:41 FANN-EA EURUSD,H1: f2M_save(15, C:\ANN\EURUSD-180.15.net) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_destroy(15) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_save(14, C:\ANN\EURUSD-180.14.net) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_destroy(14) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_save(13, C:\ANN\EURUSD-180.13.net) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_destroy(13) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_save(12, C:\ANN\EURUSD-180.12.net) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_destroy(12) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_save(11, C:\ANN\EURUSD-180.11.net) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_destroy(11) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_save(10, C:\ANN\EURUSD-180.10.net) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_destroy(10) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_save(9, C:\ANN\EURUSD-180.9.net) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_destroy(9) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_save(8, C:\ANN\EURUSD-180.8.net) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_destroy(8) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_save(7, C:\ANN\EURUSD-180.7.net) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_destroy(7) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_save(6, C:\ANN\EURUSD-180.6.net) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_destroy(6) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_save(5, C:\ANN\EURUSD-180.5.net) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_destroy(5) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_save(4, C:\ANN\EURUSD-180.4.net) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_destroy(4) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_save(3, C:\ANN\EURUSD-180.3.net) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_destroy(3) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_save(2, C:\ANN\EURUSD-180.2.net) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_destroy(2) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_save(1, C:\ANN\EURUSD-180.1.net) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_destroy(1) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_save(0, C:\ANN\EURUSD-180.0.net) returned: 0
21:19:41 FANN-EA EURUSD,H1: f2M_destroy(0) returned: 0
21:19:41 FANN-EA EURUSD,H1: deinitialized
21:19:41 FANN-EA EURUSD,H1: uninit reason 4
2119:41 FANN-EA EURUSD,H1: removed
21:19:45 FANN-EA EURUSD,H1: loaded successfully
21:19:45 FANN-EA EURUSD,H1 inputs: StopLoss=180; x=500; Lots=0.1;
21:19:46 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.0.net' loaded successfully with handler 0
21:19:46 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.1.net' loaded successfully with handler 1
21:19:46 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.2.net' loaded successfully with handler 2
21:19:46 FANN-EA EURUSD,H1: ANN: 'C:\ANN/\EURUSD-180.3.net' loaded successfully with handler 3
21:19:46 FANN-EA EURUSD,H1: ANN: 'C:\ANNEURUSD-180.4.net' loaded successfully with handler 4
21:19:46 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.5.net' loaded successfully with handler 5
21:19:46 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.6.net' loaded successfully with handler 6
21:19:46 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.7.net' loaded successfully with handler 7
21:19:46 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.8.net' loaded successfully with handler 8
21:19:46 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.9.net' loaded successfully with handler 9
21:19:46 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.10.net' loaded successfully with handler 10
21:19:46 FANN-EA EURUSD,H1: ANN: 'C:\ANN/\EURUSD-180.11.net' loaded successfully with handler 11
21:19:46 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.12.net' loaded successfully with handler 12
21:19:46 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.13.net' loaded successfully with handler 13
21:19:46 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.14.net' loaded successfully with handler 14
21:19:46 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-180.15.net' loaded successfully with handler 15
21:19:46 FANN-EA EURUSD,H1: initialized
21:20:07 FANN-EA EURUSD,H1: f2M_save(15, C:\ANN\EURUSD-180.15.net) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_destroy(15) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_save(14, C:\ANN\EURUSD-180.14.net) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_destroy(14) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_save(13, C:\ANN\EURUSD-180.13.net) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_destroy(13) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_save(12, C:\ANN\EURUSD-180.12.net) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_destroy(12) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_save(11, C:\ANN\EURUSD-180.11.net) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_destroy(11) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_save(10, C:\ANN\EURUSD-180.10.net) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_destroy(10) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_save(9, C:\ANN\EURUSD-180.9.net) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_destroy(9) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_save(8, C:\ANN\EURUSD-180.8.net) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_destroy(8) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_save(7, C:\ANN\EURUSD-180.7.net) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_destroy(7) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_save(6, C:\ANN\EURUSD-180.6.net) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_destroy(6) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_save(5, C:\ANN\EURUSD-180.5.net) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_destroy(5) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_save(4, C:\ANN\EURUSD-180.4.net) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_destroy(4) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_save(3, C:\ANN\EURUSD-180.3.net) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_destroy(3) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_save(2, C:\ANN\EURUSD-180.2.net) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_destroy(2) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_save(1, C:\ANN\EURUSD-180.1.net) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_destroy(1) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_save(0, C:\ANN\EURUSD-180.0.net) returned: 0
21:20:07 FANN-EA EURUSD,H1: f2M_destroy(0) returned: 0
21:20:07 FANN-EA EURUSD,H1: deinitialized
21:20:07 FANN-EA EURUSD,H1: uninit reason 4
21:20:07 FANN-EA EURUSD,H1: removed

I left only logs that concerns FANN, I deleted all unnecessary things, indicators, because they are too much. I have it on my home PC, I should reinstall vista to xp service pack 3. The spread is floating, five digits.

 

Already added mt4 to the exclusion list via firewall, we'll see, although I doubt that's the problem.

 

21:20:07 FANN-EA EURUSD,H1: deinitialized
21:20:07 FANN-EA EURUSD,H1: uninit reason 4
21:20:07 FANN-EA EURUSD,H1: removed

I don't like these lines, deinitialisation and relocation as far as I understand. Maybe the library is out of date?

 
marker:

I don't like these lines, deinitialisation and relocation, as far as I understand. Maybe the library is out of date?

Don't fuss, there's nothing wrong here. And don't touch firewall... )

On Monday we'll see the results and everything will be clear.

 
lasso:

Don't make a fuss, there's nothing wrong here. And don't touch the firewall... )

On Monday we'll see the results and everything will be clear.


Ok. But did you leave the firewall in place or would you rather do it as it was?
 
marker:

OK. But did you keep the firewall or would you rather do it the way it was?

Whatever, but the firewall has nothing to do with it...
 

Understood.