fxDreema

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

    Origin of trade

    Questions & Answers
    2
    2
    513
    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
      MartinvE last edited by

      Hi fxDreema,
      You have made a block that is called: "check how it was closed"
      Is there also a possibillity to check how it was opened ??
      I made an EA and in the EA when the conditions are right the following happened:
      The EA puts one trade right away and set a number of pending orders.
      Now i want to take action only on the original first trade and not at the trades that were pending orders at first and become trades when the price moves.
      I hope you understand my question.
      Kind regards,
      Martin

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

        Well, it looks that when a pending order becomes a trade, there is no trace of that pending order anymore. I think that because of this: http://prntscr.com/8r1a3s - the same ticket number from the order is used for the trade.

        But even if such thing is possible, there will be searching for information in "how it was opened" every time. Of course, there is always a way to use some Variables and store any information in them, but I don't like using Variables when working with trades and orders, because when the EA is restarted they are all reset and the information is totally lost.

        I think that you can just use different Group number fot the trade itself, this will separate it from the other orders/trades. Or if you use "For each Trade" to select the oldest trade, which will probably be this one... well, only if this trade is 1, only if you don't have another similar groups of trades and orders.

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

        Online Users

        M
        A
        M
        W
        E
        G
        K
        E
        A

        16
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors