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

 

It's OK:)

 

Strange, it opened on one account and not on the other:)) I have two terminals, ANN folder is the same for both terminals, account types are identical, settings too.....The log does not write anything when order is not opened. The version FANN-EA_3a.mq4..... On one account (on which the deal was opened) at the time of opening there were no orders in progress and on the one where no order was opened there were manually opened orders, may this be the reason? Also, there are 4 bots hanging on the terminal....

 
marker:

Strange, it opened on one account and not on the other:)) There are two terminals, one ANN folder for two terminals, account types are identical, settings too.....I have nothing in log if order is not opened. Version FANN-EA_3a.mq4..... On one account (on which the deal was opened) at the time of opening there were no orders in progress and on the one where no order was opened there were manually opened orders, may this be the reason? Also, there are 4 bots hanging on the terminal....

I have a feeling you're looking in the wrong place somewhere.

It doesn't work that way. First, the server has to respond to an incorrect request. Secondly, we've already put the Prints around.

So, either you argue, with sequences of screenshots, show your situation.

Either give an investment password, so that people can document the inadequate behaviour of the standard functions.

Like this...

 

GetLastError Is this function in the latest version of FANN-EA_3a.mq4 correct?

I deleted all logs and restarted it:

13:41:22 FANN-EA_3a EURUSD,H1: loaded successfully
13:41:22 FANN-EA_3a EURUSD,H1 inputs: StopLoss=620; x=500; Lots=0.01;
13:41:22 FapTurbo-ver.52 EURUSD,M15: loaded successfully
13:41:22 FapTurbo-ver.52 EURUSD,M15 inputs: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

13:41:22 DVD 100-50 cent EURUSD,H1: loaded successfully
13:41:22 DVD 100-50 cent EURUSD,H1 inputs: \\\\\\\\\\\\\\\\\\\\\\\\\\\\

13:41:22 PuriaM2_09 EURUSD,M15: loaded successfully
13:41:22 PuriaM2_09 EURUSD,M15 inputs:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

13:41:25 PuriaM2_09 EURUSD,M15: initial initialization: version 09, 02.04.2011
13:41:25 stdlib EURUSD,M15: loaded successfully
13:41:25 strlib EURUSD,M15: loaded successfully
13:41:25 PuriaM2_09 EURUSD,M15:

13:41:25 PuriaM2_09 EURUSD,M15:

13:41:25 PuriaM2_09 EURUSD,M15: initialized
13:41:25 FapTurbo-ver.52 EURUSD,M15: initialized
13:41:31 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.0.net' loaded successfully with handler 0
13:41:31 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.1.net' loaded successfully with handler 1
13:41:31 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.2.net' loaded successfully with handler 2
13:41:31 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.3.net' loaded successfully with handler 3
13:41:31 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.4.net' loaded successfully with handler 4
13:41:31 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.5.net' loaded successfully with handler 5
13:41:31 DVD 100-50 cent EURUSD,H1: initialized
13:41:31 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.6.net' loaded successfully with handler 6
13:41:31 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.7.net' loaded successfully with handler 7
13:41:31 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.8.net' loaded successfully with handler 8
13:41:31 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.9.net' loaded successfully with handler 9
13:41:31 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.10.net' loaded successfully with handler 10
13:41:31 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.11.net' loaded successfully with handler 11
13:41:31 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.12.net' loaded successfully with handler 12
13:41:31 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.13.net' loaded successfully with handler 13
13:41:31 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.14.net' loaded successfully with handler 14
13:41:31 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.15.net' loaded successfully with handler 15
13:41:31 FANN-EA_3a EURUSD,H1: initialized
13:45:06 iPuria EURUSD,M15: loaded successfully
13:45:06 iPuria EURUSD,M15: initialized

I installed the library as follows: Installed everything into the eksperts folder, then copied everything from libraris and the inlude into another terminal, which is installed in a different folder. Opted on the first terminal, all results to the ANN folder, for the second terminal I didn't opt anything, just inserted the same values in the settings, i.e. stop loss and the path remains the same, also in ANN....

 

is it ok that two NSs are using the same training files at the same time?

i.e. first the first NS reads the file, then the second one tries but the file is busy. so it returns an error, which does not pop up in the print.

my advice is to cover with printers even where dll returns any numbers

 
progma137:

is it ok that two NSs are using the same training files at the same time?

i.e. first the first NS reads the file, then the second tries but the file is busy. so it returns an error, which does not pop up in the print.

My advice is to put prints around even where the DLL returns any numbers.


I also understood that the other orders interfere, or option you set out.

My question is what to rename and where in the Expert Advisor that would be two different folders? I guess I have to change the name of this line: #define ANN_PATH "C:\\\ANN\\" and in addition all the lines where it says ANN?

 
progma137:

is it ok that two NSs are using the same training files at the same time?

i.e. first the first NS reads the file, then the second one tries but the file is busy. so it returns an error, which does not pop up in the print.

my advice is to put prints around even where dll returns any numbers

No matter what the FANN library returns and no matter how it works, the orders should open, i.e. regardless of res value. And the prints should be logged. By all means.

Take a look for yourself.

// Get Results
   double res = ann_pnn();
   
   // Trade
   
   int ticket = 0;
   
   RefreshRates();
   GetLastError();
   
   StopLoss = Correct_Stop(StopLoss); 
   if (res > 0) {
      ticket = OrderSend(Symbol(), OP_BUY, Lots, Ask, 2, 0, 0, WindowExpertName(), 0, 0, Blue);
      Print("buy ticket=",ticket);
      
      if (ticket>0)
         {
         OrderSelect(ticket,SELECT_BY_TICKET);
         RefreshRates();
         OrderModify(OrderTicket(),OrderOpenPrice(),Ask -  NormalizeDouble(StopLoss * Point,Digits),Ask + NormalizeDouble(StopLoss * Point,Digits),0,Blue);
         Print("buy set SL & TP err=",GetLastError());
         }


   } else {
      ticket = OrderSend(Symbol(), OP_SELL, Lots, Bid, 2, 0, 0, WindowExpertName(), 0, 0, Red);
      Print("sell ticket=",ticket);
     
      if (ticket>0)
         {
         OrderSelect(ticket,SELECT_BY_TICKET);
         RefreshRates();
         OrderModify(OrderTicket(),OrderOpenPrice(),Bid +  NormalizeDouble(StopLoss * Point,Digits),Bid - NormalizeDouble(StopLoss * Point,Digits),0,Blue);
         Print("sell set SL & TP err=",GetLastError());
         }
   
   }
 

There are no positions opened by Fannom on any account right now, so we'll see if there are no conditions for opening. Other trades are hanging, both manual and opened by other bots. In the logs silence and in the log too.

 
marker:

There are no positions opened by Fannom on any account right now, so we'll see if there are no conditions for opening. Other trades are hanging, both manual and opened by other bots. In logs silence and in a magazine too.

I reiterate.

There are alwaysconditions for opening in this EA. I don't care whether the FANN library works or not.

 
lasso:

Again.

In this EA, conditions for opening are always there. Regardless of how FANN library works.


Nevertheless, it doesn't write anything.

Here are the logs, I reinstalled the EA before the start of the hour.

22:57:44 FANN-EA_3a EURUSD,H1: f2M_save(15, C:\ANN\EURUSD-620.15.net) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_destroy(15) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_save(14, C:\ANN\EURUSD-620.14.net) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_destroy(14) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_save(13, C:\ANN\EURUSD-620.13.net) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_destroy(13) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_save(12, C:\ANN\EURUSD-620.12.net) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_destroy(12) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_save(11, C:\ANN\EURUSD-620.11.net) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_destroy(11) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_save(10, C:\ANN\EURUSD-620.10.net) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_destroy(10) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_save(9, C:\ANN\EURUSD-620.9.net) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_destroy(9) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_save(8, C:\ANN\EURUSD-620.8.net) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_destroy(8) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_save(7, C:\ANN\EURUSD-620.7.net) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_destroy(7) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_save(6, C:\ANN\EURUSD-620.6.net) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_destroy(6) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_save(5, C:\ANN\EURUSD-620.5.net) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_destroy(5) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_save(4, C:\ANN\EURUSD-620.4.net) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_destroy(4) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_save(3, C:\ANN\EURUSD-620.3.net) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_destroy(3) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_save(2, C:\ANN\EURUSD-620.2.net) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_destroy(2) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_save(1, C:\ANN\EURUSD-620.1.net) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_destroy(1) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_save(0, C:\ANN\EURUSD-620.0.net) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: f2M_destroy(0) returned: 0
22:57:44 FANN-EA_3a EURUSD,H1: deinitialized
22:57:44 FANN-EA_3a EURUSD,H1: uninit reason 5
22:57:44 FANN-EA_3a EURUSD,H1 inputs: StopLoss=620; x=500; Lots=0.01;
22:57:44 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.0.net' loaded successfully with handler 0
22:57:44 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.1.net' loaded successfully with handler 1
22:57:44 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.2.net' loaded successfully with handler 2
22:57:44 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.3.net' loaded successfully with handler 3
22:57:44 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.4.net' loaded successfully with handler 4
22:57:44 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.5.net' loaded successfully with handler 5
22:57:44 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.6.net' loaded successfully with handler 6
22:57:44 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.7.net' loaded successfully with handler 7
22:57:44 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.8.net' loaded successfully with handler 8
22:57:44 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.9.net' loaded successfully with handler 9
22:57:44 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.10.net' loaded successfully with handler 10
22:57:44 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.11.net' loaded successfully with handler 11
22:57:44 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.12.net' loaded successfully with handler 12
22:57:44 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.13.net' loaded successfully with handler 13
22:57:44 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.14.net' loaded successfully with handler 14
22:57:44 FANN-EA_3a EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.15.net' loaded successfully with handler 15
22:57:44 FANN-EA_3a EURUSD,H1: initialized