fxDreema

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

    Urgent: ATR Stop Loss values wrong

    Questions & Answers
    5
    12
    575
    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.
    • A
      Alfie last edited by Alfie

      Urgently need help with this one its my last step before my EA being completed

      Heres the problem

      In this real example the ATR value = 0.00228

      1.27712 (Candle High) + 0.00228 (ATR value) should = 1.27940

      But as you can see here in this image
      Screenshot (90).png
      My stop loss is 8 points below what it should be mathematically.

      This is my current settings Screenshot (93).png

      S A 2 Replies Last reply Reply Quote 0
      • l'andorrà
        l'andorrà last edited by

        Are you completely sure that formula is correct?

        (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
        • S
          sktsec @Alfie last edited by

          @Alfie
          Your manual calculation was based on actual price.

          Your formula price was based on candle price.

          The 8-points is apparently bid-ask spread.

          Check if the candle price is bid/ask/buy/sell price

          1 Reply Last reply Reply Quote 0
          • S
            sktsec last edited by

            @Alfie
            The candle price is sell price (as checked in MT5).

            That is why you got your expected price in sell order but not in buy order.

            A 1 Reply Last reply Reply Quote 0
            • A
              Alfie @sktsec last edited by

              @sktsec Oh ok thanks, and how do I change that? if you need a shared link let me know

              1 Reply Last reply Reply Quote 0
              • A
                ambrogio @Alfie last edited by

                @Alfie

                This is my current settings Screenshot (93).png

                i think the difference is because the block calculate for stop loss the high (or low) value of candle ID 1 while the adjust field add (or subtract) the exact value of ATR in the same moment as the order is opened (so ATR value on candle ID0)

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

                  That makes sense, I will often use ID1 just so current candle doesn't affect values.

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

                  A 1 Reply Last reply Reply Quote 1
                  • A
                    ambrogio @jstap last edited by

                    @jstap Yes me too. But i want ask to you, regard that adjust field, can we choose the candle ID? I mean inside this NULL,0,14,0
                    (my coding knowledge is less than zero)😊

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

                      The 0 on the end is the candle ID (is called offset, a lot of code has it) set it to whatever candle you want the range to start from. The 0 at the start is the timeframe, 0=current, on MT4 you can use a int number, MT5 you need to use code like PERIOD_CURRENT

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

                      A A 2 Replies Last reply Reply Quote 1
                      • A
                        Alfie @jstap last edited by

                        @jstap Changed the number at the end to 1 and now the EA is fully working with the correct stops, thanks again very appreciated

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

                          You are welcome

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

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

                            @jstap said in Urgent: ATR Stop Loss values wrong:

                            The 0 on the end is the candle ID (is called offset, a lot of code has it) set it to whatever candle you want the range to start from. The 0 at the start is the timeframe, 0=current, on MT4 you can use a int number, MT5 you need to use code like PERIOD_CURRENT

                            well! thank you for explanation

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

                            Online Users

                            M
                            M

                            10
                            Online

                            146.7k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors