fxDreema

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

    OrderSend buy in custom block mql4 doesn't work

    Bug Reports
    3
    3
    256
    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.
    • S
      serbanc last edited by

      HI all,
      I don't unerstand why the following command inserted into a custom block mql4:

      OrderSend(Symbol(), OP_SELL, lots, Bid, 0, sl, tp, "Sell Order" ,group , 0, Red) ;

      works correctly, while the following (buy) it doesn't work:

      OrderSend(Symbol(), OP_BUY, lots, Ask, 0, sl, tp, "Buy Order", group, 0, Blue);

      Thanks for everyone will answer.

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

        I am not sure why, I have never used code to generate an order, but it looks like it should, try going to the main page and asking the admin

        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
        • P
          pacificnet.lk last edited by

          try changing "group" to "magic" and remove the space between the commas.
          you may need to pass the output to a variable and print the errors from it as well. for that, you may have to read the mql4/5 documentation

          please post your project link here if need more help.

          Any reason to do this the hard way in FXdreema? then we can find an alternate way to do it.

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

          Online Users

          A
          F
          L
          S
          N
          S
          E
          H
          E
          S
          A

          24
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors