fxDreema

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

    How to scan previous day for engulfing bars

    Questions & Answers
    3
    11
    567
    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.
    • C
      cyberspace last edited by

      Good day @l-andorrà and @roar and @fxDreema

      i would like to create a string of code for the next scenario

      i want the EA to draw order blocks or draw rectangles around engulfing candles but i need it to look back at the previous day to find these candle. so every day at midnight, it should look back to the previous day that just passed and scan it for these engulfing bars.

      i managed to create a code that identifies the engulfing bars and draws a rectangle and projects it as a ray to the right ,so im guessing half the job is done , but how now do we scan the previous day?

      project : shared/wj3FbVVbc

      roar 1 Reply Last reply Reply Quote 0
      • roar
        roar @cyberspace last edited by

        @cyberspace you need to change your candle id value in a loop.
        Here is a simplified example https://fxdreema.com/shared/xeDNx924e

        Need small help? Tag me in your post
        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

        1 Reply Last reply Reply Quote 0
        • C
          cyberspace last edited by

          hey @roar ,i cannot see your variables so i cant copy that code into my project because i do not know how you defined the variables

          im essencially trying to create something like this, an ea that spots out supply and demand ,basically the last candle before major moves

          GBPUSDM30.png image url)e url))

          roar 1 Reply Last reply Reply Quote 0
          • roar
            roar @cyberspace last edited by

            @cyberspace to see the variables, just download the .mq5 file and then import it to your builder

            Need small help? Tag me in your post
            Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

            1 Reply Last reply Reply Quote 0
            • C
              cyberspace last edited by

              good day @roar ,

              I did all that and downloaded it as you said, but when i load t on chart it does not scan back to the previous day prices ,it merely draws the most recent ones.Jump 100 IndexM15.png

              where as i wasnt it to do this :

              Jump 100 IndexMww15.png

              roar 1 Reply Last reply Reply Quote 0
              • roar
                roar @cyberspace last edited by roar

                @cyberspace just select A=No to see all rectangles

                11dc752a-6666-43a8-908f-21c63e960b73-image.png

                Need small help? Tag me in your post
                Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                1 Reply Last reply Reply Quote 0
                • C
                  cyberspace last edited by

                  hey @roar thanks for your timely responses, highly appreciate it

                  yes its working now , but thing is, it creating multiple , like a whole lot .like the chart is blinking [ wish i could send you a video[

                  like, its creating copping on copies every second , so when i got o objects i can see hundreds of rectangles

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    cyberspace @cyberspace last edited by

                    Jump 25 InqqqdexM15.png

                    the blocks are perfect but it keeps printing a lot of them on top of one another - how do we fix this

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

                      Just apply some filter. Once per bar

                      Need small help? Tag me in your post
                      Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                      1 Reply Last reply Reply Quote 0
                      • C
                        cyberspace last edited by

                        yes i had tried that before asking you... once per bar filter then only makes it draw only one rectangle, the most recent one

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          JayPhillbrooks @cyberspace last edited by

                          @cyberspace If you are still having issues, can you share the updated project?

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

                          Online Users

                          A
                          S
                          P
                          K
                          M
                          M
                          E
                          L

                          14
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors