fxDreema

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

    candle count

    Questions & Answers
    2
    19
    558
    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.
    • H
      hamidrezaltf last edited by

      Hi
      i want to count number of candle to put sl in highest and lowest pries of two past cross of kijunsen and tenkensen line .+3pips abow highest for sell or -3pips than lower pries in buy.the range of candle count for high or low prise is my problem. this is my example link but it doesn't work would you guide how to do that.
      https://fxdreema.com/shared/9N0JyTCPcUntitled.png

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

        I don't think you need to use x< just <, this is because a cross happens over time, and you are looking at a fixed moment in time.

        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
        • H
          hamidrezaltf last edited by

          let show in picture what happens .i tested it. when i use < i have number of candle part 2 but i want the number of candle in part1 as you can see in picture.

          1 Reply Last reply Reply Quote 0
          • H
            hamidrezaltf last edited by

            Untitled.png

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

              I an not sure what you mean, this is giving me the ID:
              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! 😊

              H 1 Reply Last reply Reply Quote 0
              • H
                hamidrezaltf @jstap last edited by

                @jstap 16993f59-09df-4d3b-88dc-2352436353b6-image.png

                1 Reply Last reply Reply Quote 0
                • H
                  hamidrezaltf last edited by

                  I mean this just shows last cross of ten and kijun and distans to live of market( 46 candle in picture) but i want the cross befor that and distans to live of market (56 candle in the picture)
                  how can i get that?

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

                    Every time there is a cross save the time (or draw a line), and then you will have every cross recorded

                    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
                    • H
                      hamidrezaltf last edited by

                      i appreciate for your time and answer . may you give me a example?

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

                        Try this, it uses custom code to do it, the variables contain the time: https://fxdreema.com/shared/skHK4mz5c

                        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
                        • H
                          hamidrezaltf last edited by

                          Thanks a lot a test it and it was wonderful. there is two point i need to consider.1- sometimes this cod doesn't draw line and make mistakes how can we correct it?( picture one)
                          i use my setting in ichimoku .kijun=216 ten=108 and some times it draw just a line and haven't 2 lines. i want to put candle id number in stop loss setting as income numbers to have highest and lowest pries for sl setting Did i do it right in this link?
                          https://fxdreema.com/shared/PKRQDx6Pb

                          1 Reply Last reply Reply Quote 0
                          • H
                            hamidrezaltf last edited by

                            Untitled.png

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

                              Sometimes the MetaTrader indicators won't work with too low a number, add 2 int variables and this code to the bottom of the existing code:
                              Variable1 = iBarShift(NULL,0,lastKijunTenkanCross1,true);
                              Variable1= iBarShift(NULL,0,lastKijunTenkanCross2,true);

                              This should put the time IDs into the variables

                              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
                              • H
                                hamidrezaltf last edited by

                                thank a lot. I did it about code and varieble. But it didnt work. Coud you look at it and say my mistake?

                                https://fxdreema.com/shared/KtCZ0rHcb

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

                                  This does, the -1 is because only 1 cross has happened: https://fxdreema.com/shared/gP74GFdic
                                  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
                                  • H
                                    hamidrezaltf last edited by

                                    xx.png

                                    https://fxdreema.com/shared/53qEoY3Nc

                                    I mean this crosses that isnt considered.

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

                                      Try this one: https://fxdreema.com/shared/uScuo8Pcd

                                      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
                                      • H
                                        hamidrezaltf last edited by

                                        Thank you so much. It is wonderful dear @jstap !! I appreciate so much.
                                        some times it passes to many candle and we have limitations of 500 candle in loop and some times cross 2 is = -1 it happens very few times but dangers to happen even once. how we can say if this happened consider cross1 and 200 candle before( to obtain highest and lowest for sl)
                                        and when trade closed by stoploss ea doesn't open a new trade untill tenkensen kijensen new cross?

                                        1 Reply Last reply Reply Quote 0
                                        • H
                                          hamidrezaltf last edited by

                                          fort part 2: if buy stopped wait for cross ten above kijen and if sell stopped wait for ten cross below kijen i tried turn off blocks but wasn't successful

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

                                          Online Users

                                          N
                                          F
                                          T
                                          E
                                          E
                                          S

                                          22
                                          Online

                                          146.7k
                                          Users

                                          22.4k
                                          Topics

                                          122.6k
                                          Posts

                                          Powered by NodeBB Forums | Contributors