fxDreema

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

    One Take Profit by Period

    Questions & Answers
    2
    9
    821
    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.
    • F
      Fabio Rech last edited by

      Hello, I am triyng that my EA when hit a take profit don´t open a new trade on the same period, just in the new one, but i can´t do it work.

      ex. if a have a take profit of 1000 pips/day and i get on the day i would like that it stops and just return on the next day.

      Can you help me?

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

        I will make some block tomorrow, because many people were asking for this and I'm tired of making examples using multiple blocks

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

          Here is some example by the way, a little bit advanced because small MQL4 code is used, but this is in fact more flexible: https://fxdreema.com/shared/Mnphpsdve
          But I think that it will be best if I add some filter for the time directly in "Bucket of Closed Trades"

          1 Reply Last reply Reply Quote 0
          • F
            Fabio Rech last edited by

            Sorry, I didn´t understand your ideia...or you don´t understand me.
            First, i´m using Metadrader 5.
            Why draw a line in the chart?

            i will send my ideia to you analize if possible.
            The problem is that it opens just a Short trade by day. It´s ok if a take profit in the first trade, but if i´m stoped it don´t open a new trade.

            https://fxdreema.com/shared/DToieROoc

            1 Reply Last reply Reply Quote 0
            • F
              Fabio Rech last edited by

              Hello, Dreema. I think that i find the problem and i thing that could be a bug.
              When I use block "Check last closed type" to filter trades that have stoped it doesn´t work, even if the trades were stoped.
              It consider just as buy or sell position.

              I think that could be a bug. Can you check please? Thanks.

              1 Reply Last reply Reply Quote 0
              • F
                Fabio Rech last edited by

                In Time.
                It seems that the same problem occurs whit block "check how it was closed". It don´t recognize that the last trade was closed by Stop Loss.

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

                  Try to put "For each Closed Position" above that "check how it was closed" and set it's "Not more than... " parameter to 1 (so only the very last closed trade will be selected).

                  It's a long story, but here is some explanation for these pink blocks (for MT4, but it's similar with MT5): https://fxdreema.com/demo/mt4-loop-how-it-works

                  1 Reply Last reply Reply Quote 0
                  • F
                    Fabio Rech last edited by

                    Hello Dreema. I did what you recomend but it still doesn´t work.
                    It don´t recognize that the last trade was closed by stop loss. If a set on block "how it was closed" to "no matter how" it pass.
                    I really don´t know if I´m doing something wrong but I don´t think so.
                    Can you help me? Thanks

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

                      Fixed

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

                      Online Users

                      E
                      S
                      D
                      R
                      E
                      O
                      B
                      M
                      B
                      诸
                      A
                      J
                      H

                      22
                      Online

                      146.9k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors