fxDreema

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

    pending order based on candle + ATR

    Questions & Answers
    2
    11
    687
    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.
    • D
      drankman last edited by drankman

      Hello guys,

      I have a question on how to create a pending order to open at a price based on candle + additional ATR. (for instance: lets say 2 ATR)

      Screenshot below only to open price at candle high:
      0_1652800187464_c47813f3-50c3-4c5d-9a1a-554249c44972-image.png

      The question is how to add the ATR, lets say 2 ATR or so..

      Thanks guys in advance as always!

      Cheers!

      jstap 1 Reply Last reply Reply Quote 0
      • jstap
        jstap @drankman last edited by

        @andrewfrank I am unsure but if you se what in in the last pose here https://fxdreema.com/forum/topic/12802/atr-pips/2 you can get ATR pips, you can then add this variable to the offset box.

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

        D 1 Reply Last reply Reply Quote 0
        • D
          drankman @jstap last edited by

          @jstap ok thanks man/woman!

          Do I need to put "+" or "-" in order to add/subtract?
          so something like "+ATR"

          jstap 1 Reply Last reply Reply Quote 0
          • jstap
            jstap @drankman last edited by

            @andrewfrankUse as is, the line ATRPX= (ATRPIPS*ATR_X); will take the ATRPIPS variable multiply it by ATR_X constant and put the result in the ATRPX variable, use this where you require the multiplied ATR.

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

            D 1 Reply Last reply Reply Quote 0
            • D
              drankman @jstap last edited by

              @jstap ok.
              so if I want to add additional pips based on ATR from the open price, is it to set like this in the price offset (see screenshot below)?

              0_1652961200763_449dda35-4b03-4d0a-a70e-8ddfb87f23d7-image.png

              jstap 1 Reply Last reply Reply Quote 0
              • jstap
                jstap @drankman last edited by

                @andrewfrank This will add the multiplied ATR pips to candle price but, you have to add like this

                +ATRPX pips

                "pips" will ensure this value is added as pips.

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

                D 1 Reply Last reply Reply Quote 0
                • D
                  drankman @jstap last edited by drankman

                  @jstap ok. did you mean like this in pict 1:

                  pict 1:
                  0_1653313932176_b63c9d32-41c4-41d6-84b2-7db22dfa5288-image.png

                  or did you mean to check the pips box, like pict 2 below?
                  pict 2:
                  0_1653313975823_40995414-4740-4d97-8de0-f2cad5efbaad-image.png

                  jstap 1 Reply Last reply Reply Quote 0
                  • jstap
                    jstap @drankman last edited by

                    @andrewfrank Picture 1 you don't need pips because it is already contained in the section, so picture 2 would be correct.

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

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      drankman @jstap last edited by drankman

                      @jstap ok. Thanks!
                      is it possible to do subtraction? I tried with "-" but I got the error message..

                      So basically what Id like to do is I want EA to open pending order price where SL is set at the highest candle and hence open pending order price is adjusted with the ATR.
                      Right now I can see how to open price at the highest/lowest candle, but not to where I can set the SL at the highest/lowest

                      so something like this below:
                      0_1653395006501_7e4a0f4e-ee11-40a8-b4e5-f0c2fe3a8d2e-image.png

                      So, thats why I was asking how to to minus/add ATR, if I set the open price at the highest/lowest candle

                      Thanks in advance guys!

                      jstap 1 Reply Last reply Reply Quote 0
                      • jstap
                        jstap @drankman last edited by

                        @andrewfrank In the adjust box put -ATRPX pips, in the offset box it already adjust's + or - depending on weather a buy or sell.

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

                        D 1 Reply Last reply Reply Quote 0
                        • D
                          drankman @jstap last edited by

                          @jstap
                          ok thank you!

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

                          Online Users

                          K

                          14
                          Online

                          146.8k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors