fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. erosdegrande
    3. Posts
    E
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by erosdegrande

    • Close only 5 trade on 10

      I need to create this:

      1. Check how many orders exists - If none, there is nothing else to do, but let's say we have 10 orders, so we continue to step 2.
      2. Sort - We know we have 10 orders, and we know their parameters - open time, lot size, trading type and many more. We want to sort our orders by age.
      3. Close 5 trades - we sorted out trades by age, so starting from the oldest one we close the first 5 that we have one after another.
      posted in Questions & Answers
      E
      erosdegrande
    • 1 / 1