fxDreema

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

    Trade manually and by robot at the same time

    Questions & Answers
    3
    4
    264
    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
      melnsee last edited by

      As I may manually create some orders, I'm curious about how we can ensure that the robot recognizes the presence of these orders.

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

        What do you mean?

        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
        • Monaco
          Monaco Banned @melnsee last edited by

          @melnsee said in Trade manually and by robot at the same time:

          As I may manually create some orders, I'm curious about how we can ensure that the robot recognizes the presence of these orders.

          Excellent question! In MQL4, each order in MetaTrader has a unique identifier, known as an Order ID, which is automatically assigned when an order is opened. This ID is crucial for an EA to recognize and manage its own orders, especially in an environment where orders can also be placed manually.

          To ensure that the EA specifically recognizes orders that it has generated, a common practice is to use the OrderComment() field to assign a custom tag or string to each order that the EA opens. For example, you could use "EA_BUYS" for buy orders and "EA_SELLS" for sell orders that your EA places. This way, when your EA reviews open orders, he can filter them by this specific comment and act only on the orders he himself has created.
          And here example Screenshot_55.png

          Monaco 1 Reply Last reply Reply Quote 0
          • Monaco
            Monaco Banned @Monaco last edited by

            @realjoker said in Trade manually and by robot at the same time:

            @melnsee said in Trade manually and by robot at the same time:

            As I may manually create some orders, I'm curious about how we can ensure that the robot recognizes the presence of these orders.

            Excellent question! In MQL4, each order in MetaTrader has a unique identifier, known as an Order ID, which is automatically assigned when an order is opened. This ID is crucial for an EA to recognize and manage its own orders, especially in an environment where orders can also be placed manually.

            To ensure that the EA specifically recognizes orders that it has generated, a common practice is to use the OrderComment() field to assign a custom tag or string to each order that the EA opens. For example, you could use "EA_BUYS" for buy orders and "EA_SELLS" for sell orders that your EA places. This way, when your EA reviews open orders, he can filter them by this specific comment and act only on the orders he himself has created.
            And here example Screenshot_55.png

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

            Online Users

            N
            S
            T
            A
            Y

            34
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors