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

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
If there is more than one position open by hand, how do I assign the EA to the one that needs to be trawled?
So far, I have only thought of starting a script that creates a GP and copying the ticket from there.
Is it possible to feed the ticket value to the owl input as input int or at least as enum of enumerations of ticks of all positions of the given symbol?
Clicking on the open position icon/set order selects it as a trawl target. Clicking+Ctrl selects multiple positions/orders for the trawl. All you need to do is write the reaction to click events on the objects. And allow to set position/order icons.
:)
What if you run the EA at 9.22 ?
What if there is a system or terminal failure? The price will be lost.
I.e., you have to look for what was 20 minutes ago when the time of this check comes. The time has come in which the minutes are greater than or equal to a multiple of twenty - check the state of RSI on the bar, which was 20 minutes ago. If it has the desired crossing, then we proceed as planned...
However, on M15 you cannot determine the exact time of crossing and the exact price, but you can look at the price on M1 - at least 15 times more accurate.
Can't you make a notepad that will record the exact time of crossing and the price?)
There are EAs that record all kinds of information in a notepad.
More often GV from GlobalVariable*** is used, I wouldn't ask this question then. The question is ambiguous. There are many positions, but we need only one trawl. Is it the same Expert Advisor that sets positions? The question sounds strange in this case. If the positions are placed manually or by another EA, then, when you run the EA, insert in input ticket and that's it... If the Expert Advisor sets a random number of positions and the list can be changed on the fly... Freelancing is useful.
You understand correctly and even write what needs to be done, but don't say how :-)
Positions are opened by hand, the owl can only distinguish them by the ticket. I can paste the ticket by hand via copying to the buffer, but it's better not to do that, but offer to choose from a list. Is it possible to do so?
Question: are you talking about the IntelliJ IDEA development environment ?
Yes, I am talking aboutIntelliJ IDEA
All life seems to be here, no one looks at the individual threads.
Look at my question, please: Can I invent an analogue of CopyBuffer() for MT4?
https://www.mql5.com/ru/forum/302404
Yes, but in this case you need to complete the code of indicator, which should produce its own buffer
You understand correctly and even write what needs to be done, but don't say how :-)
Positions are opened by hand, the owl can only distinguish them by the ticket. I can paste the ticket by hand via copying to the buffer, but it's better not to do that, but offer to choose from a list. Is it possible to do so?
Everything is possible. For example to display a panel with positions, and in it to choose for what track. But it's more like you said above in Freelance.
Clicking on an open position/order icon selects it as a trawl target. Click+Ctrl to select multiple positions/orders for trawl. All you need to do is to enter reaction to click events on the objects. And allow to set position/order icons.
So it corresponds to execution of PositionSelect?
So this corresponds to the execution of PositionSelect?
No, it doesn't. It was a suggestion as to how it could be done.
Clicking on the icon of an open position/set order selects it as a trawl target. Clicking+Ctrl selects multiple positions/orders for the trawl. All you need to do is to insert reaction to click events. And allow to set position/order icons.
You must be referring to the trawl built into the terminal? It can't do partial closing, which is what I want to do, that's why it's such a mess.
=Ijust need toput in reaction to events of clicking on objects.
And how can I handle events outside of the graphic window?
From what is written in help, none of the event types is suitable.
You must be referring to the trawl built into the terminal? It can't do partial closing, which is what I want to do, that's why it's such a mess.
=Ijust need toput in reaction to events of clicking on objects.
And how can I handle events outside of the graphic window?
From what is written in help, none of the event types fits.
I understand that the Expert Advisor needs to somehow indicate the ticket of the position opened manually that it should trawl.