fxDreema

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

    Delete Object By Event

    Questions & Answers
    2
    11
    299
    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.
    • N
      Newaccount last edited by

      Hello every one
      I Have question
      I have created so many object in on Init and on Tick event
      How to I only delete object on the on Tick event not on Init?

      at the end of the day i delete everything but it also will delete object from on Init too, and i don't want it

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

        event happens - delete

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

        N 1 Reply Last reply Reply Quote 0
        • N
          Newaccount @jstap last edited by

          @jstap
          could you be more specific?

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

            I'll help, what condition happens to say delete everything on tick? On init only happens at bot start

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

            N 1 Reply Last reply Reply Quote 0
            • N
              Newaccount @jstap last edited by

              @jstap
              I'll draw some objective on Init Event and i want them to stay
              but every day i want to delete everything on Tick event

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

                once a day? if so once per day block - delete

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

                N 1 Reply Last reply Reply Quote 0
                • N
                  Newaccount @jstap last edited by

                  @jstap
                  i have used once per day in on Tick but it will delete everything from on Tick and on Init
                  i only want on Tick to be deleted not on Init.

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

                    on init is just when it's drawn, to delete what you want delete the specific object.

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

                    N 1 Reply Last reply Reply Quote 0
                    • N
                      Newaccount @jstap last edited by

                      @jstap Screenshot 2026-01-03 095612.png
                      i have these objects in on Init event and so many more in on Tick as you can see
                      if i want to delete them by name or by type it would take so long.
                      the easy way is to just delete once per day in on Tick but it also will delete objects from on Init as well.
                      so i want to know that is there a way to just delete every object in on Tick only and not in the on Init.
                      i already that that i can name them all and delete by name or type but because it to many it would take a lot of time.

                      thanks.

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

                        Make this simple for yourself, test with a few objects, draw anywhere and delete what you want when you want on tick, you know the old saying KISS? Adding lots often just makes getting to the result you want more difficult, delete as many as you want at any time you want on tick takes a tick, so doesn't take ages

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

                        N 1 Reply Last reply Reply Quote 0
                        • N
                          Newaccount @jstap last edited by

                          @jstap
                          ok
                          thanks
                          I'll do it your way

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

                          Online Users

                          K
                          A
                          D
                          S
                          G

                          16
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors