Compilation Error Message
-
Hi Everyone,
When changing a condition number and giving it a new name I keep getting some error messages. These are along the lines of "size" - semicolon expected - does anyone have any ideas what I need to do to correct this?
Thanks -
@alphaandy Need more details. May you share your project?
-
Here's the link,
Where it say's 2 next to the "Once a Day" condition I have set the time to 08:00 - 22:00 and have made it adjustable. When I click on " to change the heading to "Set time for Sell Trades" it kicks out the settings and produces an error. Hope that helps.
https://fxdreema.com/shared/ZASlynLmd
Still have more to do but don't want to move on until I can get the headings right to adjust the EA.
Appreciate anything you can do. Thanks
-
I'm not a programmer so i will limit my help to what I see on your project and, as far as I can confirm, there is no problem on it. Is that the whole project or are you using some variables not included in your link?
-
@alphaandy
Did you try to edit the heading like this:

The grey part is the block ID, the EA uses that ID to process the logic. Spaces will mess up the code, so replace them with underscores.
In any case, I think it is safer to modify the text on the green part, that does not play any role in the actual logic process. Just right-click to get that Edit title button:

-
@l-andorrà - Thanks for your reply-The problem is that when I change the heading the settings in the condition change back to the default when I first added it. Can't see why it would do this, also, this is by no means complete but just wanted to solve this issue before I add any more conditions.
-
@roar - Thanks for your reply - I did try it like that so will add the underscores in to see if that solves the problem. If not then I'll try the heading of the block and see if that gives me the heading options that I need so that the title is correct . Currently when the EA is on the MT4 platform and I look at the properties it shows me "imp2_Ro_Value" and not the name of "Set time for Sell Trades".
-
@roar - That's fixed the problem - I can now see the correct heading in the EA properties on the MT4 platform. Thanks for all your help. Something new learnt. I'll share the finished results when I'm done and you can take a look and play around with it for free for all your help. Not even sure it's gonna be any good but that's what is so great about this platform.
-
@alphaandy Glad it worked!
There's another solution - not using those tick boxes at all, to get the values visible on mt4. Instead, you can declare some constants and use them. You can freely name your constants, use same constant in multiple blocks, and they will always show up on mt4.
Import this to your builder to see how I made the constants:
0_1570358144834_x.mq4