fxDreema

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

    Simple script not work!

    Questions & Answers
    4
    12
    2658
    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
      mohammad2232 last edited by

      Hello
      I tried to made simple script that when press buy bottom it should do buy , but this is not work!
      https://fxdreema.com/shared/BNgX7204b
      Please help me
      Thanks

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

        I have the same problem, can't get the button to do anything...

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

          That "Draw Button" block may draw a button, but the next block 4 does not work with that button. Put "For each Object" before block 4 and point it to the button somehow. Now, note that objects have unique names and if you know the name you can select the object directly. But if you don't know the name, then you search for the object in the pool of objects. Here is more: https://fxdreema.com/examples#Chart-Objects

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

            @fxDreema
            not work!
            I do this
            https://fxdreema.com/shared/hFcVSRo9e
            but yet not work !
            Thanks

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

              Is there any solution , please 🙂

              1 Reply Last reply Reply Quote 0
              • O
                Owenb last edited by

                https://fxdreema.com/shared/1WjJBt4Hb

                M 3 Replies Last reply Reply Quote 1
                • M
                  mohammad2232 @Owenb last edited by

                  @Owenb
                  Thanks so much it seem work properly 🙂

                  1 Reply Last reply Reply Quote 0
                  • M
                    mohammad2232 @Owenb last edited by mohammad2232

                    @Owenb
                    Do you know how can i get value ? for example get lot size then click on buy bottom and use that value ?
                    Thanks again

                    1 Reply Last reply Reply Quote 0
                    • M
                      mohammad2232 @Owenb last edited by

                      @Owenb
                      And do you know how can i use it in script ? i tried many things but i can't do that !
                      Thanks

                      O 1 Reply Last reply Reply Quote 0
                      • O
                        Owenb @mohammad2232 last edited by

                        @mohammad2232
                        A script only works one time from what I know. I just work with what happens when it opens, on init, when there is a tick on tick and what happens when it closes, on deinit

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          mohammad2232 @Owenb last edited by

                          @Owenb
                          in many script in mql5 market or base of mt4 one click buy and sell script work properly but i don't know how can i do this with fxdreema!
                          do you know answer of other question ?
                          Thanks

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

                            I imagine Scripts like additional functionalities for MetaTrader, something like the icons (buttons) in the menu - you double click on a Script and something happens, but only once. In general, a Script runs for milliseconds (or seconds, if there are trades to be created or deleted) and then automatically exists.

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

                            Online Users

                            N
                            S
                            T
                            A
                            Y

                            17
                            Online

                            146.7k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors