
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
sergey1294,
Thanks again, everything works!!!
There is one more small question, how to add a check by magic number to the function? I'm trying to insert such a check:
..... but something it breaks the whole trade.....Read this article Using ORDER_MAGIC to trade different Expert Advisors on one instrument
I have read it many times, but again, I need it without classes. Isn't there a simple way to check an order for a magician inside a function?
Of course, in the future we will deal with mql5 in detail, but now it is not so urgent, because we trade on MT4 and everything is fine. Now I just want to quickly convert already ready working codes to the fifth version for the championship, and, frankly speaking, there is no time, so I ask for help.
I've read it many times, but again, I need it without classes. Isn't there a simple way to check an order for a magik inside a function?
Of course, in the future we will deal with mql5 in detail, but now there is no such urgent need, because we trade on MT4 and everything is fine. Now I just want to quickly convert already ready working codes to the fifth version for the championship, and, frankly speaking, there is no time, so I ask for help.
This is one of the easiest ways to work with magik. The only question is how and where to put it in the functions....
Well, I gave the man an example, because he has already made his brain how to write an ordinary trailing, and then let him think a little bit, so that it would work without errors, in the tester in principle, and this design works normally. in real life I have not checked
As an example of course will do, but if without analysing the result will be a bunch of errors (sooner or later)...
Excuse me, can you post a "finalised" TrailingStop() suitable for "real".
Thank you for this article, very helpful.
Mora
Yes, this article is very useful, but an "update" for MT5 build 684 is required. When I tried to use this program (especially the sub-program: "sample_trailingstop.mqh"), I received the error message: "attempt to connect by terminal of old build 674". I.e., the new update obviously requires a different format for orders.
Can anyone help? I need it desperately!
Thanks in advance!
L. Funderburk
Yes, this article is very useful, but an "update" for MT5 build 684 is required. When I tried to use this program (especially the sub-program: "sample_trailingstop.mqh"), I received the error message: "attempt to connect by terminal of old build 674". I.e., the new update obviously requires a different format for orders.
Can anyone help? I need it desperately!
Thanks in advance!
L. Funderburk
Hi locan.BBS,
I don't understand, what kind a help you're looking for ?, just update to 684 or re -install MT5 will update MT5 to 684.
Hi locan.BBS,
I don't understand, what kind a help you're looking for ?, just update to 684 or re -install MT5 will update MT5 to 684.
Thanks, onewithzachy!
Soon afterwards, I discovered that a defective "Strategy Tester" is/was at fault. Now the "SAR_trailing" EA is working.
But unfortunately my entries are even before the SAR line takes effect. Thus price can slip lower (or higher when shorting) at the beginning and never trigger the SAR alarm. (In accordance with the old rule: "The market can stay overbought(/sold) longer than you can stay solvent!")
That seems to make it more or less useless for me, since one of the biggest problems in counter-trend trading is signal failure in cascading markets. If your EA is working all the time, you will obviously have to deal in countertrends, too, which is dangerous if you don't have a universal SL.
So I have decided to try the NRTR method.
But unfortunately there seems to be a REAL PROBLEM with the file "my_first_NRTR_trailing", as even with the original file (without my modifications) a "trailing error" is immediately triggered, while this is not the case with the "SAR_trailing" counterpart. I am using the exact same program which works with the "SAR" variation, with just the few specific modifications at the beginning for "NRTR". What could be the problem there and what can a "newbie" do about it?
Thanks in advance for your (or other) sage advice!
L. Funderburk
Hi, I'm very new to the MQL5 community so please bear with me. How do I get this expert adviser to run in MT5? Is it possible or does it have copy rights?
Regards
Pine
Hi, I'm very new to the MQL5 community so please bear with me. How do I get this expert adviser to run in MT5? Is it possible or does it have copy rights?
Regards
Pine
Hello,
You can use it without problem. See the documentation to learn how to run an expert advisor.