fxDreema

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

    Close the order with the largest loss?

    Questions & Answers
    4
    8
    346
    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.
    • K
      kingvu last edited by

      I want to close the order with the largest loss only if the total profit from profitable trades exceeds that loss. Is there a way to do this?

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

        You need a structure calculating that total profit right now and then compare it to each losing one. Both are loops with variables. Are you familiar with variables?

        (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
        • K
          kingvu last edited by

          I have no knowledge about variables. Could you please give me an example?

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

            That is not a trivial thing to do. Do you have any initial project to begin with?

            (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 @kingvu last edited by sktsec

              @kingvu
              For closing the most losable trade, try:
              capture_001_25052023_020321.jpg

              1 Reply Last reply Reply Quote 0
              • A
                alok @kingvu last edited by

                @kingvu 42dd49a2-3ab0-4db1-93d2-baf9b2a30517-image.png

                1 Reply Last reply Reply Quote 0
                • K
                  kingvu last edited by

                  I want to code an Expert Advisor (EA) based on the following rules:

                  • If there are no existing positions, open a buy order with a volume of 0.01 lots.
                  • If there is an existing position and the price decreases by 10 pips, open an additional buy order with a volume of 0.01 lots.
                  • If there is an existing position and the total account balance is positive by 5 pips, close all open positions.
                  • If there is an existing position and the total account balance is negative, compare the total profit of positive positions with the largest negative position. If the total profit of positive positions exceeds the largest negative position by 5 pips, close all positive positions and the largest negative position.

                  My project (I think it's incorrect, but I can't think of an alternative way) : https://fxdreema.com/shared/0kmNYGuFb

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

                    @kingvu Points 1 and 2 can be achieved this way:

                    https://fxdreema.com/shared/GlMSZAyE

                    The total close of trades you designed for point 3 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
                    • 1 / 1
                    • First post
                      Last post

                    Online Users

                    O
                    J
                    B

                    13
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors