fxDreema

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

    How to add an entry every 5 candles?

    Questions & Answers
    3
    19
    872
    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.
    • P
      Piet Pompies last edited by

      Good day to all.
      This is my first EA. So I managed to get it to do what I want, but ....
      I want the EA to add an entry every 5 candles.

      Also. If there are 3 out of 5 entries in profit, I would like to close all trades.
      shared/ZUZo1kTGd

      1 Reply Last reply Reply Quote 0
      • P
        Piet Pompies last edited by

        hope this link will help: https://fxdreema.com/shared/ZUZo1kTGd

        ekanters 1 Reply Last reply Reply Quote 0
        • ekanters
          ekanters @Piet Pompies last edited by

          @Piet-Pompies This is a test for somthing else but maybe it helps you on the way. https://fxdreema.com/shared/BBzBgyGvb
          bar - kopie.jpg

          P 1 Reply Last reply Reply Quote 0
          • P
            Piet Pompies @ekanters last edited by

            @ekanters Thankx for the reply, but does not seem to work šŸ˜ž

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

              Try this, Period() gets the minutes of each candle of the current time frame, then it is multiplied by a chosen number. This will count from 00:00, so maybe you need to start the count at a specific time:
              image.png

              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 0
              • P
                Piet Pompies last edited by

                Ok, I'm new to this. maybe try and speak in Amateur language. how do I get to the Constants block? do i add this in before the "Sell now " block?

                1 Reply Last reply Reply Quote 0
                • P
                  Piet Pompies last edited by

                  This is what i Have so Far https://fxdreema.com/shared/XYHNzn9hb

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

                    That looks correct, you now need to connect that to your sell block

                    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 0
                    • P
                      Piet Pompies last edited by

                      Okay so it seems to work but it only adds a sell after first 5 candles. en need it to add at least 5 entries in 25 min (1 x every 5 minutes). now it only adds 1

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

                        That will work at the start of a candle if on the 1h chart, it will work every 5 hours, but conditions after this can stop things from working.

                        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 0
                        • P
                          Piet Pompies last edited by

                          I got it to work, But now it does not meet my conditions,
                          Im working on a 1 minute time frme. it enter a sell right off the bat, and when it close in profits , it enter another sell. it keeps entering sells after previous order close in profits.

                          image.png

                          1 Reply Last reply Reply Quote 0
                          • P
                            Piet Pompies last edited by

                            it was suppose to add more entries to the top movement.
                            Below you can see it enter right after positions are closed. should not do that.

                            image.png

                            1 Reply Last reply Reply Quote 0
                            • P
                              Piet Pompies last edited by

                              This is how i have it
                              https://fxdreema.com/shared/d3xVw3Tze

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

                                This is how you currently have this setup, if candle 0 is below the MA (which is the current price), and if the current price crosses above the envelope then place a trade (at maximum this only happens once a candle. Then separate to this, every X minutes place a trade. I think you want to combine blocks so EA is only doing what you want?

                                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 0
                                • P
                                  Piet Pompies last edited by

                                  https://fxdreema.com/shared/mdj7OHqJb
                                  Here you can see it opens 2 trades at once, then 5 minutes after, and then nothing. it should have entered another sell 5 minutes after the 2nd entry.
                                  image.png

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    Piet Pompies last edited by

                                    here should have been 5 entries in total.
                                    image.png

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

                                      I have tested using this to draw a candle every 5 candles, and works as expected: https://fxdreema.com/shared/75Ma1nJ7b

                                      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 0
                                      • P
                                        Piet Pompies last edited by

                                        it does open every 5 minutes now, but when a small spike happens, it stops. i want it to continue until price drops into profit

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

                                          You'll have to add a shared link, and say what's happening.

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

                                          Online Users

                                          S
                                          O
                                          K
                                          M
                                          M
                                          C

                                          15
                                          Online

                                          146.7k
                                          Users

                                          22.4k
                                          Topics

                                          122.6k
                                          Posts

                                          Powered by NodeBB Forums | Contributors