I am trying to create "Hardcoded dates" into chart that shows share's important dates etc.
Although, I've managed via the code below manually for one object, I could not managed to move the object automatically to (for example) Low+10 or High+20 points.
(As you see the example below the 5700 number put there manually by me)
If anyone could kindly direct me to right direction, I'll be truly appreciated.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi All,
I am trying to create "Hardcoded dates" into chart that shows share's important dates etc.
Although, I've managed via the code below manually for one object, I could not managed to move the object automatically to (for example) Low+10 or High+20 points.
(As you see the example below the 5700 number put there manually by me)
If anyone could kindly direct me to right direction, I'll be truly appreciated.
Best Regards
John
ObjectsDeleteAll();
ObjectCreate ("ImportantDate",OBJ_TEXT,0,0,0,0,0,0);
ObjectSetText("ImportantDate",CharToStr(164),10,"Wingdings",Gold);
ObjectMove ("ImportantDate", 0, D'2008.08.15 10:15', 5700 );