fxDreema

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

    Converting Takeprofit % to ATR, pips and time in order to close the order

    Questions & Answers
    2
    4
    147
    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.
    • A
      allstarengin last edited by

      Hello guys,

      Is that possible: “Let’s say my tp target is 1%, 1% is equal to 600 pips at the time, I’m on 1h chart and atr is 60 pips which means I expect my order to close with profit in 10 hours. So, my bot must measure 1% as pips, then divide it to 60 minutes to find the max. stay open time for the order, and finally if the order can’t reach the tp target and the max stay open time is over then bot will close the order. So, for the case above, if the order can’t reach 1% (600 pips) target after 10th bar (which means after 10th hours) bot must close the order.

      Is it possible? If yes, how can I write it?

      1 Reply Last reply Reply Quote 0
      • S
        sktsec last edited by sktsec

        In the buy or sell block. You can set the expiration time.

        By the way, provided that 60 pips for 1 hour, it may require about 100 hours to have ATR of 600 pips.

        According to my rough estimation, the ATR is proportional to the square root of time.

        One more complication, the interval from entry point to SL/TP is just part of the ATR. So the time needed may even longer than 100 hours (on average in theory)

        1 Reply Last reply Reply Quote 0
        • S
          sktsec last edited by sktsec

          Let me make a rough verification by using current EURUSD as an example (both n is equalized to 10 weeks)
          Current hourly ATR (n=1200) is 0.00137
          Current weekly ATR (n=10) is 0.0179

          0.00137 x SquareRoot(120) = 0.015, which is quite close to 0.0179 as an estimation

          1 Reply Last reply Reply Quote 0
          • A
            allstarengin last edited by

            Thank you for your feedback @sktsec. So, how can I write it?

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

            Online Users

            A
            M
            E
            A
            E
            N
            S

            16
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors