fxDreema

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

    Get Values of a Closed Trade

    Questions & Answers
    2
    2
    2387
    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.
    • B
      BlueMoon last edited by

      I am creating a EA where I need to create new "Pending Orders" based on a closed trade due to TP/SL.

      So my Trigger is going to be "on Trade" and I am going to use the "Close Trade" block and then connect the "Buy/Sell Pending" oder block to it.

      The details I enter in the "Pending Order" depends on the values in the "Close Trrade" How do I get the values from the trade that just closed so I can use them for create a "Pending Order"?

      I need the following value from the "Close Trade"
      The price at which it closed?
      If it was a Buy or Sell Order?
      What was the lot size?
      How many pips were made or lost?

      I get the

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by

        you can get these values using "Pink blocks" like "For each closed trade" and after them connect block "Modify variables" and save these values into variables ...

        0_1485962089382_upload-5b62d382-c20c-4c20-b20f-46b194f880d9

        Between trading and gambling is a very small gap, be careful.

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

        Online Users

        T
        P
        C
        S
        T
        I
        B
        A

        17
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors