fxDreema

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

    50% of profit

    Questions & Answers
    2
    9
    308
    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
      MT4stefano last edited by

      what can i do for check if price is at 50% of profit target?

      "

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

        i want to do this :
        if current price is at 50% of profit ( example if take profit of trade is 100 and current profit unrealized is 50) do this ...... and ea continue whit other blocks
        unfortunately my initial take profit is no fixed pips but is relative at "highest time period" so is no possible use "check distance" or "profit unrealized" because target profit is any tame different for each trade opened, it depend of the range "lowes or highest in defined time ....
        i am looking for a function "if current profit is 50% of target profit" but i no see ....
        check profit do "if % of blance, of free margin, of ....." but no relative at target profit of trade. are you ideas? thank

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

          https://fxdreema.com/shared/57O2PjWAc

          i wrote on title in a block what i would like to do

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

            no one have a idea ?

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

              The problem you have is working out the profit that will be reached at TP, if you work with pips it would be easier. For example, TP is 100 pips, then when the trade gets to 50pips in profit you could then reduce lot size.

              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
                MT4stefano last edited by

                if i knew how many pips will be the range " highest candle time 02.00-08.00 am certainly ...... i could include it like take profit.
                but i can't know before 08.01 AM .... EA has to wait every day the end of candle 08.00 am for know it...and work whit this levels .
                every day they will be different.
                for this reason i put "lowest candle in time 02.00-.08.00" like stop loss and "150% of stop loss" like take profit. i don't know how may pips is it.
                so i need a function that calculates this range in pips ..... and blocks "formula", check distance", check stop loss etc don't do it.
                question was "what can i do for do it"? what can i do for transform the range "highest/lowest" in a pips number?
                but if you answer me that it's impossible ..... it means it can't be done

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

                  If a trade is placed, then in a buy tp-open or sl in a formula, will give you the points (opposite for a sell). So if you divided this by 2 you would get the half way number (alternatively open price+tp price/2 will give you the middle price value)

                  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
                    MT4stefano last edited by

                    i try it. it work one time only after no work
                    https://fxdreema.com/shared/4IxyXF09

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

                      You may want to use solely in loop data, and set two trees so 1 buy and 1 sell. add any shared link here I will look if needed. You may want to use for each order rather than trade.

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

                      Online Users

                      S
                      O
                      K
                      M
                      M
                      C

                      24
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors