fxDreema

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

    Create a pending every new trade at fixed distance

    Questions & Answers
    4
    12
    1985
    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.
    • Meshii
      Meshii last edited by

      Hi guys, I tried everything but I can't do it.

      I have two trades open buy and sell, with 2 pending orders for each one with 1 pip distance.
      I want that every pending triggered (so each new trade) he creates a new pending with 1 pip distance.

      I tried for each trade, once per trade/order, also inside "on trade" But he updates pending only for buy or only for Sell

      TipsyWisdom jstap 2 Replies Last reply Reply Quote 0
      • TipsyWisdom
        TipsyWisdom @Meshii last edited by

        @meshii

        1 pip? both sides will get triggered every time due to spread alone.

        Meshii 1 Reply Last reply Reply Quote 0
        • Meshii
          Meshii @TipsyWisdom last edited by

          @tipsywisdom I have 0 spread with a lot of symbols, however no matter the distance, I wanted to make the system work

          bk7 1 Reply Last reply Reply Quote 0
          • bk7
            bk7 @Meshii last edited by

            @meshii

            if you dont share what you currently have, its hard to see the issue...

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

              Some examples

              https://fxdreema.com/shared/mbXKjR8bb
              https://fxdreema.com/shared/V2ZBfumhd

              bk7 1 Reply Last reply Reply Quote 0
              • TipsyWisdom
                TipsyWisdom last edited by

                0_1627428026263_7fb3c9ff-022f-4c50-9c62-e7aa72d3f05d-image.png

                Please also note allowable slippage that the EA you are creating allows for. 4 pips.

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

                  @tipsywisdom What value do you suggest, 2?

                  TipsyWisdom 1 Reply Last reply Reply Quote 0
                  • TipsyWisdom
                    TipsyWisdom @Meshii last edited by

                    @meshii

                    for slippage, i dont know. No broker is going to let you trade that cheap though and get away with it. Unfortuntaely as well, thats something youll never know how it affects the robot until you start trading it on demo. With that low of pips, you probably also have to worry about your latency, VPS would be suggested.

                    1 Reply Last reply Reply Quote 0
                    • bk7
                      bk7 @Meshii last edited by

                      @meshii

                      pending test 2

                      you would have to loop for the last open order, grab the price add and/or subtract 1 point and place the pending orders based on this calculation.

                      1 Reply Last reply Reply Quote 1
                      • jstap
                        jstap @Meshii last edited by jstap

                        @meshii As others have said, you may find that your broker wont allow a pending placed at such a small distance, check your journal for info on this, on the on trade tab you have purple blacks that act only on specific trade information, you also have a trail pending block so if you have to place a further distance away you can at least trail behind price.

                        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! 😊

                        Meshii 1 Reply Last reply Reply Quote 1
                        • Meshii
                          Meshii @jstap last edited by

                          @jstap

                          @tipsywisdom said in Create a pending every new trade at fixed distance:

                          @meshii

                          for slippage, i dont know. No broker is going to let you trade that cheap though and get away with it. Unfortuntaely as well, thats something youll never know how it affects the robot until you start trading it on demo. With that low of pips, you probably also have to worry about your latency, VPS would be suggested.

                          If I understand correctly what you wrote, the ea doesn't close the operations with 1 pip, the operations will be open all at the same time, however it will go on a vps near the broker, so no issues about latency.

                          @jstap said in Create a pending every new trade at fixed distance:

                          @meshii As others have said, you may find that your broker wont allow a pending placed at such a small distance, check your journal for info on this, on the on trade tab you have purple blacks that act only on specific trade information, you also have a trail pending block so if you have to place a further distance away you can at least trail behind price.

                          I have no problem about small distance, I have just a maximum number of pending.

                          @bk7 said in Create a pending every new trade at fixed distance:

                          @meshii

                          pending test 2

                          you would have to loop for the last open order, grab the price add and/or subtract 1 point and place the pending orders based on this calculation.

                          I'll try to work in this

                          bk7 1 Reply Last reply Reply Quote 0
                          • bk7
                            bk7 @Meshii last edited by

                            @meshii

                            @TipsyWisdom meant that brokers dont like to get that much orders within short period of time, so they slow your order execution by some seconds which gives you slippages on open and close (or lets say the brokers lp).

                            the solution should work, just check that the min distance of pending orders isnt bigger, otherwise you can open market orders if the price is matched...

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

                            Online Users

                            M
                            M
                            C

                            12
                            Online

                            146.7k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors