fxDreema

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

    Need help here

    Questions & Answers
    2
    3
    114
    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.
    • T
      tec.nacks last edited by

      hello, I want to create an auto lot size management such that when the balance increases by 10,000, add 0.01 to the lot size: the reference will be a value input as the initial balance.

      The Logic is kinda like:

      10k = 0.01
      20k = 0.02,

      amount lower than 10k, restrict new trades from opening.

      How can place the lot increment by 10k value on auto:

      @ambrogio @jstap @l-andorrà
      Thank yu

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

        Use a lot variable, in custom code put this:

        if (AccountBalance() < 10000) {LOT =0.01;}
        else if (AccountBalance() > 10000 && AccountBalance() < 20000) {LOT =0.02;}
        else if (AccountBalance() > 20000 && AccountBalance() < 30000) {LOT =0.03;}

        continue this as you need, test an say if it works.

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        T 1 Reply Last reply Reply Quote 0
        • T
          tec.nacks @jstap last edited by

          @jstap Thank you, I'll give it a try

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

          Online Users

          C
          A
          X
          J

          15
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors