fxDreema

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

    Buy or Sell side opposite pending order repeat issue?

    Questions & Answers
    3
    9
    2431
    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.
    • T
      Tradeberg last edited by Tradeberg

      Hello.

      If my specific condition if generated I'd like to buy or sell now and same time opposite pending buy or sell. This is easy, EA works great and repeat orders always when it has to be, BUT there is one issue where I need your help.
      If I was Buy and there is Sell pending order what trigged then I'd like to put again Buy pending order, but first time it works great but next time when condition is correct it just don't put Buy pending after Sell is trigged. It will only when I don't use once per bar/trade etc, But then it mess up made lot of trades up on each other. Once per trade just don't work out however I try.!
      It should be open olny one trade if I use once per bar block, but it open multiple trades, how can fix that?

      First orders are correct
      https://imgur.com/NjMGm0J

      Second time just don't put buy pending order after sell pending order trigged
      https://imgur.com/NEVQH10

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

        Could you share the project from the Projects menu (upper left).
        Also, could you explain a bit more of the logic?

        • When new orders are created?
        • What should happen when a trade is opened?
        • Do the orders have expiration timer?

        And finally, you can paste pictures directly to this forum, just press ctrl+v 😉

        Need small help? Tag me in your post
        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

        O 1 Reply Last reply Reply Quote 0
        • O
          oneceo @roar last edited by

          @roar Hi I'm trying to create something like that but I don't seem to get how it would work. The condition for my EA is simple. Example is; everytime eur/usd gets to 1.2345, i want an automatic sell stop at 1.2045 and put it on a loop that repeats this condition everytime the market gets to 1.2345

          Any help would be appreciated

          roar 1 Reply Last reply Reply Quote 0
          • roar
            roar @oneceo last edited by roar

            @oneceo This can be done, but there is a problem - what if the price touches the level 100 times in one minute, for example? Do you want 100 new orders then?
            If you want only 1 order at a time, when does this order expire if price never reaches it?

            Need small help? Tag me in your post
            Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

            O 1 Reply Last reply Reply Quote 0
            • O
              oneceo @roar last edited by

              @roar yes I'm okay with 100 orders running at thesame time and the pending order should not expire till i manually close it

              roar 1 Reply Last reply Reply Quote 0
              • roar
                roar @oneceo last edited by

                @oneceo

                Sooooo.. Like this:
                https://fxdreema.com/shared/0k4Sas6xd
                0_1563612807973_20a04601-6a94-42c7-ad4a-f8fec93357b5-image.png

                It's a money burning machine. You will need more detailed system

                Need small help? Tag me in your post
                Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                O 1 Reply Last reply Reply Quote 0
                • O
                  oneceo @roar last edited by

                  @roar thank you for the help.....

                  By a more detailed plan, did you mean i should have more conditions in place ?

                  roar 1 Reply Last reply Reply Quote 0
                  • roar
                    roar @oneceo last edited by

                    @oneceo Just go ahead and backtest this. You will see that it is not very good, needs improvement

                    Need small help? Tag me in your post
                    Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                    1 Reply Last reply Reply Quote 0
                    • T
                      Tradeberg last edited by

                      Oh, wow. Thank you all for answers, but I figured out and get results what I want 🙂 Problem was simple as always, signal order should be ON TRADE box not TICK box.

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

                      Online Users

                      D
                      V
                      O

                      13
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors