fxDreema

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

    close last trade with X money

    Questions & Answers
    3
    3
    155
    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

      Hi guys
      I need guidance

      Let's say I have 40 open trades and I want to sum the profit of the last 10 trades, if it reaches $10, I will close only the last 10 trades and store the profit in a variable.

      Thank you for the advice

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

        This will be quite difficult to achieve, but is it always a fixed number (10) or will this change? You could use groups and only place trades with that group number, then change the group for other trades. Use bucket of trades to get the combined value before closing everything in that group.

        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
        • F
          fang.ea last edited by

          Hi
          you can try this

          image.png

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

          Online Users

          J
          B
          M

          23
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors