Disliked{quote} i'm novice , basically i'm not really a coder. that's why i'm asking here. the last code you posted also returns zero. as you are not interested in this project we can move on from this, thanks for your time. cheersIgnored
And, I have already figured out my version of Kelly Criterion calculation for trading some years ago.
Plus, I don't have an MT5 account where I would have deposits and withdrawals.
And, I have never done what you are looking for.
I have done the ususal MM stuff, but nobody ever asked for what you're asking.
Also, don't we have that info in the statement or report?
.ex4/.ex5 files can't be fixed or modified / I'm not a coder!