fxDreema

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

    ATR for Stop Loss

    Questions & Answers
    4
    19
    5020
    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.
    • T
      TR Scalp EA last edited by

      Hi everyone, I would like to set the Stop Loss of my operation in the following way: (Price when I opened the order) minus (ATR value at the time of opening the order x 2). Made this calculation and found the value, I would like it to be set as a stop loss in my buy now button, but something is not working, can anyone explain what and give me a hand ??3_1589038541196_fxdreema.PNG 2_1589038541195_buy.PNG 1_1589038541194_atr2.PNG 0_1589038541192_atr.PNG this is the link https://fxdreema.com/shared/jthcJNmpc

      1 Reply Last reply Reply Quote 0
      • T
        TR Scalp EA last edited by

        0_1589038942893_error.PNG and also some time FX gives me this error

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

          You can save a lot of blocks and variables by doing this:

          0_1589040432485_01.png

          (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.

          tcanuto 2 Replies Last reply Reply Quote 0
          • tcanuto
            tcanuto @l'andorrà last edited by

            @l-andorrà In this way, the ATR period parameter is missing.

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

              @l-andorrà Please disregard my previous answer. It's OK.

              There is something wrong with this ATR. SL is a far cry from what was expected.

              https://fxdreema.com/shared/yNSm01EKc

              PG 0 19:19:51.568 Tester EURUSD,M1 (FxPro-MT5): every tick generating
              GP 0 19:19:51.568 Tester EURUSD,M1: testing of Experts\Advisors\Turtle Trading Original.ex5 from 2021.01.01 00:00 to 2021.03.08 00:00 started with inputs:
              JE 0 19:19:51.568 Tester Entrada1=20
              EH 0 19:19:51.568 Tester Saida1=10
              CS 0 19:19:51.568 Tester Stop_ATR=10
              GN 0 19:19:51.568 Tester Derrapagem=3
              FG 0 19:19:51.568 Tester MagicStart=1465
              JS 0 19:19:57.685 Turtle Trading Original (EURUSD,M1) 2021.01.04 00:00:01 Alert: You want to trade 1.634895203217474e-05 lot, but your broker's minimum is 0.01 lot. The trade/order will continue with 0.01 lot instead of 1.634895203217474e-05 lot. The same rule will be applied for next trades/orders with desired lot size lower than the minimum. You will not see this message again until you restart the program.
              OQ 0 19:19:57.685 Trade 2021.01.04 00:00:01 market buy 0.01 EURUSD sl: 0.00068 (1.22378 / 1.22400 / 1.22378)
              LO 0 19:19:57.685 Trades 2021.01.04 00:00:01 deal #2 buy 0.01 EURUSD at 1.22400 done (based on order #2)
              NQ 0 19:19:57.685 Trade 2021.01.04 00:00:01 deal performed [#2 buy 0.01 EURUSD at 1.22400]
              OD 0 19:19:57.685 Trade 2021.01.04 00:00:01 order performed buy 0.01 at 1.22400 [#2 buy 0.01 EURUSD at 1.22400]

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

                @tcanuto Are you sure your variable 'Stop_ART' is providing an integer number result? Otherwise it will not work.

                (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.

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

                  @l-andorrà Yes. It's like integer.

                  0_1615407997101_2021-03-10.png

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

                    @tcanuto How is your variable '(Multiplo_ART)' calculated?

                    (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.

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

                      @l-andorrà Yes. It is calculated.

                      P 1 Reply Last reply Reply Quote 0
                      • P
                        paragorundu @tcanuto last edited by paragorundu

                        @tcanuto hi there,

                        Try this:

                        1. Create a 'double' type variable myATR
                        2. Create an 'int' type constant Multiplo_ATR
                        3. Assign ATR value to variable myATR (Modify Variables block)
                        4. Convert ATR value to pips: write "*(0.1/Point())" in adjust field without quotes.
                        5. In 'Buy now' block, select 'Fixed pips' for Stop-Loss mode
                        6. Write "myATR*Multiplo_ATR" in pips field without quotes.

                        That should do the work!

                        0_1615538752154_tcanuto_ATR_SL.jpg

                        notify: @l-andorrà

                        tcanuto 1 Reply Last reply Reply Quote 0
                        • tcanuto
                          tcanuto @paragorundu last edited by

                          @paragorundu What I need is simply the value of the ATR for distance from the opening price of a position. Will this formula do that?

                          @l-andorrà did you understand?

                          l'andorrà P 2 Replies Last reply Reply Quote 0
                          • l'andorrà
                            l'andorrà @tcanuto last edited by

                            @tcanuto I agree woth paragorundu. I recommend you to use his system.

                            (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
                            • P
                              paragorundu @tcanuto last edited by paragorundu

                              @tcanuto this formula converts ATR value to a format which can be used as pips. So you can set Stop Loss or Take Profit regarding to ATR value (pips) as I advice. That's what I understand from your request.

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

                                Thanks @paragorundu and @l-andorrà for the info.

                                There was a problem with the result. The ATR value is 711, so it should be 711 * 2 = 1422 pips away, but the SL value came out with 4000. See the image below:

                                Project: https://fxdreema.com/shared/HWHm5SOCd

                                0_1615837799469_2021-03-15.png

                                Project: https://fxdreema.com/shared/HWHm5SOCd

                                0_1615838226274_2021-03-15 (1).png

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

                                  Well, I found out that the variable name was wrong. Adjusted. But the SL was too far away but it seems that the result is 10x more. I will try to multiply by 0.01 in EURUSD, because the FxPro is 5 digits.

                                  1 Reply Last reply Reply Quote 0
                                  • tcanuto
                                    tcanuto @tcanuto last edited by tcanuto

                                    Well, I found out that the variable name was wrong. Adjusted. But the SL was too far away but it seems that the result is 10x more. I will try to multiply by 0.01 in EURUSD, because the FxPro is 5 digits.
                                    @l-andorrà @paragorundu

                                    tcanuto 1 Reply Last reply Reply Quote 0
                                    • tcanuto
                                      tcanuto @tcanuto last edited by tcanuto

                                      Now it worked! Thanks for the help of all of you @l-andorrà @paragorundu

                                      0_1615839100788_2021-03-15 (2).png

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

                                        @tcanuto happy to hear that 🙂 Great!

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

                                          @tcanuto You're welcome.

                                          (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
                                          R
                                          G
                                          T
                                          G
                                          Y
                                          C
                                          S
                                          S
                                          S
                                          A

                                          20
                                          Online

                                          146.7k
                                          Users

                                          22.4k
                                          Topics

                                          122.6k
                                          Posts

                                          Powered by NodeBB Forums | Contributors