fxDreema

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

    Pending order based on price moving a percentage of ATR after a previous condition is met

    Questions & Answers
    3
    18
    1559
    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
      mikev_303 last edited by

      Hello.

      I am using pending orders to set a buy or sell stop after a certain condition is met at any time when trading is open. I would like the order to position at the price point based on a percentage of the ATR. The pending order block has custom price not custom price fraction so the penidng order is placed at a price that is equal to the ATR and not the price amount based on the ATR.

      Does anyone have any suggestions to help with this? As so far I am struggling to solve it.

      Thanks very much.

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

        @mikev_303 Can you please share your project to take a look at it?

        (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
          mikev_303 @l'andorrà last edited by

          @l-andorrà Hello. Thanks for your help. Please see below.

          https://fxdreema.com/shared/a7c4JBToe

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

            @mikev_303 The logic is initially correct. What is the problem exactly?

            (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
              mikev_303 @l'andorrà last edited by

              @l-andorrà when the pending order is placed, the price level it is placed at is the actual ATR and not the price level the indicator was crossed over at plus or minus the ATR value.

              So if the ATR was 40 pips and price was 0.6958 then it should put a pending order at 6978 (0.5 the ATR value) instead it places a pending order at 0.0020

              The problem I see is the price function in the pending order is for custom price and not custom price fraction.

              Not sure how to solve it.

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

                @mikev_303 Ok. I see. Then wou will need to do that calculation in a previous block and store the result into a variable. This variable should then be embedded into the 'custom price' position of the blocks istead of its current setting.

                (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
                  mikev_303 @l'andorrà last edited by

                  @l-andorrà thanks very much. Looks like I need to learn something new. I haven't created a variable before, ill gove it a go and see what happens.

                  Hopefully it turns out ok. Thanks very much for your help.

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

                    @mikev_303 Try it and then come back for us to check it out. I'll be glad to review it. 🙂

                    (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
                      mikev_303 @l'andorrà last edited by

                      Hello @l-andorrà I've written some variables. It is not working out for me at the moment and i'm not sure what i'm doing wrong.

                      I've tried to create what i talked about above. I've posted what I have done below.

                      https://fxdreema.com/shared/NyfKha0Eb

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

                        @mikev_303 I see you are using a variable called 'Variable4' in block 12 but then it is not used anywhere else. Is this the whole project or just a part of it?

                        (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
                          mikev_303 @l'andorrà last edited by

                          @l-andorrà I have used 'Vatiable4' in blocks 10 and 15 at the start in the adjust part of the open at price section

                          Thanks.

                          https://fxdreema.com/shared/BNXI36y4c

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

                            @mikev_303 Ok. You need to add the '*' symbol before it. You should insert '*Variable4' with no blank space in the 'Adjust' box.

                            (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
                              mikev_303 @l'andorrà last edited by

                              @l-andorrà Thanks, did that, but it still not placing pending orders when I run it in simulation.

                              Any other suggestions?

                              https://fxdreema.com/shared/mcUfjTI6c

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

                                @mikev_303 ATR is not a price level

                                edit: oh you knew that

                                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
                                • roar
                                  roar last edited by

                                  Here https://fxdreema.com/shared/6qOHXk6Q

                                  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

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

                                    @roar Hi. Thanks verymuch for your help. It's amazing when you see what you weren't doing it suddenly seems so simple. Much appreciated.

                                    1 Reply Last reply Reply Quote 1
                                    • M
                                      mikev_303 last edited by

                                      @roar I've managed to get the code just about right. However, the sell pending order is placing the sell stop on the wrong side of the moving average line, in the code I have tried to subtract the ATR away from the price when price crosses over the moving average line. However, no matter what I've tried it always adds it on instead, in the same manner it does in the buy pending order when the price crossed about the moving average line.

                                      Not sure why it is adding the ATR onto price regardless of the code saying add or subtract.

                                      https://fxdreema.com/shared/G4yZcl5zd

                                      Thanks.

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

                                        @mikev_303 you have calculated the correct levels into buy and sell variables. Now you dont have to use ATR + adjust in the order block, just insert the level as custom price:
                                        0_1610882822120_44a76662-8bf2-471b-99a2-837ce0b046e5-image.png

                                        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
                                        • 1 / 1
                                        • First post
                                          Last post

                                        Online Users

                                        N
                                        F
                                        T
                                        E
                                        E
                                        S

                                        21
                                        Online

                                        146.7k
                                        Users

                                        22.4k
                                        Topics

                                        122.6k
                                        Posts

                                        Powered by NodeBB Forums | Contributors