fxDreema

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

    Emergency close positions in loss . will it work ?

    Questions & Answers
    2
    6
    171
    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.
    • Y
      yousef builder last edited by yousef builder

      Screenshot (616).png

      so as you can see i have a formula on 'on init' event that gets my account equity at the beginning and calculates 90% of it.
      Screenshot (617).png
      now for on tick event i have a condition where 90% of my equity is more than my current equity . so ihave a close positions

      my question is .. will this work ? cuase sometimes things appear normal but dont work the way we intend them to

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

        probably, account equity x 0.9 with no adjust will work (is the best way to get 90%)

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

        Y 1 Reply Last reply Reply Quote 0
        • Y
          yousef builder @jstap last edited by yousef builder

          @jstap
          yeah both would work . what you said though was less complicated
          but my real question was with on init event . is this the way it works ? also I have another question .
          you see some blocks need some other blocks before them in order to work

          for example "modify variable" needs "for each position" before it obviously to modify based on position properties . but what other blocks need blocks before them ?

          like I've seen for conditions there are if positions and no position . thats why I added a pass at first and then put my formula . would it work without the pass ? and what about others ? I haven't found much in the docs

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

            Add a shared link rather than pictures (so inside blocks can be seen). On init like that will fix the result of the calculation in the variable, then you can use on tick. Pink above modify will put anything from a pink loop into the variable, Single blocks don't work so a pass would be needed, you can avoid the pass if you already have blocks in the tab by connecting above or below, things like a comment block are not affected by another blocks output, and don't commit an output them selves, So the use of a block above or below depends on weather they can be affected or cause an effect with what they are connected to.

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

            Y 1 Reply Last reply Reply Quote 0
            • Y
              yousef builder @jstap last edited by

              @jstap thanks .. got it 🤍

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

                @yousef-builder 👍

                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

                E
                A
                P
                V
                T
                R
                M
                G
                H
                J

                26
                Online

                146.6k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors