fxDreema

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

    How to locate and mark the oldest or most losable open trade as a variabel value?

    Questions & Answers
    2
    4
    104
    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.
    • M
      MK-Capital last edited by

      Hi,

      I am working on an Expert where I have multiple positions opened at a given time.

      I want to mark the oldest and/or the most losable trade as a variable value, so I can use this marker to write new rules for the expert advisor. For example to check (realized)profits since the oldest open trade.

      Does anyone know if this is possible within FXDreema? Maybe it needs custom coding?

      Thanks in advance.

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

        You can use a 'for each trade' blok tree searching for those specific trades and then store their ticket numbers into variables. But I dont full y understand the part for profits. Do you mean you need to know the combined profit of all open trades? That's exactly the value of current floating.

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

        M 1 Reply Last reply Reply Quote 0
        • M
          MK-Capital @l'andorrà last edited by MK-Capital

          @l-andorrà Thanks for your reply.

          I'll explain what I want to program into my EA;

          • Check price of most losable trade (at any time of all open trades)
          • Check the realizied profits from all closed orders that have closed after the most losable trade OR oldest trade open
          • If realized profits - value of most losable trade => minimum profit target; than close most losable trade

          So I am targeting a single trade to close, instead of a bucket of trades.

          Hope this makes more sense what I want to achieve with this trade management rule.

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

            That is a more complex loob because we can never know when the most losable trade was closed. I guess ou will need custom code to do that because the only way I know to do it is via arrays storing the info of the ticket number for that specific trade. I'm afraid that goes beyond my capabilities, sorry.

            (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

            H
            H
            M
            S
            S

            11
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors