Issue with risk % equity, strategy tester says error?
-

I've selected as money management as risk % of equity, and when running in MT5 strategy tester it gives these problems, it also has ATR (price fraction) as SL and TP.
It gives this error in the journal(pic1), and it is this line of code(pic2) in the EA.
It runs normally if you go with the default money management in the "buy" block.
I dont get it what is the issue here.
Thank you for your time in advance!
-
@alfredinho50 Can you please share the link of the project?
-
@l-andorrà Sure, no problem https://fxdreema.com/shared/JBls1UFnb
-
@alfredinho50 For some weird reason I cannot load the builder. Am I the only one?
-
I dont know mate, i tried and the link works idk really. Try this one @l-andorrà
-
@alfredinho50 I could finally take a look at it. I see the logic is correct so I don't know the origin of that error. However, you are working on MT5 and traditionally this part of fxDreema is not so well fined tuned as fot MT4. My guess is a problem with the code of any of those blocks. I strongly recommend you to contact the admin to let him know.
-
@l-andorrà Yea will do
-
@alfredinho50 to me it works correctly if the parabolicSAR loads it with "Indicators" and not with "myIndicators" and the parameters of the indicator are greater than 0.
-
@miki @l-andorrà Yea thanks, while im here any idea why does it open a trade in the middle of a candle, or in the wick

Never had this issue with mt4It is this EA https://fxdreema.com/shared/GWmjBCBpe
-
@alfredinho50 on lower time frame may be the spread.
-
@miki its actually on the daily, is there a way to turn it off, or to get around it
-
@alfredinho50 Does it happen every new trade is open or just some times?
-
@l-andorrà every now and then, i think i've come to a conclusion it may be spreads but im not sure
-
@alfredinho50 Then doesn't seem to ba a problem with the logic but woth broker conditions.
-
@l-andorrà Yea probably with broker data, thank you for all this!
-
@alfredinho50 You're welcome.
-
@alfredinho50 Hello @alfredinho50! Your problem is with the amount that you have put in the SELL and BUY block, you try to put 1% for Equity or Balance and this query was made by me for a long time without an answer, with trial and error I discovered that you must multiply the percentage by 100 that you need and it will give you real values, that is, if you want 1% you must put 100%, if what you want is 0.5% it must be 50% and so on, I think it must be by working with micro lots.