fxDreema

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

    Trade manager button ea problem

    Questions & Answers
    5
    11
    2021
    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.
    • Fabien S
      Fabien S last edited by

      Hey guys i wanted to create this trade manager ea that puts trades when pressing buy ( SL on 200 ema) however once i load the project, the ea doesnt work and reattaches itself all the time. Does anybody know where i have made an error? I appreciate every help. project https://fxdreema.com/shared/Yfq4NQgub

      1 Reply Last reply Reply Quote 0
      • T
        trader.philipps last edited by

        @Fabien-S If you try to compile your project in Meta Editor you'll see the message:
        'Sell' - undeclared identifier Trade Manager.mq4 3585 22

        If I take a look at the line 3585 it's like this:
        SkipObjects = (int)Sell;

        So you use Sell that is not declared somewhere. I will try to find where it comes from.

        I like to share my knowledge, but expect the others to contribute as well.

        1 Reply Last reply Reply Quote 0
        • T
          trader.philipps last edited by

          @Fabien-S Here we go ..

          Block 702

          0_1569287968087_b7b5e342-6413-4d43-94e4-9535e9b3390a-image.png

          You put Sell ther which is interprted as an integer variable. However it's not defined. Probably that field should be empty.

          Aditionally it looks like you missed one connection between Blocks 51 and 54, but that was not the issue why the EA unloaded.

          0_1569288056905_8cdea247-b397-4fa1-bd90-061a812399d2-image.png

          I like to share my knowledge, but expect the others to contribute as well.

          1 Reply Last reply Reply Quote 0
          • Fabien S
            Fabien S last edited by

            Thanks a lot!! @trader-philipps

            1 Reply Last reply Reply Quote 0
            • Fabien S
              Fabien S last edited by

              https://fxdreema.com/shared/Yfq4NQgub
              in the last version the button functionality of buy and sell doesnt seem to work, i think it has something to do with the 200 ema SL variable @trader-philipps could you help me out there aswell, i would really appreciate it!

              T O 2 Replies Last reply Reply Quote 0
              • T
                trader.philipps @Fabien S last edited by trader.philipps

                @fabien-s First of all check the labels as they seem to be inconsistent. On init you use sell and buy for instance, but later on Sell and Buy. Don't know if that matters, but I think so. Further I'd avoid blankspace in the labels. Mayne it doesn't matter, but better use underscore or camelCase instead.

                Once the buttons work again in general, you maybe need to check if your TP variable is valid. For instance if price is above 200 ema and you make a buy order, the TP value would be below open proce and that's not valid.

                Let me know when you have a newer version to check further.

                I like to share my knowledge, but expect the others to contribute as well.

                K 1 Reply Last reply Reply Quote 0
                • K
                  kelianmorr @trader.philipps last edited by kelianmorr

                  Nice. post

                  Fabien S 1 Reply Last reply Reply Quote 0
                  • Fabien S
                    Fabien S @kelianmorr last edited by

                    @trader-philipps you saved me a lot of time and helped me in this Project. I appreciate that Big thumbs up

                    T J 2 Replies Last reply Reply Quote 0
                    • T
                      trader.philipps @Fabien S last edited by

                      @fabien-s 4 eyes see more than 2. Sometimes I also seek for ages in my own projects before I find the issue.

                      I like to share my knowledge, but expect the others to contribute as well.

                      1 Reply Last reply Reply Quote 0
                      • O
                        onafets @Fabien S last edited by

                        @fabien-s hi Thank you for your contribution, is great!

                        Could I have the ex4, I don't seem to be able to export to either .ex4 or .mq4

                        Thanks in advance
                        s

                        1 Reply Last reply Reply Quote 0
                        • J
                          jjtrader @Fabien S last edited by

                          @fabien-s said in Trade manager button ea problem:

                          @trader-philipps you saved me a lot of time and helped me in this Project. I appreciate that Big thumbs up
                          Hi, did you ever get a working trade manager with buttons? I am trying to code one right now and having difficulty. Thanks!

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

                          Online Users

                          N
                          S
                          T
                          A
                          Y

                          29
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors