Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1369
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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 finished it)
Now all the levels are counting correctly.
I'm too lazy to check, but I have my doubts about the correctness of the code.
My thoughts on the design of hint codes:
The code should not be in one line. When code is split into parts it is easier to understand and observe in the debugger.
If you don't mind, show me a screenshot of the chip stretched upwards and values of 2-3 levels except the reference ones, i.e. level 0 and 100. And a second shot, stretched from top to bottom and the same values of the reference levels and 2 or 3 other levels to choose from. If desired, have a printout of all levels.
I'm too lazy to check, but I have my doubts about the correctness of the code.
My thoughts on the layout of the hint codes:
The code should not be a single line. When the code is split into parts it is easier to understand and easier to observe in the debugger.
If you don't mind, show me a screenshot of the chip stretched upwards and values of 2-3 levels except the reference ones, i.e. level 0 and 100. And a second shot, stretched from top to bottom and also the values of the reference levels and 2 or 3 other levels to choose from. If you wish, have a printout of all levels.
Right?
Hi all, I'm trying to make it so that each new lot can be multiplied........ what am I doing wrong that my lots are not multiplying?
For the first part (order counting) I recommend it:
Next
And the error is probably here (highlighted in yellow)
Right?
Makar, thank you very much for sending off the good feature and thank you for noticing the missing magician - American spies must have stolen the O_o))))))))))))))))))) magician and it all worked :-) Thanks again.
Hello esteemed forum members. I need mql4 code that turns a losing EA order into a profitable one without any stops and profits. The idea is clear from the screenshot. An EA has opened an order that turned out to be loss-making. We need a program that will close it when the price crosses the indicator line.
I want one too!!!
Hi all! I am trying to make each new lot be able to increase........ what am I doing wrong that my lots are not multiplied?
i've made a little trick out of this codehttps://www.mql5.com/ru/forum/107406#comment_3018721
- you can do it from a loss as well as from an increase in funds
I cheated here in this thread from this code abovehttps://www.mql5.com/ru/forum/310846/page54#comment_16379772
- I have an Mt4 and Mt5 Expert Advisor with this function.
I have made some magic with this codehttps://www.mql5.com/ru/forum/107406#comment_3018721
- it is possible to increase from a loss as well as from an increase in funds
I cheated here in this thread using this code abovehttps://www.mql5.com/ru/forum/310846/page54#comment_16379772
- I have an Mt4 and Mt5 Expert Advisor with this function.
It does not work at all! This is bullshit!