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

 

20:50:00 FANN-EA EURUSD,H1: loaded successfully
20:50:00 FANN-EA EURUSD,H1 inputs: StopLoss=620; x=500; Lots=0.01;
20:50:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.0.net' loaded successfully with handler 0
20:50:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.1.net' loaded successfully with handler 1
20:50:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.2.net' loaded successfully with handler 2
20:50:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.3.net' loaded successfully with handler 3
20:50:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.4.net' loaded successfully with handler 4
20:50:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.5.net' loaded successfully with handler 5
20:50:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.6.net' loaded successfully with handler 6
20:50:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.7.net' loaded successfully with handler 7
20:50:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.8.net' loaded successfully with handler 8
20:50:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.9.net' loaded successfully with handler 9
20:50:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.10.net' loaded successfully with handler 10
20:50:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.11.net' loaded successfully with handler 11
20:50:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.12.net' loaded successfully with handler 12
20:50:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.13.net' loaded successfully with handler 13
20:50:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.14.net' loaded successfully with handler 14
20:50:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.15.net' loaded successfully with handler 15
20:50:00 FANN-EA EURUSD,H1: initialized
20:51:03 FANN-EA EURUSD,H1: f2M_save(15, C:\ANN\EURUSD-620.15.net) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_destroy(15) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_save(14, C:\ANN\EURUSD-620.14.net) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_destroy(14) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_save(13, C:\ANN\EURUSD-620.13.net) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_destroy(13) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_save(12, C:\ANN\EURUSD-620.12.net) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_destroy(12) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_save(11, C:\ANN\EURUSD-620.11.net) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_destroy(11) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_save(10, C:\ANN\EURUSD-620.10.net) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_destroy(10) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_save(9, C:\ANN\EURUSD-620.9.net) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_destroy(9) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_save(8, C:\ANN\EURUSD-620.8.net) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_destroy(8) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_save(7, C:\ANN\EURUSD-620.7.net) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_destroy(7) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_save(6, C:\ANN\EURUSD-620.6.net) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_destroy(6) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_save(5, C:\ANN\EURUSD-620.5.net) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_destroy(5) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_save(4, C:\ANN\EURUSD-620.4.net) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_destroy(4) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_save(3, C:\ANN\EURUSD-620.3.net) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_destroy(3) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_save(2, C:\ANN\EURUSD-620.2.net) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_destroy(2) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_save(1, C:\ANN\EURUSD-620.1.net) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_destroy(1) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_save(0, C:\ANN\EURUSD-620.0.net) returned: 0
20:51:03 FANN-EA EURUSD,H1: f2M_destroy(0) returned: 0
20:51:03 FANN-EA EURUSD,H1: deinitialized
20:51:03 FANN-EA EURUSD,H1: uninit reason 4
2051:03 FANN-EA EURUSD,H1: removed
20:51:04 FANN-EA EURUSD,H1: loaded successfully
20:51:04 FANN-EA EURUSD,H1 inputs: StopLoss=620; x=500; Lots=0.01;
20:51:05 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.0.net' loaded successfully with handler 0
20:51:05 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.1.net' loaded successfully with handler 1
20:51:05 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.2.net' loaded successfully with handler 2
20:51:05 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.3.net' loaded successfully with handler 3
20:51:05 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.4.net' loaded successfully with handler 4
20:51:05 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.5.net' loaded successfully with handler 5
20:51:05 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.6.net' loaded successfully with handler 6
20:51:05 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.7.net' loaded successfully with handler 7
20:51:05 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.8.net' loaded successfully with handler 8
20:51:05 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.9.net' loaded successfully with handler 9
20:51:05 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.10.net' loaded successfully with handler 10
20:51:08 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.11.net' loaded successfully with handler 11
20:51:08 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.12.net' loaded successfully with handler 12
20:51:08 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.13.net' loaded successfully with handler 13
20:51:08 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.14.net' loaded successfully with handler 14
20:51:08 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.15.net' loaded successfully with handler 15
20:51:08 FANN-EA EURUSD,H1: initialized
22:00:26 FANN-EA EURUSD,H1: Wise result: -0.03431296
22:00:26 FANN-EA EURUSD,H1: seel err=130

