fxDreema

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

    First Candle of the Day, Locate and Identify???

    Questions & Answers
    4
    16
    1163
    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.
    • OntradingX
      OntradingX last edited by

      Can anyone help me understand how I can locate and identify if the 1st candle of the day, regardless of the Timeframe, is Bullish or Bearish?

      Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
      Site: https://www.ontradingx.com.br
      Youtube: https://www.youtube.com/@ontradingx
      Boa sorte a todos nós!

      English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
      Website: https://www.ontradingx.com.br
      Youtube: https://www.youtube.com/@ontradingx
      Good luck to all of us!

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

        https://fxdreema.com/shared/E8yo27G2c this is a project test.

        Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
        Site: https://www.ontradingx.com.br
        Youtube: https://www.youtube.com/@ontradingx
        Boa sorte a todos nós!

        English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
        Website: https://www.ontradingx.com.br
        Youtube: https://www.youtube.com/@ontradingx
        Good luck to all of us!

        1 Reply Last reply Reply Quote 0
        • l'andorrà
          l'andorrà last edited by

          That depends on the timeframe. The first on the daily timeframe is the only one available on chart, whereas on 1M there will be many more. What TF is the EA supposed to be working on?

          (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

          (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

          (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

          OntradingX 1 Reply Last reply Reply Quote 0
          • OntradingX
            OntradingX @l'andorrà last edited by

            @l-andorrà
            How does it depend on the timeframe? In my view it doesn't depend on the TimeFrame, because I'm talking about locating the (First) candle that happens in the Timeframe, it doesn't matter if it's in m1, or h1, or h4, I would like to plot an arrow under the first candle that opens and keep the arrow there, and I wanted to identify what the ID of that candle is.
            Next I would just identify if that candle is a (bullish) or (bearish) candle.
            But I managed to do it in a different way, I'm validating it to see if it's right in the real market.

            Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
            Site: https://www.ontradingx.com.br
            Youtube: https://www.youtube.com/@ontradingx
            Boa sorte a todos nós!

            English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
            Website: https://www.ontradingx.com.br
            Youtube: https://www.youtube.com/@ontradingx
            Good luck to all of us!

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

              There are two useful functions to locate candles: iTime and iBarShift.

              This should work
              https://fxdreema.com/shared/PLxU6Cwed

              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

              OntradingX l'andorrà 3 Replies Last reply Reply Quote 0
              • OntradingX
                OntradingX @roar last edited by

                @roar thanks... I got it but otherwise, follow the link.
                https://fxdreema.com/shared/E8yo27G2c

                Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
                Site: https://www.ontradingx.com.br
                Youtube: https://www.youtube.com/@ontradingx
                Boa sorte a todos nós!

                English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
                Website: https://www.ontradingx.com.br
                Youtube: https://www.youtube.com/@ontradingx
                Good luck to all of us!

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

                  Explaining...
                  First I have to know what time the market starts, so I used (once a day).
                  Then I draw an arrow to identify that particular candle at the time the (market opens) on that particular asset.
                  And finally, I created a condition to identify whether the closing of the current candle is greater than the opening of the current candle, if so it is a green candle, if not it is a red candle.

                  Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
                  Site: https://www.ontradingx.com.br
                  Youtube: https://www.youtube.com/@ontradingx
                  Boa sorte a todos nós!

                  English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
                  Website: https://www.ontradingx.com.br
                  Youtube: https://www.youtube.com/@ontradingx
                  Good luck to all of us!

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

                    Correct Project is here... https://fxdreema.com/shared/MgHR863pe

                    Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
                    Site: https://www.ontradingx.com.br
                    Youtube: https://www.youtube.com/@ontradingx
                    Boa sorte a todos nós!

                    English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
                    Website: https://www.ontradingx.com.br
                    Youtube: https://www.youtube.com/@ontradingx
                    Good luck to all of us!

                    1 Reply Last reply Reply Quote 0
                    • l'andorrà
                      l'andorrà last edited by l'andorrà

                      Congrats for the second version of the structure. It is more efficient than the previous one. And BTW, the 'pass' block on top can be removed. It is redundant.

                      (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                      (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                      (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

                        @roar Your code is identifying whether it is a bullish or bearish bar on the D1 timeframe.
                        What I needed is to identify if it's a bullish or bearish bar on the timeframe I'm using at the moment, it doesn't matter if it's m1, h1 or monthly.
                        He has to be able to look at the first bar and see, if it's green it's bullish if it's red it's bearish, and for that he needs to wait for this first bar to be closed to confirm.

                        Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
                        Site: https://www.ontradingx.com.br
                        Youtube: https://www.youtube.com/@ontradingx
                        Boa sorte a todos nós!

                        English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
                        Website: https://www.ontradingx.com.br
                        Youtube: https://www.youtube.com/@ontradingx
                        Good luck to all of us!

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

                          @OntradingX I tried to use current timeframe, but there was an error with the quick example I made.

                          Here's corrected code:

                          int openid_current_tf = iBarShift(NULL, 0, iTime(NULL, PERIOD_D1, 0));
                          
                          if(iClose(NULL, 0, openid_current_tf) > iOpen(NULL, 0, openid_current_tf))
                          	Comment("Today started with a BULL candle");
                          else
                          	Comment("Today started with a BEAR candle");
                          

                          53edf3d0-cff9-4212-a15d-1335579441f8-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

                          OntradingX 1 Reply Last reply Reply Quote 1
                          • OntradingX
                            OntradingX @roar last edited by

                            @roar
                            I believe it is still not right according to what I wanted to say.
                            Notice my project, I am using a block of (once per day) and putting 1 hour ahead of the market start.
                            Then, as soon as this block is triggered, I identify which candle is (previous) so I put a condition?:

                            1. If the closing price of the candle was > than the opening price then it is a candlestick (green|bullish), otherwise it is a candlestick (red|bearish).
                              Then I just plot arrows to guide which direction is the (first candle that happened at the market opening).

                            Your code from what I understand and tested it at certain times is confusing what is a candle (green | bullish) and what is a candle (red | bearish). Also place an arrow to observe this.

                            Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
                            Site: https://www.ontradingx.com.br
                            Youtube: https://www.youtube.com/@ontradingx
                            Boa sorte a todos nós!

                            English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
                            Website: https://www.ontradingx.com.br
                            Youtube: https://www.youtube.com/@ontradingx
                            Good luck to all of us!

                            S roar 2 Replies Last reply Reply Quote 0
                            • S
                              sktsec @OntradingX last edited by

                              @OntradingX
                              The first bar could be identified as :

                              iBarShift(NULL, 0, 0) = iBarShit(NULL, PERIOD_D1, 0)

                              That means the starting time of the current bar in the current chart should be the same as that in a daily chart.

                              Then you could use whatever chart technique to highlight it.

                              1 Reply Last reply Reply Quote 0
                              • l'andorrà
                                l'andorrà @roar last edited by

                                @roar Just curious. Could I use this custom code to confirm if a trade was open in any candle different from the current one, ie on candle ID 1 or bigger?

                                (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                                (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                                (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

                                  @OntradingX I dont know what to tell you man, I tested it and it sure seems to work.

                                  This code doesnt rely on some specific execution time, you can run it at any point of the day, and it always tells the correct candle.

                                  https://fxdreema.com/shared/uTkvqwrRb
                                  f4c2799c-c8e3-4191-a14b-1cddc14b5f65-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
                                  • roar
                                    roar @l'andorrà last edited by

                                    @l-andorrà yes, you can use the time value of trade open or trade close inside the ibarshift function

                                    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
                                    • 1 / 1
                                    • First post
                                      Last post

                                    Online Users

                                    H
                                    A

                                    9
                                    Online

                                    146.8k
                                    Users

                                    22.4k
                                    Topics

                                    122.6k
                                    Posts

                                    Powered by NodeBB Forums | Contributors