fxDreema

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

    Multiple Trades Closing At Different Times

    Questions & Answers
    3
    9
    1759
    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.
    • L
      Laneciar last edited by Laneciar

      I am still trying to figure out how to get it where 2 of my trades will close when it crosses the midline of a trendline while the other two will then create a trailing stop, for some reason it either creates massive amounts of trades or simply doesnt work, I will post a screen shot of kind what it looks like right now.

      alt text

      1 Reply Last reply Reply Quote 0
      • L
        Laneciar last edited by

        @laneciar https://imgur.com/YrFDkrQ there is the direct link if it is clearer to read.

        J 1 Reply Last reply Reply Quote 0
        • J
          johnle1024 @Laneciar last edited by

          @laneciar It’s set up wrong, the conditions are activating on every single tick, and every single tick the conditions are passing to buy or close trades or create trailing stops. Use the once per bar button before the buy, close, trailing etc.

          L 1 Reply Last reply Reply Quote 0
          • L
            Laneciar @johnle1024 last edited by

            @johnle1024 How are the conditions passing? If the price only crosses the midline once why would it do it over and over again?

            J 1 Reply Last reply Reply Quote 0
            • J
              johnle1024 @Laneciar last edited by

              @laneciar because it keeps trying to close trades and create trailing stops every single tick. probably is doing the same thing with your buys. See below:

              https://fxdreema.com/shared/vSfjtyu7

              L 2 Replies Last reply Reply Quote 0
              • L
                Laneciar @johnle1024 last edited by

                @johnle1024 Ahh thank you!! I see now

                1 Reply Last reply Reply Quote 0
                • L
                  Laneciar @johnle1024 last edited by

                  @johnle1024 I need the first buy trade to close when it crosses the midline buffer as in the picture i will post, I dont see an option to set it to trigger the take profit once it crosses? https://imgur.com/a/7SyKqnX

                  J fxDreema 2 Replies Last reply Reply Quote 0
                  • J
                    johnle1024 @Laneciar last edited by

                    @laneciar create a candle cross condition and attach to trade exit. Or insert the value of the trend line.

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

                      @laneciar Everything in "Buy now" block happens at the time when the trade is created. Except the expiration settings, because I wrote a system that would check the time on every tick outside this block. But SL and TP are just levels and they will be placed at certain level and that's all. To close the trade on indicator signals, then you need to do it outside this block - to detect the signal (with Condition for example) and then to close it (with "Close trades").

                      But when you use "Close trades", it's important to NOT allow this block to close any trade immediately after the trade is created. Many people make this error, because the conditions to close the buy are the same as the conditions to sell, and the conditions to close the sell are the same as the conditions to buy. A loop happens and the EA buys and sells non stop. Take a look at the third example here - https://fxdreema.com/examples - where I used two "Close trades", but because of the settings in the blocks no such deadly loop happens.

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

                      Online Users

                      C
                      S
                      P
                      T
                      I
                      B
                      A
                      H
                      E

                      19
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors