fxDreema

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

    using external DLL

    Questions & Answers
    2
    20
    4799
    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.
    • H
      hilavoku last edited by

      Hiho,

      there is a DLL which gives the programmer the ability to create GUI elements within an EA.

      http://www.mt4gui.com/quickstart/

      Do you think this could be incorporated within FXdreema? The use of the commands can surely be done with the help in using own libraries. I don't know if the include of the MQH file could work?

      thx in advance

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

        This is very good 🙂 For the moment I don't use any external files, but who knows...

        1 Reply Last reply Reply Quote 0
        • H
          hilavoku last edited by

          😄

          Okay. when i have time i will try to draw some gui elements within FXdreema...

          1 Reply Last reply Reply Quote 0
          • H
            hilavoku last edited by

            Hi,

            i tried the MT4gui and the simple example works. It draws a button and when clicked there will be an altert box shown.
            The only thing i must do after saving the MQ4 file from within FXdreema ist to add the include (#include <mt4gui.mqh>) and thats it.

            Do you have any idea how i can add this include with the help of FXdreema. I think it should be some option within the 'Current project options' menu!?

            1 Reply Last reply Reply Quote 0
            • H
              hilavoku last edited by

              Okay i did the initiation with the help of a new library. When i save the MQ4 file from FXdreema and compile it with the metaeditor there is no error and the EA runs fine 🙂
              When i try do compile from within FXdreema it says:

              Compilation errors
              'mt4gui.mqh' - cannot open the program file

              It seems it's not looking in the standard folder <terminal_directory>\experts\include ....

              Just one little step and with the help of three little libraries we can use graphic elements within FXdreema

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

                This will not work because this include file does not exists on the server (web version uses compilator that is on the server). It should work on the local version because it uses local compilator, files and folders. I think I can make the web version to work with the local compilator in future (when using the browser plugin of course), but now the only way to export file with something that is missing inside is to export it as .mq4/.mq5 file.

                1 Reply Last reply Reply Quote 0
                • H
                  hilavoku last edited by

                  Too bad. Okay. Then i will see how i can automate the process of compiling...

                  1 Reply Last reply Reply Quote 0
                  • H
                    hilavoku last edited by

                    Hi.

                    After some time I'am back and wanted to see if there is now the possibility of adding some graphical items to a EA/script. But it seems that nothing has changed ?

                    greetz
                    hilavoku

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

                      Haha, yes. I started to make this block back then and I have something, but no one else asked, so...
                      Meanwhile I wanted to create some other website so I started to create my own PHP framework... long story... and these days I started to rewrite fxDreema again 🙂

                      1 Reply Last reply Reply Quote 0
                      • H
                        hilavoku last edited by

                        Hi!

                        How is your rewrite going? Do 'we' have a chance of seeing graphical elements within the next ~6 month? 🙂

                        thanks in advance
                        hila

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

                          Ummmm...do you mean these blocks? http://prntscr.com/57loy3

                          1 Reply Last reply Reply Quote 0
                          • H
                            hilavoku last edited by

                            No. I think of some interactive elements like buttons, textfields, sliders ...

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

                              Most guys don't know how to control their orders, these interactive things are like steps above the average 🙂 In other words, this is not something that is my priorit... but who knows.

                              1 Reply Last reply Reply Quote 0
                              • H
                                hilavoku last edited by

                                Okay. I understand. So I need to stick with the current workaround.
                                Thanks for your efford âš 

                                1 Reply Last reply Reply Quote 0
                                • H
                                  hilavoku last edited by

                                  Sorry to bother you again.
                                  Is there any new functionality of using a self written DLL (without any graphical elements 🙂 ).
                                  It would give the EA much more possibilities. Do I have still to use the local version of fxdreema?

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

                                    This is not impossible. There is no global place to define import functions, but If you create a custom block, then in the smaller text field (the one at the bottom) you can put some global variables and import functions.

                                    Import functions are not checked, the .dll file is not needed when the code is compiled (or at least this is what I remember). So the web version should still work. For include files the local one will be better.

                                    For the buttons, I don't remember for what reason I didn't added this object, but if I add it, and also for any other object there is this "on Chart" event that is supposed to be used to detect when you click on something (for example). You tried that?

                                    1 Reply Last reply Reply Quote 0
                                    • H
                                      hilavoku last edited by

                                      Seems I overlooked something. Can't see how to draw a button and also how to use the 'on Chart' click event.

                                      PS: LOL I found the on click tab :-). But still can't find the 'button' thingy

                                      1 Reply Last reply Reply Quote 0
                                      • H
                                        hilavoku last edited by

                                        For a button I could use the rectangle with a sunken border. Then I only need some text to show within the button....

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

                                          It seems that buttons are more like checkboxes, they are either pressed or not pressed 🙂
                                          Here is something for you: https://fxdreema.com/shared/1tclI1t3

                                          The best will be something like "Check if button is pressed" block, because I think these can be used a lot, but I don't know where to fit block with this name 😄

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

                                          Online Users

                                          C

                                          6
                                          Online

                                          146.8k
                                          Users

                                          22.4k
                                          Topics

                                          122.6k
                                          Posts

                                          Powered by NodeBB Forums | Contributors