Two money managemeant rules in buy/sell block
-
Hi, I wanted to add "Betting: martingale" and "% of balance => lots" option to same block. So, I tried to put custom variable to Initial volume field. But after compiling I get warning that initial volume has to be constant. My example https://fxdreema.com/shared/VQF8mmc9c
-
Remove that checkbox after the input field where you are using the variable. There is always a conflict when both are used at the same time. Basically, if you want to have input parameters, just use those Constants - they are both, input parameters for the EA and global values (I would not say variables here, because they are not supposed to be modified)
-
Thanks, that helped. But I still get " ',' - unexpected token " compilation error.
-
Seems you have set the CustomVolume variable as value 0,1 - use 0.1 instead
You can troubleshoot the code errors by opening and compiling the .mq4 with metaeditor, it makes it quite easy to guess what's wrong, even if you dont have particular coding knowledge (like I dont)
-
It worked, thanks. I looks so obvious when somebody shows, I start to doubt my common knowledge
