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
Please don't offer solutions that are solely dependant on using your "MT4Orders" class. This is a MQL5 question, not MQL4 and it should be independent of 3rd party solutions.
I want to analyse each EA trading from the trading history report in MT5. If a position closed by SL or TP, [sl xxx.xx] or [tp xxx.xx] is written in comment field in the report instead of original comment. I don't know which EA trades the position. Is there any way to keep original comment which EA write?
Please don't rely on the "Comment" field as that can change. Instead, use the "reason" field of the closing deal or order for the position.
Below are references for the Deal "reason" for a stop-loss, but the same applies for Order "reason" property as well as the take-profit. Just search the MQL5 documentation.
Please don't offer solutions that are solely dependant on using your "MT4Orders" class. This is a MQL5 question, not MQL4 and it should be independent of 3rd party solutions.
Please do not impose your personal opinion.
Forum on trading, automated trading systems and testing trading strategies
Libraries: MT4Orders
fxsaber, 2021.06.02 10:09
the MetaQutoes has completely localized the latest update of the library into English. The latest build of the library is now available on the English page with comments in the source code translated into English.
All open source libraries are MQL5-libraries.
I'm sorry but I don't understand which script. Could you put the script file?
By giving the OP a solution using YOUR library (even if it is open source), you are the one imposing your personal opinion, forcing the user to depend on YOUR library.
Instead, one should strive to offer a solution that is only dependant on the official MQL5 documentation, that is an unbiased, allowing the user not to be dependant on any 3rd party.
This one or the other one.
Thank you for letting me know. But I cannot compile it well. I may resolve the issue tomorrow..
I have a further question.
PRINT(OrderComment());
It shows an orignal comment insted of [sl xx.xx]?
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
uum, i didn' think it was expert advisor and automated trading issue, but MT5 issue. Because EA and it's trading are working well.
There is the MT4 section but no MT5 one, so I posted it to General.
I accept your suggestion.
It's strange that there is MQL4/MT4 section but no MQL5/MT5 one. I think you should review it.
Thank you for letting me know. But I cannot compile it well. I may resolve the issue tomorrow..
Try attached EX5-file.
I have a further question.
PRINT(OrderComment());
It shows an orignal comment insted of [sl xx.xx]?
Yes.
<ex5 removed by moderator, on mql5 file are allowed on this forum>
I accept your suggestion.
I based it on your opening sentence ... " I want to analyse each EA ", but don't worry about it too much! Some times questions are somewhat ambiguous and it is difficult to decide in which section they belong.
Everything on the forum is geared towards MT5/MQL5, except for a single section at the end which is reserved for the older MT4/MQL4.
By giving the OP a solution using YOUR library (even if it is open source), you are the one imposing your personal opinion, forcing the user to depend on YOUR library.
Instead, one should strive to offer a solution that is only dependant on the official MQL5 documentation, that is an unbiased, allowing the user not to be dependant on any 3rd party.
We have different points of view. I do not impose my point of view on you and do not believe that it is the only correct one.