fxDreema

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

    How to obtain (Ticket Number) of closed order?

    Questions & Answers
    2
    4
    477
    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.
    • OntradingX
      OntradingX last edited by

      I'm trying to get the (Ticket Number) of the last order that closed, but it's not giving it to me, instead it's giving me the (Deal), does anyone know why this is happening?
      I want to get the same number as the Ticket Number of the order that was opened after it was closed.
      In the project below I demonstrate how my unsuccessful attempts were.

      https://fxdreema.com/shared/N3aBl2BK

      Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
      Site: https://www.ontradingx.com.br
      Youtube: https://www.youtube.com/@ontradingx
      Boa sorte a todos nós!

      English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
      Website: https://www.ontradingx.com.br
      Youtube: https://www.youtube.com/@ontradingx
      Good luck to all of us!

      1 Reply Last reply Reply Quote 0
      • D
        diazoviedo last edited by

        The "ticket" refers to the unique identifier assigned to each trading operation in MetaTrader 5 (MT5). It is generated whenever a position is opened, modified, or closed. This unique identifier allows precise tracking of each operation and is used to reference specific operations in functions and queries.

        For example, when opening a new position, the returned "ticket" can be subsequently used to modify or close that specific position.

        OntradingX 1 Reply Last reply Reply Quote 0
        • D
          diazoviedo last edited by

          answer1.png

          1 Reply Last reply Reply Quote 0
          • OntradingX
            OntradingX @diazoviedo last edited by

            @diazoviedo
            Got it, but test it yourself.
            Open an order, and get the ticket, it will for example get the (ticket number) 00001111.
            Close this same order, and get the ticket, it will, for example, get the (deal) 00002222 or 00006789, it will not bring the (ticket number) 00001111.

            I don't understand why he simply exchanges obtaining the (ticket number) for the (deal).

            Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
            Site: https://www.ontradingx.com.br
            Youtube: https://www.youtube.com/@ontradingx
            Boa sorte a todos nós!

            English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
            Website: https://www.ontradingx.com.br
            Youtube: https://www.youtube.com/@ontradingx
            Good luck to all of us!

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

            Online Users

            A
            J
            D
            E

            28
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors