fxDreema

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

    please help move sl tp to the nearest whole number

    Tutorials by Users
    4
    18
    937
    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.
    • M
      markforysuccend last edited by

      please help how move sl tp to the nearest whole number

      and
      make my entry exactly at whole number.

      thanks.

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

        use breakeven piont bar, and what whole did u want number plz explain?

        1 Reply Last reply Reply Quote 0
        • M
          markforysuccend last edited by

          whole grid number 10pips 20 pips distance..

          if the ea exceute trade, i want the tp is exactly on whole number

          and if my custom indicator is executing the entry, i want it to place order exactly on the whole number level.

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

            use no trade nearby + once per bar + buy or sell bar set your tp & sl from there. you can separate in 2 section for this

            1 Reply Last reply Reply Quote 0
            • M
              markforysuccend last edited by

              not working.. the tp still on the odd number. when ea is executing the position im still dragging the tp into the grid line

              https://drive.google.com/file/d/1uSuTy9NIrvqld5Kru3yRYgBaRTpUatX9/view?usp=drive_link

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

                there is no odd number setting for this, only u can set a distance of how many pips as u want but it will not go the the odd or even price.

                1 Reply Last reply Reply Quote 0
                • M
                  markforysuccend last edited by

                  Is thr any way to make this happen?

                  after ea execute the trade the tp will automaticaly move to the nearest grid line?

                  https://drive.google.com/file/d/1uSuTy9NIrvqld5Kru3yRYgBaRTpUatX9/view?usp=drive_link

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

                    the ea dont know where did u want to set, only can set BE or trailing stop

                    1 Reply Last reply Reply Quote 0
                    • M
                      markforysuccend last edited by

                      Okay thanks. Do you find my English difficult to understand?

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

                        Maths round will change a number to the nearest whole number, here's an example:

                        double num = 5.67;
                        int roundedNum = MathRound(num);
                        Print("Rounded number: ", roundedNum);

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

                        M 1 Reply Last reply Reply Quote 0
                        • B
                          behrouz1354 last edited by

                          Hi Jstap
                          if you use MQL5 for VPS services?

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

                            @behrouz1354 This is someone else thread, but VPS work the same as a home PC so if there is a problem it will likely be the VPS server.

                            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
                            • M
                              markforysuccend @jstap last edited by

                              @jstap can you share a work sample please?

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

                                Yes but where is your original number coming from?

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

                                M 1 Reply Last reply Reply Quote 0
                                • M
                                  markforysuccend @jstap last edited by

                                  @jstap Grid Number sir... Whole number. this is the original number coming from.

                                  just only move the TP exactly on the grid line/'
                                  and when executing the position, the ea must enter exactly on the grid line. 😄

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

                                    Ok so that code will work but it needs to know the original number to be able to work out the round number, add a shared link with a block set to get the number.

                                    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
                                    • C
                                      CAVINCENT last edited by

                                      are you trading on round numbers?

                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        markforysuccend @CAVINCENT last edited by

                                        @CAVINCENT yes.. i just want the ea every time open a trade is exactly on round number. or if its possible in the horizontal grid

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

                                        Online Users

                                        E
                                        C
                                        M
                                        M
                                        F
                                        L
                                        F
                                        F
                                        E
                                        K
                                        M
                                        T

                                        27
                                        Online

                                        146.6k
                                        Users

                                        22.4k
                                        Topics

                                        122.6k
                                        Posts

                                        Powered by NodeBB Forums | Contributors