The statistics are different, I was wrong. There are sequences up to tens of thousands of trades long (the last run of the script had more than 17 thousand trades at most). Everything is printed to big file with 2 megs. If trades up to 1000 (with current settings), then all trades can be seen. If more - they are cutted. Increasing this parameter does not increase the file, because there are very few successful series.
The average length of the series before the loss is about 48 trades. But 99% of the series can be up to 700 trades long.
I will introduce the bailout check a little later. But it will hardly change much.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
So that the drain not from trading happen, but . Not from bad MM..
I didn't make it.
And from what?
account trend
red line - account drawdown
black line - spread of profits
green line - probably loss braking
Slightly complicated the calculations.
The statistics are different, I was wrong. There are sequences up to tens of thousands of trades long (the last run of the script had more than 17 thousand trades at most). Everything is printed to big file with 2 megs. If trades up to 1000 (with current settings), then all trades can be seen. If more - they are cutted. Increasing this parameter does not increase the file, because there are very few successful series.
The average length of the series before the loss is about 48 trades. But 99% of the series can be up to 700 trades long.
I will introduce the bailout check a little later. But it will hardly change much.
The maximal depo is also calculated.
Why don't you add the spread to st.
In my opinion, with a stop loss the loss is more on the spread, with a profit the profit is less on the spread.
Because there are different ways of counting here. For me - it takes more to get to the take than to the stop to get equal numbers.
And the difference between them is one spread, not two.
Just increased max series (second array dimension) to 10000. It's fine, works for less than 10 seconds.
I just got in and it's been spinning for two minutes.)
It's taking a long time...
changed it like this, also thinking