fxDreema

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

    Problem Implementing Lot Size Reduction After Closing Oldest Trade

    Questions & Answers
    3
    3
    116
    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.
    • saeedkey
      saeedkey last edited by

      Assume that I have four open trades.
      If the oldest trade has been open for, for example, 100 hours, I want to close that trade and reduce the lot size of the remaining trades by half.

      At the moment, I am able to close the oldest trade in my code, but I encounter problems when trying to reduce the volume of the remaining trades, and I cannot correctly implement the desired outcome.

      Example:

      Before reaching 100 hours:

      Trade1 = 0.01

      Trade2 = 0.02

      Trade3 = 0.04

      Trade4 = 0.08

      After the oldest trade (Trade1) reaches 100 hours:

      Trade1 = Closed

      Trade2 = 0.01

      Trade3 = 0.02

      Trade4 = 0.04

      Thank you in advance for your time and support.

      Link: https://fxdreema.com/shared/msTqK4a7d

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

        I have never done this, but the close partially needs to go under a for each trade loop block.

        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
        • l'andorrà
          l'andorrà @saeedkey last edited by

          @saeedkey You can try this on a completely separate structure:

          https://fxdreema.com/shared/Lw5cHjuee

          (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

          D
          E
          M
          H
          C
          I
          I
          E

          21
          Online

          146.6k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors