fxDreema

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

    How to have trade(s) Closed in a pre-specified percent(%) of balance

    Questions & Answers
    4
    13
    706
    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
      Taho_Trader last edited by Taho_Trader

      @fxDreema
      @l-andorrà

      Dear traders\programers
      Hi,
      I hope you're all doing great.
      I need to have an EA which closes trade(s) on a prespecified percent (%) of balance, either loss or profit.
      is here any one who could guide me through this?

      here is my approach:
      [https://fxdreema.com/shared/oSgtd6pad]

      Thank you all in advance

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

        I see this is the second thread you used to ask for this. Please don't duplicate threads and focus on one only. The problem is that you used a Constant on the 'Adjust' tab. The only way for that to work is selecting a string type constant instead a double or int type. Then you can type the fraction number you need.

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

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

          @l-andorrà
          Thank you for your reply
          Yes, You're right
          Sure, I will.

          I tried exactly as you suggested in the other thread by Ms. Elham, but it didn't work out.
          would you please tell me why that is?

          c37c1c18-5f15-4b2a-9072-f3841d8e1f44-image.png

          Thanks in advance

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

            Oh man! I made a mistake!! 😞 There is a missing symbol there. You should use '*0.01' instead of '0.01' as I typed. Sorry. My mistake.

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

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

              @l-andorrà
              No Problem Bro!

              In the box, should I type like '*0.01' or just *0.01 ?

              1 Reply Last reply Reply Quote 0
              • T
                Taho_Trader last edited by Taho_Trader

                @l-andorrà
                My final purpose to build this EA as below:

                check if Equity >= (X% of Balance + Balance) then close the trade.
                check if Equity <= (X% of Balance - Balance) then close the trade.

                Please help me with this
                Thank you so much

                1 Reply Last reply Reply Quote 0
                • T
                  Taho_Trader last edited by Taho_Trader

                  Here is my newest approach
                  Please help me figure out why the EA doesn't close the trade in profit/Loss?
                  Where might I have entered any thing wrong?

                  https://fxdreema.com/shared/94lRGgEcd

                  image.png

                  I appreciate any kind of help

                  I 1 Reply Last reply Reply Quote 0
                  • T
                    Taho_Trader @l'andorrà last edited by

                    Dear @l-andorrà
                    I tested this, but I don't know why it doesn't close the trade as it should do!
                    any suggestion?

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

                      The problem is that those variables 'final equity profit/loss' need to be a decimal number (0.01, 0.02, etc). And then they should also include the '*' as I explained before. That is not possible to do with formula blocks. I'm afraid you will need some custom code to get it. Sadly I'm not a programmer so I cannot help here, 😞

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

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

                        @l-andorrà
                        Thank you for your time
                        I've done it!

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

                          @Taho_Trader Seems to me your project works as it is. Only put >= instead of ==

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

                            @Taho_Trader 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
                            • I
                              Ipod @Taho_Trader last edited by

                              @Taho_Trader I think the below method is simpler / easier.

                              8dc82669-2ca5-4da4-a6d2-3c59cef3168f-image.png

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

                              Online Users

                              D
                              E
                              J
                              T
                              J

                              24
                              Online

                              146.7k
                              Users

                              22.4k
                              Topics

                              122.6k
                              Posts

                              Powered by NodeBB Forums | Contributors