fxDreema

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

    How to create Opposite Pending Order with Open Price from Last Closed Trade?

    Questions & Answers
    pending order open price last closed
    3
    6
    2420
    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
      mktrading last edited by

      Hi,

      How to create opposite pending order with open price from each last closed trade on fxDreema MQL5 ?

      Because I want to create opposite Pending Order (eg. Buy) with same last open price for each closed trade (eg. Sell).

      Thanks.

      1 Reply Last reply Reply Quote 0
      • C
        Clubsport640 last edited by

        Not sure if this will work in practice but it might get you on the right track.

        Bucket of Closed Trades with only 1 for history. The use a formulae to set a variable for the close price.

        0_1589023770689_b7235654-6abd-45df-a5ae-d2cd488718da-image.png

        M 1 Reply Last reply Reply Quote 0
        • M
          mktrading @Clubsport640 last edited by

          @clubsport640 thanks for your help. yes it work. but it's create multiple pending order at once. I'm prefer to create opposite pending order with open price rather than closing price from last close trade.

          I have try to create pending order with No position nearby and No pending nearby filter. Pending order get last open price from varLastPrice variable. but the problems is pending order not create for every trade close and have incorrect last open price value.

          0_1589028985284_1.jpg

          0_1589029005378_2.jpg

          What's wrong ?
          I'm shared this project : https://fxdreema.com/shared/d6roIgJH

          1 Reply Last reply Reply Quote 0
          • l'andorrà
            l'andorrà last edited by

            Do you mean creating a pending order at the exact same moment the last open trade was closed? Probably your broker will stop you from doing it because of the current spread. I recommend you to wait for some time or shift it a few pips away.

            (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

            (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

            (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

            M 1 Reply Last reply Reply Quote 0
            • M
              mktrading @l'andorrà last edited by

              @l-andorrà yes that's right.
              0_1589051083204_3.jpg

              I have shift 500 pips away for each pending order to cover it's spread, but still have a problems. is it possible to create Opposite Pending Order by last open price value (exact moment) from each open trade was closed?

              Let's say. I was open buy at 1680.00, than it's closed at 1685.00 or 500 pips away from it's open price by Take Profit. and at moment my EA should create pending order Sell again at 1680, I think 500 pips or 1.000 pips is enough for now.

              So I want my EA create Opposite Pending Order at exact same moment for each the last open trade was closed and what's wrong with my script /project ? Thanks.

              1 Reply Last reply Reply Quote 0
              • l'andorrà
                l'andorrà last edited by

                No, you won't be able to create pending orders in those conditions. What you can do is:

                1. Open a trade immediately after the previous one was closed. So no pending needed.
                  Or
                2. Create a pending order at the exact same moment you opened the previous trade. Programming a pending order at 500 pips distance is not only possile but recommended. However you will need to program it much earlier.

                (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

                Online Users

                M
                2
                M
                M
                N
                B
                A
                B
                S
                E
                W
                M

                22
                Online

                146.6k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors