fxDreema

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

    Close (partially) block with Buys and Sells managed separately?

    Questions & Answers
    4
    11
    886
    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.
    • B
      BBMess last edited by

      I'm struggling to get this EA to Close Partials correctly when there's both Buys and Sells on the chart. I have an input for TP1, TP2 and TP3 and in the visual tester, I have witnessed it taking Partials but there is still something that causes a trade in the opposite direction to be closed. For Example;
      If there's 3 Buys and 2 Sells, The Buys will eventually come into the profit target of 4 Pips collectively, then it should only Close Partials of the Buy Trades. Same goes with the Sells. If the Close Partials input is set to 0, TP1 will close the proper trades. Can you guys see something that I can't. Below is a copy of the Project. Let me know what you think and thanks in advance.

      It shouldn't be having those massive spikes down. That tells me it's taking losses when it's not supposed to.
      8f033868-98df-45f9-ae06-7f1d7535f096-image.png

      https://fxdreema.com/shared/nWlLg1l0b

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

        there is nothing obviously wrong, disconnect some blocks and test until you find which one is preventing from working as needed.

        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
        • C
          CAVINCENT last edited by CAVINCENT

          @BBMESS nice to meet you, you have a strategy like my grid strategy, I got 12 sections of continue buy & sell, while you have 11 sections great job you must spend years perfecting it?
          I checked out your STOPLOSS FORMULA may cause you closed trade because of low ballance left, try switchoff the entire STOPLOSS FORMULA and replaced with normal one or none just like mine https://fxdreema.com/forum/topic/20911/condition-formula-not-working

          1 Reply Last reply Reply Quote 0
          • B
            BBMess last edited by

            The Stop Loss formula works correctly @CAVINCENT but I wanted to check and see if my eyes weren’t seeing something correctly. I use this same Close Partials module in a different EA and it functions flawlessly BUT there’s only Buys or Sells on the chart at 1 time. So, I was a bit puzzled why managing them both separately all at the same time would be any different.

            And I will do that @jstap. Thanks for looking this over.

            1 Reply Last reply Reply Quote 0
            • B
              BBMess last edited by

              I've managed to collect enough info from cross posts to determine that my "Close (partials) Module" and my "Break Even Module" are conflicting. Why? No clue. But the way this is triggered is if TP1 is hit, it modifies a variable to True that allows a condition to be used like a gate. The Break Even module can then pass as a condition and if the Equity of the Bucket of Positions (Blue for Buys, Red for Sells) (Also stored the values separately in their own variable) for Group #1 Buys <= 'Account Balance', Closes Group #1 Buy Positions only. BUT! When I select the whole Break Even module, turn those blocks off, Close (partials) will work normally. When I turn all those blocks back On, Close (partials) doesn't function correctly at all. It closes partials back to back. The history shows it being closed in 2 parts. But, I have a Counter (pass once) block in condition tree only allowing it to pass once. So, I am stumped. I've been running this EA from April 4th to Current and this EA is profitable with Close (partials) set to 0. I would like to see these modules function together for testing purposes. And I'm sure this would be a very powerful addition to the Forum if solved correctly.

              Social Trader Tools link for proof:
              https://my.socialtradertools.com/view/2fsKDqgoqlDLohFR

              image.png

              image.png

              image.png

              1 Reply Last reply Reply Quote 0
              • C
                CAVINCENT last edited by

                Screenshot 2024-08-18 035709.png @BBMess I have finished building my bot now have some spare time to help u, why buy position still not closed then suddenly sell at your Tp1? grid strategy rules is all buys closed then can only open new buy&sell. Maybe you try implementing my strategy link I shared earlier. I used no position blocks before it didnt work try swapping with no trade nearby & once per bar to prevent sudden open trades.

                1 Reply Last reply Reply Quote 0
                • C
                  CAVINCENT last edited by

                  try throw away all indicator it is misleading, when you fully trust your robot why need indicators & when u trust indicators why need robot when signals come just press buy/sell

                  1 Reply Last reply Reply Quote 0
                  • B
                    BBMess last edited by

                    I’m sorry @CAVINCENT, my EA doesn’t use any indicators at all. It’s not a grid strategy either. It’s time based and everything functions flawlessly except for closing trades after the Close (partials) block executes. My concept is quite sound but I believe this is a programming bug of some sort. When only Buys are on the chart, everything is fine. When both buys and sells are on the chart, my break even module doesn’t work.

                    1 Reply Last reply Reply Quote 0
                    • C
                      CAVINCENT last edited by

                      @BBMess can you tell me in details how is your strategy works?

                      1 Reply Last reply Reply Quote 0
                      • A
                        a09828 @BBMess last edited by

                        @BBMess привет. Ты пробовал расположить блоки в другом порядке? 2024-10-25 1-54-19.png

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

                          There is a logical progression to pink blocks:
                          1 = for each - accesses the relevent trade information
                          2 = check type - ensures the trade is of correct type
                          3 = once per order - ensures the next action can only happen once
                          4 = close partially - commits the required action of the pink blocks

                          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 1
                          • 1 / 1
                          • First post
                            Last post

                          Online Users

                          J
                          A
                          Z
                          T

                          12
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors