Questions from Beginners MQL4 MT4 MetaTrader 4 - page 119

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
See what's in the other buffers...
so there are only 8 of them on the screen.
Trying to pull data from buffers because I can't get it from filesso there are only 8 of them on the screen.
Trying to pull data from buffers because it doesn't work from filesThere can be more buffers in the data window - you can prohibit them with function: SetIndexLabel(1, NULL); Look at the contents of buffers zero to ten. See if the values you receive match and are visible. Move mouse cursor to the bar whose number is in iCustom function. Check how the result of the function depends on the number of parameters (default parameters). To speed up the process while debugging, use the script and Alert function instead of writing to a file. At the beginning of the script, put Alert("---------------------") will flag the last displayed values. All in all, it's very fascinating and interesting and there's a lot to dig into
There may be more buffers in data window - you can prohibit it with function: SetIndexLabel(1, NULL); Look at the contents of buffers from zero to tenth. See if the values you receive match and are visible. Move mouse cursor to the bar whose number is in iCustom function. Check how the result of the function depends on the number of parameters (default parameters). To speed up the process while debugging, use the script and Alert function instead of writing to a file. At the beginning of the script, put Alert("---------------------") will flag the last displayed values. All in all, it's very fascinating and interesting and there's a lot to dig into
Yes, the question is how to take data from the required field using MQL4 methods. For example from alerts?
They are all in plain sight.
GOOD DAY ! Help or give me a tip ! There are two horizontal lines with price values! I would like to: Write to a file - Symbol, line values. The idea is that the levels are built on the demo terminal and then transferred to the Life terminal installed on the server!
No one will give you vodka, everyone here is greedy :)
No one will give you vodka, everyone here is greedy :)
That's right, it's by the book.
Money in the morning, chairs in the morning.
Money in the morning, chairs in the evening.
That's why they let my question go to waste...
So where's the question? I looked a few pages back and there isn't one.
So where's the question? Have scrolled through a couple of pages back - no.
In post 1149 there is a code for closing positions.Half solution:only if one type of position is opened. If, for example, one Sell position has been opened and is not yet closed, at the same time a Buy position is opened and closed, the Sell position cannot see any conditions to be closed before another Sell position opens and closes (in accordance with its conditions). And if BAY opens and closes again, it again misses its closing conditions. So what to do?
In post 1149 code for closing positions.Half solution:only if the same type of positions are opened. If, for example, first a Sell position opens and has not yet closed, and at the same time a Buy position opens and closes, then the Sell position does not see its closing conditions until another Sell position opens and closes (according to its conditions). And if BAY opens and closes again, it again misses its closing conditions. So what to do?
Yep, I can see that. And I see the answer to the question in the post belowhttps://www.mql5.com/ru/forum/160587/page115#comment_6521492. In other words, the problem is that the functionality is not divided into logical subtasks. You have lumped together: parsing orders, deciding on a trade action and executing a trade.
Such a task can be solved exactly in three stages: