fxDreema

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

    Close Last and Newest trade

    Questions & Answers
    2
    8
    196
    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.
    • P
      pipsondeck last edited by pipsondeck

      Hello guys,

      Ive been working around this project but i seem not to get it.

      How can I make a condition that the total Buys (unrealized) profit is 4$ > for the sell trades and then thats the time it will close?

      now it should first check / delete the oldest against the newest trades

      https://fxdreema.com/shared/GnadWI6Jd

      credits: This project is made by roar and im working around with it.

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

        Add to what you have from a loop yellow, because it goes to this once the loop has finished, another loop that collects the running profit, then off yellow use condition to check if the variable profit is>$4 to another loop to deleting trades from the oldest.

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

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

          @jstap this is where i get confused on how i can I collect the running profit.

          I do not understand add a loop from yellow. Hope you can help.

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

            This should do it, add this into your bot: https://fxdreema.com/shared/oqT60bwOb

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

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

              @jstap thank you for your help.

              I was looking for something like this.

              there are 10 buy positions. the #1 + #2 + #3 buy has running loss of 5$
              there are 15 sell positions. the latest trades, lets say sell #12 + #13 + #14 + #15 has running profit of $9

              check total profit > 4$

              close those trades and ofcourse there will be some trades left which are negative trades.

              i tried editing and couldnt make it work.
              https://fxdreema.com/shared/7P9FCHVQc

              Thank you.

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

                It has no way of creating more than 1 position, this should create more than 1 and close when profit is above the price. this is only a test project, you will need to test and change until it's how you want: https://fxdreema.com/shared/ttZkTguNd

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

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

                  @jstap what do you mean by it has no way of creating more than 1 position?

                  can the sell profit be compensated and closes the buy position also if the profit is > $4?

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

                    Look at the link I sent this can add more than 1 position at a time, yours was limited to a single position at a time

                    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

                    D
                    E
                    N
                    N
                    F
                    M
                    A
                    L
                    O

                    31
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors