fxDreema

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

    I need help on this πŸ™πŸ™

    Questions & Answers
    4
    20
    950
    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.
    • T
      tec.nacks last edited by

      hello

      I need help how to create an On/Off button on the chart

      Clicking it will turn off a block and clicking back or another dedicated button will turn on that same block... the same loop as that.

      Really need help on this ASAP πŸ™πŸ™πŸ™

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

        You create the button on init, when clicked the button turns on activates the blocks you want, then you either redraw the button off, or when clicked off it deactivates the button

        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 1
        • J
          juergen_wue last edited by

          The LockCurrency by FXDREEMA has this functionality.

          1 Reply Last reply Reply Quote 1
          • T
            tec.nacks last edited by

            I did it here at https://fxdreema.com/shared/m0KB7HeKd

            I want the Turn-OFF and Turn-ON buttons on the chart to do exactly what it's named. (to turn the opening order blocks on and off in this case). What I noticed is that it only works once, once it's clicked and turned off and on one time, if clicked again it doesn't work but I want it to keep working in a loop. How can I do that?

            R 1 Reply Last reply Reply Quote 0
            • T
              tec.nacks last edited by

              @tec-nacks Secondly; how can I edit the fxdreema text that shows up when I click those buttons? Where can I change it? as in the image below.

              Screenshot 2023-03-27 103954.png

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

                for a start I would have 1 button that does the on and off, you can use object on chart selected by the name used to draw, if = 1 is off, if = 0 is on depending on the state of button depends on whether on of off, you will see this in the journal

                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! 😊

                T 1 Reply Last reply Reply Quote 0
                • R
                  RGoo @tec.nacks last edited by RGoo

                  @tec-nacks
                  Here's a little idea, I haven't tested it, but that's how you use the blocks for a button. If I understand correctly, you need a button, not a switch.
                  https://fxdreema.com/shared/Pv2tbtkkb

                  RGoo

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    tec.nacks @jstap last edited by

                    @jstap can you help me with a demonstration here pls?

                    1 Reply Last reply Reply Quote 0
                    • T
                      tec.nacks @RGoo last edited by

                      @RGoo I tried this didn't work.], can you help look into it?

                      the on/off block isn't trigger the buy block. The idea is to turn off the buy block so it won't open trades within that timeframe and when the button is clicked again it turns on that block in order to keep trading and vice versa

                      R 2 Replies Last reply Reply Quote 0
                      • R
                        RGoo @tec.nacks last edited by

                        @tec-nacks Ahh, I didn't understand that. let me think

                        RGoo

                        1 Reply Last reply Reply Quote 0
                        • R
                          RGoo last edited by

                          So you want to press the button once and it should stay on until you press it again.

                          RGoo

                          1 Reply Last reply Reply Quote 0
                          • R
                            RGoo @tec.nacks last edited by

                            @tec-nacks
                            291776fc-9183-4aa1-a358-aaa99a9ac464-image.png

                            https://fxdreema.com/shared/h50jkE9Y

                            maybe like this

                            RGoo

                            T 1 Reply Last reply Reply Quote 0
                            • T
                              tec.nacks @RGoo last edited by

                              @RGoo I tried it, it didn;t work. it only turns on once and not again

                              1 Reply Last reply Reply Quote 0
                              • R
                                RGoo last edited by

                                Now it's back to me, a button is a switch not a button so it probably won't work. You have to take an object and activate it by clicking on it. This can be an area, you can then change the color individually. So you actually only need one button and the Delete objects button must be an area that is only activated once.

                                RGoo

                                T 1 Reply Last reply Reply Quote 0
                                • T
                                  tec.nacks @RGoo last edited by

                                  @RGoo thank you for the heads up but i really don't understand am not so good with variables as such. wouldn't mind if a demonstration would do

                                  R 1 Reply Last reply Reply Quote 0
                                  • R
                                    RGoo @tec.nacks last edited by RGoo

                                    @tec-nacks
                                    I think you can make what you want to do easier, I made an example for you that works. The Control Block is for control only. If it counts up with every tick, you know that the next block is switched, if not it is blocked.
                                    But you have to do the rest on your own, this is the only way to get further in your understanding of the program.

                                    https://fxdreema.com/shared/WS5iUoaGc

                                    9708402e-3935-4a67-8567-01ad8bdc8f40-image.png

                                    d809cc41-0151-4851-a5a6-ca82a90af3e5-image.png

                                    RGoo

                                    1 Reply Last reply Reply Quote 1
                                    • T
                                      tec.nacks last edited by

                                      Thank you, bro. IT worked you're a genius man

                                      Thanks. Will like yo be in touch with you...Cool with that?

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        tec.nacks last edited by

                                        I'll like to apply this same logic to Delete Pending Orders, Is it gonna work ??

                                        Having the delete pending order block replace the Buy Now

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

                                          Here's an example on how to have a button toggling a few options: https://fxdreema.com/shared/oQNX9nnOb

                                          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 1
                                          • R
                                            RGoo @tec.nacks last edited by

                                            @tec-nacks
                                            Yes, of course you can do that with every action, but please try to do it yourself, otherwise you will always be dependent on others and will never get ahead!!!

                                            https://fxdreema.com/shared/nLC9Lcyqb

                                            RGoo

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

                                            Online Users

                                            E
                                            N
                                            N
                                            F
                                            M
                                            A
                                            L
                                            O
                                            S

                                            26
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors