Are you testing with terminal connected to the broker? Diiferent spreads will be used between tests if you are connected. Always test off line if you want consistancy of results
V
Hello Viffer,
Yes, I tested with terminal connection !
I disconnected and now p went to 10*p :-)
You found the problem, thanks a lot :-)
Can I set the spread to any value of my desire ?
Thanks again
U
Hello Viffer,
Yes, I tested with terminal connection !
I disconnected and now p went to 10*p :-)
You found the problem, thanks a lot :-)
Can I set the spread to any value of my desire ?
Thanks again
U
There was some code somewhere... and it involved making amendments to the symbol.sel file... you will have to search for it... I disconnected my testing terminal at a spread that was acceptable and haven't changed it. Of course in the real world spread changes throughout the day so be aware of your test results.
V
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I wrote an EA.The report gives my the number of trades (n) and the total net profit (p).
Fine.
Now just for test reasons,
I replaced 1 OrderSend command and 1 OrderClose command
by 10 OrderSend commands and 10 OrderClose commands.
The n should go to 10*n and the p to 10*p, right ?
The n does, but the p doesn't !
Why ?
I found out,
that my replacement implicates different open fill prices !
To show this, I attached the two journals.
Why is the open price depending on the number of OrderSend commands ?
Any ideas ?
Thanks a lot
Ulawun