Hi ViniQ, rantampla, thanks a lot or answering. Thank you Popov for having a look at this.
I cannot upload my EA right now, but I can do that over the weekend.
In any case, what it doesn't seem to be working for me is simply the "end of session/friday closing" settings in EA Studio when building and backtesting the strategy in EA Studio. In EA Studio backtests/results the Report shows not closing operations at the end of the day/week... As far as I understand it, the strategies created using the "close at the end of the session / close at the end of friday settings" should show closing all the trades at the end of each day / end of each week, and you can check that in the Report of the strategy in the EA Studio.
I guess if the strategy in EA Studio doesn't close all operations at the end of the session (or at the end of the week) it doesn't matter if this feature works in MT4 or not. I mean, in that case, the strats won't match, won't be the same if they are closing positions at night in MT4 but not closing them in EA Studio...
Am I wrong on this? A simple strategy build in EA Studio chosing "close at the end of the session" reveals (for me) that trades are taking more than one day in EA Studio report, so not closing at the end of the session...
Thanks a lot or having a look at this. I'm planning to build all my new strategies closing at friday nigth, to make simpler to prune bad strategies in a portfolio over the weekend (not leaving open trades over the weekend).