Hi all, I'm wondering why my EA often uses the wrong lotsize.
EA should trade on DAX40mini where I can trade Mini-Lots (0.1)
I use a constant where I put my max risk in money (e.g. 10 € on a 1000 € account. I know that due to spreads etc. the result is roughly 10 €, but that's ok for me).
The SL is calculated by body sizes of candle 1 + 2 but must not be greater than constant "ATR_High" (in this example 50). To get the Lotsize ("Risk") I use a formula "Money Risk/SL-Size" and round the entire result.
So far the results seem to be correct as they can be seen on the upper left corner of the chart.
Here are my issues/questions:
a) Why does the EA not use the "Risk Rounded" but some other "random" Lotsize (e.g. in picture "chart3")
b ) Why is a trade opened though the Risk-Size (SL) is greater than 50 (chart3)?
c) Why do I get an error ("invalid SL requested", picture "chart 1"), when after that message the SL is accepted (picture "chart 2")?
Here is the link to my project: https://fxdreema.com/shared/ycCqrXpXb
Any help is appreciated
Thanx in advance
