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
The SetChannel() function.
This function sets theOBJ_CHANNEL object to an equidistant channel on the current chart.
Good afternoon.
I'm using the SetTLine() function from KimIV https://forum.mql4.com/ru/38949/page6#434255 . The problem is that I need two lines (top and bottom), but it doesn't work for me. Made another function SetTLine1() with other variables, but it still doesn't work. How to do it?
You don't need to make two functions. You need to call one with different parameters. You have called two functions, but you have passed an empty name of the object LINE to both of them. By default, the SetTLine() function sets the current bar open time as the name. In your case, this would cause that no matter how many times you calledSetTLine(), each time you created an object with the same name, that is, ONE LINE object.
I have reworked your code. See attachment. And for an example of what your code draws, a picture
You don't need to make two functions. You need to call one with different parameters. You have called two functions, but you have passed an empty name of the object LINE to both of them. By default, the SetTLine() function sets the current bar open time as the name. In your case, this would cause that no matter how many times you calledSetTLine(), each time you created an object with the same name, that is, ONE LINE object.
I have reworked your code. See attachment. And for an example of what your code draws, a picture
I see, thank you.
Hello!
I want to say a BIG THANK YOU for your work. I have downloaded 2 files(ByMarketBuy(Sell)+e-SARTrailing) from your website to build my trading system.I sendByMarketBuy(Sell) scripton EUR/USD pair on 1 screen, prescribing MAGIC 30 for one order andMAGIC 60 for another order (respectively M30 and H1) ande-SARTrailing advisor on 2 and 3 screens withSAR.TF=30 and 60 settingsrespectively. And since two orders are open on the same currency pair, so they go co-rotated and it turns out that withoutMagicNumber Advisorse-SARTrailing on two screens will conflict with each other. I have a GREATREQUESTto youif you could amend the advisor (to write) such a feature asMagicNumber may be such a supplement would appreciate many. And this will work on all timeframes at the same time without conflict with each other regardless of directionality.
Many thanks in advance!
I have a GREAT REQUEST to you if you could tweak your Expert Advisor withMagicNumberfunction.
GetTimeOpenBar() function.
This function returns the open time of an arbitrary symbol and arbitrary timeframe bar. Generally, it is just a combination of basic functions iBarShift() and iTime(). Therefore, there is nothing new here, and the use of a particular variant is a matter of convenience. You can pass the following optional parameters to the function
Thank you for the tip. I've added a filter for magicians...
HELLO!
WOW !!! THAT'S THE PACE !!! (I do it myself or I say NO!)
AHUGE RESPECTFOR PROFESSIONALS!(A professional must know all the smallest details + hard work in their field and of course the experience that accumulates over the years).
I am engaged in the built-in furniture already 4 5 years and 1 5 years finishes Forex trading (hard work+experience of successful and unsuccessful moments in trade, it remains to learn the smallest details).
MY GOAL IS TO BECOME A PROFESSIONAL IN TRADING.
I APPRECIATEYOUR HELP!
WITH RESPECT!
I have put together the ErrorRU() function, which returns a short or detailed Russian description of an error by its code. Both errors returned by the trade server and errors of executing MQL programs are detected. Not all errors, however, have a detailed description with recommendations "What to do", but that's how it is.
I am publishing the function in the script for testing it.
If someone needs a variation in the form of MQH-file, you can get it from my website.
Hello!
Is it possible to add PUSH-notifications to youre-SignalOfTrade EA?
https://www.mql5.com/ru/forum/6960
https://www.mql5.com/ru/docs/common/sendnotification
(Leased VPS server refuses to give the data SMTP-server which should be specified in MT4 mail settings for work of the advisor withUseSendMail=True- email. )
Thanks in advance!