fxDreema

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

    Custom lot size as a function of price

    Questions & Answers
    2
    12
    549
    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.
    • J
      Johnster last edited by

      Can we determine buy / sell lot size by price?
      Higher price = smaller position.
      Smaller price = larger position.

      Example:
      Target size: 50
      50 / 3,50 (price) = 14.29 LOT
      50 / 0.40 (price) = 125 LOT

      Close price is fine, but bid/ask would be even better.

      John.

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

        I am not sure what you mean by price, the right of your chart is the price of the asset

        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! 😊

        J 1 Reply Last reply Reply Quote 0
        • J
          Johnster @jstap last edited by

          @jstap Price of the asset.

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

            I think you want to do this, in a formula block, 50 / candle 0 close (because it's the current price) save into a variable, put this into a comment and see if the returned value is relevant. You can use this variable in your buy/sell block as the lot, create a constant with 50 if you want to be able to change.

            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! 😊

            1 Reply Last reply Reply Quote 0
            • J
              Johnster last edited by

              Sounds about right.
              If I only knew how...

              J 1 Reply Last reply Reply Quote 0
              • J
                Johnster @Johnster last edited by

                @Johnster Screenshot 2024-09-03 at 17.29.36.png

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

                  Type is double (double is a number with a decimal like 0.154), and into the variable, the value is 0, this will put the formula result into the variable right click and add.

                  Add a shared link: Project screen - projects - create a shared link - open in web page - co[y and paste address bar here

                  This means people can see what you have done and advise on how to correct

                  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! 😊

                  1 Reply Last reply Reply Quote 0
                  • J
                    Johnster last edited by

                    https://fxdreema.com/shared/5MWCxxP7c

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

                      Try this: https://fxdreema.com/shared/VpwR4kgnd

                      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! 😊

                      1 Reply Last reply Reply Quote 0
                      • J
                        Johnster last edited by

                        Didn't work but contained the clue to make it work.

                        1 Reply Last reply Reply Quote 0
                        • J
                          Johnster last edited by

                          THANKS!!! Very much appreciated!

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

                            @Johnster Any thing else just ask

                            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! 😊

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

                            Online Users

                            A
                            H
                            A
                            S
                            M

                            14
                            Online

                            146.7k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors