fxDreema

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

    Account Starting Balance (lifetime)

    Questions & Answers
    2
    8
    224
    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.
    • S
      s00071609 last edited by

      How is it possible to get the lifetime starting balance for an account, if anyone can help would be great. I need to create a block that can pull the initial balance for an account - its because i use prop accounts so initial balances will change often.

      If starting balance cannot be created via exisiting block or custom functions. Then is it possible to get PL so far from which starting BL can be calculated?

      I understand that balance can be saved as variable but I am looking to create a custom block or any other idea that can automatically do this.

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

        Don't think you can on fx, but on init you can check if a global variable exists, if not populate with balance, you would need to delete every time account changes, but that is just f3 to delete

        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
        • S
          s00071609 last edited by

          I have already got global var balance. It works very well. I wanted to see if initial balance can be derived from block. If i forget to change the BL in global var, its a problem - and i have done this. But such a simple thing missing from fxdreema is unbelievabl Would there be any custom block that we can create to get that value?? anything should be possible with custom blocks dont you think, just that I dont know how

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

            I don't know how to create, but is likely possible with creating a custom block. If you use MagicStart while creating then a new variable will be created using your bots magic number

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

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

              @jstap said in Account Starting Balance (lifetime):

              MagicStart

              I never heard of MagicStart, could you please clarify what it means?

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

                magic start is a MT function, it is the magic number used in an EA, on FX it can be called using MagicStart, in this link you will see how to use in for terminal variables: https://fxdreema.com/shared/gDKtX9Xxe

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

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

                  @jstap Ok thanks for this. So, it is supposed to save the current balance at start then keep it that way - which means that it needs to be loaded to an account that hasn't been traded. Am I right about it?

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

                    No, it is just the magic number, so if added to a new account, you would either need to change the magic number in the EA inputs, or delete the variable. But thinking about this you could set to work on account number, or both. I have added a new link, where I have moved all to on init (where it should have been before), you will see the 3 options on how to do this: https://fxdreema.com/shared/N5SCuW2lb

                    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

                    T
                    B
                    A
                    P
                    A
                    A
                    X

                    16
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors