fxDreema

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

    Trade manager places trades using incorrect symbol

    Questions & Answers
    3
    7
    1659
    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.
    • F
      Flip last edited by

      Hello,

      I have a major issue. I created a Trade Manager which includes buy/sell buttons. The tool seemed to work fine, until one of the users reported the following bug.

      -In MT4 A symbol is loaded (fe EURUSD);
      -The Trade manager is then loaded and you can place trades with the buttons on the screen;
      -Now a new symbol (fe GBPUSD) is dragged from the Market watch window in MT4 on to the previous chart, so EURUSD is replaced by GBPUSD;
      -All settings on the screen are still present, but if you now use the buttons from the Trade manager, it will place orders using the PREVIOUS symbol (in this example EURUSD).

      This means the Trade manager is not being refreshed for some reason. The only way to fix this is reload the template or the Trade manager.

      This tool is used by multiple people so it is a serious issue for me.

      Do you know what is causing this??

      Hope you can help.

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

        maybe, but I am not sure if this resolve your problem, because it can be something else, you can try:
        find with metaeditor in EA mql code this (it is on top of code, somewhere in onInit):

        0_1484069687954_upload-8de4c683-f956-4647-8480-3b5e908fd8ab

        and do this (give it into "comment" or just delete it):

        0_1484069734118_upload-1c1d87b2-c043-4cfd-b17d-f760fed551f8

        and recompile your project using metaeditor

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

        1 Reply Last reply Reply Quote 0
        • F
          Flip last edited by Flip

          Thank you for your help. I tried your suggestion, but it did not work. Here is the the project example, but only with the Buy button (with this you will also be able to replicate the issue). Maybe you know another solution?

          Just place a buy order with the button on any symbol;
          Then change symbol by dragging another one from Market watch on to the chart;
          Then place another buy order with the button.

          It should now have 2 buy orders for 2 different symbols.

          https://fxdreema.com/shared/htcVaXwG

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

            I see now, it is little complicated to do this, but try with blocks, do this:
            https://fxdreema.com/shared/KGQdJ0HKd

            ... make string variable where you use custom code function Symbol() - it return actual symbol name, place this variable into all blocks where is parameter Market (dont forget all touched blocks where is this parameter, it is important 😄 ... if you use also TP and is here this Market, place that variable into field! )
            0_1484076757850_upload-45892633-c882-4a9c-8420-ac4d84027940

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

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

              or if you will not do that variable, just add this function manually in code exactly on this place above unit reason:

              0_1484078265907_upload-f5f40de9-71d5-4d11-8b5a-1c997b67ef83

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

              1 Reply Last reply Reply Quote 0
              • F
                Flip last edited by

                Thank you for your help, this seems to work!

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

                  Well, I don't recommend using functions that I have made, because eventually I might change them and they will stop to work. When I do things, it happens that I always rethink the way I did them and I always change something here and there. So, use any of my functions on your own risk and be prepared for that EA to broke eventually 🙂

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

                  Online Users

                  X
                  J
                  A
                  N
                  S
                  E

                  23
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors