Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1560

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I'm asking for help from the community...
How to declare and create MQL5 global objects correctly?
The global ones are declared here
I don't know how to tell you to read the documentation. If you have read it and the standard function is not suitable for some reason, you should have said so straight away...
Well, about "send", let the moderators decide who to send and where to send it to...! Ban, for example... Guess who. As for the regular functions, I haven't seen json parsing and saving/writing json files in the documentation. But you, as usual, know some secret section of the documentation where it's all there... And I didn't know... Holy shit. Shame on me. I'm about to be shushed by Alexei... :)
help people, going to opena maximum of 2 orders at the same time, I put so does not open any one, without pos_total opens
What am I doing wrong?
help people, going to opena maximum of 2 orders at the same time, I put so does not open any one, without pos_total opens
What am I doing wrong?
if (pos_total<=2)
Makar, you used to do the right thing and now you want to do the stupid thing...
Think back to your 5th or so grade maths. How much is (-3)-(-7) and how much is (-3)+(-7)?
It's hard to check on a calculator, Excell will help you.
Alexey knows mathematics from the 5th grade. Bravo, Alexey. Just Captain Hindsight. :)
Alexei knows maths as far back as the 5th grade. Bravo, Alexei.
Yes, thank you. I jumped to conclusions. I got it right)
The question was not that the function may have negative values, but why add swap and commission to the profit. You and Alexei probably did not understand.
Tsaryoff5614 wanted to calculate the order profit in the history and the function was called lastloss (if you speak English).
https://www.mql5.com/ru/forum/160683/page1559#comment_23786144
You have confused yourself and me. And then you and Alexey... Fool...
You are wrong in this case.
Thanks for the tip, but it doesn't filter at all, it opens up to five positions
it tells it to open positions, no matter where I put pos_total, it doesn't work
Thanks for the tip, but it doesn't filter at all, it opens up to five positions
It's telling him to open a position, no matter where I put pos_total, it doesn't work.
if (pos_total<=2)
I need to change the sign like I wrote.
The question was not that the function can have negative values, but why add swap and commission to the profit. You and Alexey probably did not understand.
Tsaryoff5614 wanted to calculate profit, but his function was called lastloss. He confused himself and me. And now you and Alexey... Fool...That's why we add it, so that we can calculate all the profit for the period.