fxDreema

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

    "Adjust" take-profit by the amount of the spread

    Questions & Answers
    3
    12
    970
    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
      capitalfreedom last edited by

      I am wanting to adjust take profit by the amount of the spread in the adjust field. negative value for buys and positive value for sells. Can anyone lend any assistance on what I should attempt?

      jstap bk7 2 Replies Last reply Reply Quote 0
      • jstap
        jstap @capitalfreedom last edited by

        @drewliedadeuce In market propities you can select spread, put this figger in a variable, you can then use this in a pink block tree, the spread will fluctuate as the market moves though so not sure how this will affect the trade, worth a try though.

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

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

          @drewliedadeuce

          you could also grab the average spread which is calculated by the ea

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

            @bk7 how might I do this?

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

              @jstap thank you for your response, I have a few questions if you could elaborate on how might I do this?

              1. what type of variable should I use?

              2. how should I input this in the adjust field?

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

                @drewliedadeuce The variable for spread should be a double, in adjust if variable is called SPREAD,

                -SPREAD will minus spread amount
                +SPREAD will add spread amount

                if the spread records in pips (likely)

                -SPREAD pips will minus spread amount
                +SPREAD pips will add spread amount

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

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

                  @jstap Thank you this is great help. however i face one issue.

                  I forgot to mention my TP is the 10 EMA. which does provide a value. and I would like to adjust the TP by the amount of the spread. so i do not have the option to select market propeerties. any solution? 0_1643803308973_Screen Shot 2022-02-02 at 6.57.35 AM.png

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

                    @drewliedadeuce Save it into the variable like this:

                    0_1643803885309_af15c959-5c8f-4e89-9809-c4878b8e1767-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! 😊

                    C 3 Replies Last reply Reply Quote 0
                    • C
                      capitalfreedom @jstap last edited by

                      @jstap awesome! thanks!

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

                        @jstap one last question. what should I enter in the "value" field in variables tab? 0_1643805546901_Screen Shot 2022-02-02 at 7.36.25 AM.png

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

                          @jstap please disregard. that was a stupid question. i figured out it was 0. I am very new to constants and variables. thanks again for your help! 🙂

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

                            @drewliedadeuce : )

                            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

                            R
                            A
                            D
                            A
                            E
                            N
                            N

                            39
                            Online

                            146.7k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors