fxDreema

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

    EA problem with closing profitable trades after certain period of time

    Questions & Answers
    3
    11
    1108
    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.
    • M
      Miano last edited by

      Hello. My EA has a problem when it comes to closing profitable trades. I would like it to open BUY and SELL orders at the same time(which is currently running okay) and check profitable trades(after ever one minute) and close them but should not close trades in loss until they earn some profit.
      The EA(https://fxdreema.com/shared/bXiayy24e) only opens buy and sell orders but doesn't close any.
      Thank you in advance

      S 1 Reply Last reply Reply Quote 0
      • S
        seb 0 @Miano last edited by

        @miano
        Hi, this way then
        https://fxdreema.com/shared/HP3WZaOzd
        It's a much risky strat on the long term

        M 1 Reply Last reply Reply Quote 0
        • M
          Miano last edited by

          How do i make it reorder a buy or a sell if the previously closed trade was a profit?

          S 1 Reply Last reply Reply Quote 0
          • S
            seb 0 @Miano last edited by

            @miano
            Sorry it was this link :
            https://fxdreema.com/shared/uYgRfsrH

            M 1 Reply Last reply Reply Quote 0
            • M
              Miano @seb 0 last edited by

              @seb-0
              thank you. the strategy works for some synthetic binary markets. please help with the reply above. the EA you've shared is working; i require the last bit for it to be complete

              S 1 Reply Last reply Reply Quote 0
              • S
                seb 0 @Miano last edited by

                @miano
                If you want to reopen an order if the previous one was a profit, put "For Each closed position" -> "condition: profit > 0" -> "buy now"

                1 Reply Last reply Reply Quote 0
                • M
                  Miano @seb 0 last edited by

                  @seb-0
                  it still does not reopen a trade after making profits.
                  0_1609014923004_Screenshot (75)_LI.jpg

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    seb 0 @Miano last edited by

                    @miano
                    https://fxdreema.com/shared/nNOQ08src
                    Like this ?

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      Miano @seb 0 last edited by

                      @seb-0
                      the previous version https://fxdreema.com/shared/uYgRfsrH
                      but i would like it to make a new order once a profitable order has been closed while still running the order that has a loss e.g if a buy is in profit and closes a new buy order should be made but the sell in loss should remain open until it makes a profit and closes. after that a new sell order can open

                      the previous version only opens new orders after both sell and buy have made a profit and have been closed

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

                        Hi @Miano . For that you need to separate 2 sets of blocks. One for buy, and one for sell. Block for open trade also split in 2 sets. Goodluck.

                        1 Reply Last reply Reply Quote 1
                        • M
                          Miano last edited by

                          Thank you @seb-0 and @biztet both of the ideas combined work. i really appreciate

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

                          Online Users

                          A
                          T
                          M
                          E
                          C
                          B

                          18
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors