Please help with FANN neuro network

 

Hi all,

i made this ea which based on FANN neuro, i had created the network file and trained it with FANN Tool then i tried to create the neuro network by calling function:

ann = f2M_create_from_file("Close.net");

 and every time i got the same error (FANN_DOUBLE_ERROR) so always the output is -1000000000, i dont know where is my wrong, please help.

 the Close.zip contain Close.net file which is the trained network and you have to put it in experts\files folder

Files:
 
So no one can deal with 

FANN neuro network

this is strange!
 
turkm:
So no one can deal with 

FANN neuro network

this is strange!

read this if you haven't done so already,  https://www.mql5.com/en/articles/1565#9654

You may want to read it again. It might help you. The author has this

"As you can see if the f2M_create_from_file() fails, which is indicated by the negative return value,......"

 
skaboy:

read this if you haven't done so already,  https://www.mql5.com/en/articles/1565#9654

You may want to read it again. It might help you. The author has this

"As you can see if the f2M_create_from_file() fails, which is indicated by the negative return value,......"


Thank you so much for your response, i already road it many times but i still cant figure what is the wrong.
 
Mohammad Al turk:

Hi all,

i made this ea which based on FANN neuro, i had created the network file and trained it with FANN Tool then i tried to create the neuro network by calling function:

 and every time i got the same error (FANN_DOUBLE_ERROR) so always the output is -1000000000, i dont know where is my wrong, please help.

 the Close.zip contain Close.net file which is the trained network and you have to put it in experts\files folder

The error is that you can't write your path like string, you should do it with char array
   char TmpO[];

   StringToCharArray(Path,TmpO,0,StringLen(Path));

   AnnO = f2M_create_from_file(TmpO);
Reason: