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

 

If NDD has market order execution (Market Watch), then you have to correct the code - the Expert Advisor should first open an order with zero SL and TP, and then set the correct numbers on the second run.

 
marker:

Ready :))) Sleeping)


It's already a position )

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

So you're saying that there are no open positions and no mistakes when trying to open them?

But it doesn't work like that!

 
lasso:


It's already a position )

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

So you're saying that there are no open positions and no mistakes when trying to open them?

But there is no such thing!


I'm going to do the experiment again, but the stop on your latest version still fails on the last trade))I'm going to go to vpc:)
 
marker:

If NDD has "market" order execution (Market Watch), then we have to correct the code - the EA should first open an order with zero SL and TP, and then put the required numbers on the second run.


Here. First we set it up, then we make two modifications.

I have not compiled it.

Files:
fann-ea_3.mq4  10 kb
 

OK, I compiled it, put it up, it's strange, your version is very fast:) I noticed that when I upload quotes using home button, the result is the same, but when I uploaded the quotire history, the result is different. For quotes from the server the optimal 620, pokotiram from download 830, the difference is palpable, and there is a good difference in quotes by 20-30%.

 

Proopted, now the result is 620 again, all exposed, let's see if it opens or not.

 

Oh, a miracle!!! He opened the deal!!!

Logs:

21:54:34 FANN-EA_3 EURUSD,H1: initialized
22:00:08 FANN-EA_3 EURUSD,H1: Wise result: 0.38459526
22:00:08 FANN-EA_3 EURUSD,H1: open #4000000 buy 0.01 EURUSD at 1.40877 ok
22:00:08 FANN-EA_3 EURUSD,H1: buy ticket=000000000
22:00:08 FANN-EA_3 EURUSD,H1: modify #000000000 buy 0.01 EURUSD at 1.40877 sl: 1.40257 tp: 0.00000 ok
22:00:08 FANN-EA_3 EURUSD,H1: buy set SL err=0
22:00:09 FANN-EA_3 EURUSD,H1: modify #000000000 buy 0.01 EURUSD at 1.40877 sl: 0.00000 tp: 1.41497 ok
22:00:09 FANN-EA_3 EURUSD,H1: buy set TP err=0

 

Only I didn't put a stop.

 

Although there is a blue stop sign on the chart....

 
marker:

Although there is a blue stop sign on the chart....

22:00:09 FANN-EA_3 EURUSD,H1: modify #000000000 buy 0.01 EURUSD at 1.40877 sl: 0.00000 tp: 1.41497 ok

stop was removed by modification