fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Two money managemeant rules in buy/sell block

    Questions & Answers
    3
    5
    1169
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Aizen last edited by Aizen

      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

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        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)

        1 Reply Last reply Reply Quote 0
        • A
          Aizen last edited by

          Thanks, that helped. But I still get " ',' - unexpected token " compilation error.

          1 Reply Last reply Reply Quote 0
          • roar
            roar last edited by roar

            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)

            Need small help? Tag me in your post
            Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

            1 Reply Last reply Reply Quote 0
            • A
              Aizen last edited by

              It worked, thanks. I looks so obvious when somebody shows, I start to doubt my common knowledge 😀

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              Online Users

              E
              S
              N
              O

              20
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors