![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 see.
Specifics: tomorrow I will think about how to catch a position on the fly on FORTS. In fact, what I need most of all is to know the actual opening price of a position that has cleared (reopened at the clearing price).
The position on FORTS is gained by the sum of trades on one (or more orders). On clearing there is a technical trade without a ticket, we need to figure out how to determine the POSITION_PRICE_OPEN price that was before clearing.
Obviously, if:
You have to keep chiselling. But at least don't block the expert. Maybe less brazenly chisel, as the number of errors increases, increase the pause between attempts. The simplest solution is a few attempts and a pause until the next bar opens.
I see.
Specifics: tomorrow I will think about how to catch a position on the fly on FORTS. In fact, what I need most of all is to know the real opening price of a position that has cleared (reopened at the clearing price).
The position on FORTS is gained by the sum of trades on one (or more orders). On clearing there is a technical trade without a ticket, we need to figure out how to determine the POSITION_PRICE_OPEN price that was before clearing.
Great! I'll bolt it on tomorrow.
You have saved me a lot of time. Thank you. (chuckles)
great! I'll attach it tomorrow.
You have saved me a lot of time. Thank you.
Memo:
This function is ONLY for incoming trades!
(i.e. there was no position reduction).
If you need both, then add toDEAL_ENTRY_OUT function
Memo:
This function is for incoming trades ONLY!
(i.e. no decrease in position)
If you need both, then add to theDEAL_ENTRY_OUT function
that I understood right away. It's the principle itself that's important here: the ID search in the history and it's essentially the full answer to the question above.
Frankly speaking, I do not understand the developers' logic, why they decided to design a clearing technical deal in such a "clumsy" way.
Both graphical objects on charts, and position properties in history, and moreover, properties of an open position (profitability) - everything is misleading not only for a simple code in an EA, but for any trader in general.
And what about the Exchange penalties for exceeding 2,000 transactions? Suppose I have 50 EAs and 2 000 transactions have passed. What do I do next, receive monetary fines from the Exchange?
You will not learn the answer to your question.
In order not to receive fines, it is necessary to stop the work of the expert (you and I discussed this a long time ago).
If our miracle-programmer says that it is necessary to stop, he thereby admits that he is
admitting to being ....., who doesn't know anything about programming
experts for stock trading....
You will not learn the answer to your question.
In order not to receive fines, it is necessary to stop the work of the expert (you and I discussed this a long time ago).
If our miracle-programmer says that it is necessary to stop, he thereby admits that he is
admitting to being ....., who doesn't know anything about programming
Expert Advisors for stock trading....
Yes, because you are advising a person what is good for MT4 and is completely "futile" in MT5!
It's obvious from your messages that you have no idea how MT5 works.
And it's not for you to judge whether the expert programming principle is shameful or not!
I don't see you as an authority at all, but as a cheeky, cocky boy!
Jealous? You're right - better to be a young puppy than an old bird of paradise.