It's from VPS, error 130, lot 0.01, in principle this lot is handheld, maybe the Expert Advisor can not trade less than 0.1? Disclaimer-opted lot 0.1....

The strange thing, but on my home computer is the same and did not give an error.

Here it is on my home PC (there are other trades still hanging there)

03:55:55 FANN-EA EURUSD,H1: loaded successfully
03:55:55 FANN-EA EURUSD,H1 inputs: StopLoss=620; x=500; Lots=0.01;
03:56:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.0.net' loaded successfully with handler 0
03:56:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.1.net' loaded successfully with handler 1
03:56:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.2.net' loaded successfully with handler 2
03:56:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.3.net' loaded successfully with handler 3
03:56:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.4.net' loaded successfully with handler 4
03:56:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.5.net' loaded successfully with handler 5
03:56:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.6.net' loaded successfully with handler 6
03:56:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.7.net' loaded successfully with handler 7
03:56:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.8.net' loaded successfully with handler 8
03:56:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.9.net' loaded successfully with handler 9
03:56:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.10.net' loaded successfully with handler 10
03:56:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.11.net' loaded successfully with handler 11
03:56:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.12.net' loaded successfully with handler 12
03:56:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.13.net' loaded successfully with handler 13
03:56:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.14.net' loaded successfully with handler 14
03:56:00 FANN-EA EURUSD,H1: ANN: 'C:\ANN\EURUSD-620.15.net' loaded successfully with handler 15
03:56:00 FANN-EA EURUSD,H1: initialized

 

String from EA extern double Lots = 0.1; should be changed to extern double Lots = 0.01; .......

 

I changed "static double MinimalBalance = 200;" to "static double MinimalBalance = 100;".

The line from the EA extern double Lots = 0.1; replaced by extern double Lots = 0.01; .......

I have it compiled and put it in Optics and checked if it will trade after that.

Balance is 200 quid. 0.01 lots are allowed.

 

Here's what else it gave out at the next hour.

04:00:07 FANN-EA EURUSD,H1: ERROR: Network RUN ERROR!
04:00:07 FANN-EA EURUSD,H1: Wise result: -124999999.82782176
04:00:07 FANN-EA EURUSD,H1: seel err=130

Maybe it's because it tried to open a trade at the same time when the optimization was going on.

 

Re-opted everything, left the lot at 0.01.

I left it like this in the code:

static double MinimalBalance = 100

extern double Lots = 0.01

I will wait for the next hour and see.

 

130, mistake stops and stakes..... my broker does not allow to put stakes and stops at once.... it seems to be the problem.... although the demo seemed to work.....

the five-digit take is 620, so it's OK, not a small take......

 

He hasn't opened anything:

06:00:02 FANN-EA EURUSD,H1: seel err=130

 

Nice guy, you just post a lot ..... ))

ERR_INVALID_STOPS 130 Неправильные стопы 

Please post the order opening block here.

In this EA one variable StopLoss is responsible for TP and SL sizes.

.................

One more thing. Please correct "seel" to "sell". It's just a bit jarring....)

 

Thanks for the good guy:))) I'm not a coder, so it's a bit more complicated for me:) And the bot is the author's)

"One more thing. Fix "seel" on the "sell". It's a shame....)" - and I think what a seel)) It's a seel:)))

Files:
fann-ea.mq4  9 kb
 
marker:

130, mistake stops and stakes..... my broker does not allow to put stakes and stops at once.... it seems to be the problem.... although the demo seemed to work.....

the take on the five digits is 620, i.e. it seems ok, not a small take......

Try it.

Split setting SL and TP.

I don't have ME at the moment, I have it in notepad. Did not compile.

And be careful with real.... EA written by Yuri just to demonstrate how the library works...

Files:
fann-ea_1.mq4  9 kb