I want to move the EA comment from left to right corner ? Ask for advice as well. Get help
Just had the same problem. My solution is: create a string "blankspaces" at the beginning of the code with dozens of blank spaces, then at the comment function you do like:
PS: desconsider my variables in the Comment function.
//ADD COMMENTS TO THE RIGHT SIDEstring comment = "First Line\n";
comment += "Second Line\n";
comment += "Third Line\n";
commentRight(comment);
//CLEAR THE RIGHT SIDE COMMENTS
clearCommentRight();
Why change all the New Line characters to a Centered Dot only to separate by the Centered Dot?
Because I want to use the StringSplit function to split the comment's "\n" line breaks to an array. And StringSplit requires a ushort letter for separator.
"\n" is 2 letters, that's why I change it to the ushort "·"
Because I want to use the StringSplit function to split the comment's "\n" line breaks to an array. And StringSplit requires a ushort letter for separator.
"\n" is 2 letters, that's why I change it to the ushort "·"
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.
I want to move the EA comment from left to right corner ? Ask for advice as well. Get help
Just had the same problem. My solution is: create a string "blankspaces" at the beginning of the code with dozens of blank spaces, then at the comment function you do like:
PS: desconsider my variables in the Comment function.
I think this is a good and easy solution, I added it to my Include Script:
Now you can call it like this:
And the result looks something like this:
Why change all the New Line characters to a Centered Dot only to separate by the Centered Dot?
Why change all the New Line characters to a Centered Dot only to separate by the Centered Dot?
Because I want to use the StringSplit function to split the comment's "\n" line breaks to an array. And StringSplit requires a ushort letter for separator.
"\n" is 2 letters, that's why I change it to the ushort "·"
Because I want to use the StringSplit function to split the comment's "\n" line breaks to an array. And StringSplit requires a ushort letter for separator.
"\n" is 2 letters, that's why I change it to the ushort "·"
"\n"'\n'