fxDreema

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

    How to check if a trade is in break even?

    Questions & Answers
    2
    5
    1602
    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.
    • Andermaiden2nd
      Andermaiden2nd last edited by

      Hi, does anybody know how to check if a trade is in break even or any way to check the distance from an open trade to it's stop loss? "Check stop loss" checks the distance from the price to the stop loss but not the distance from the open trade to it's stop loss.

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

        I've tried so far to make a boolean flag switching from to false each time a trade opens and to true each time the distance from the trade at which the break even should be set but so far it has created more problems than what it solved...

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

          have you tried this?

          save it into variable, but dont forget, in variable it is saved in price fraction (if you need that in pips, you need adjust result with some multiplier (*10000 or *100 for jpy pairs) ... or with function ...)
          For each Trade block goes through all trades, if you apply some filter in parameters, you can control it ...
          0_1480429038222_upload-b61efdbc-81f6-4443-a8ff-454f4249d3de

          Between trading and gambling is a very small gap, be careful.

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

            I forgot this, you can that result with function MathAbs convert to absolute value because there is possibility of negative result ...

            0_1480429331087_upload-a69e4f35-6660-4486-a296-7103a5920f3e

            Between trading and gambling is a very small gap, be careful.

            Andermaiden2nd 1 Reply Last reply Reply Quote 0
            • Andermaiden2nd
              Andermaiden2nd @miro1360 last edited by

              @miro1360 It woked!, thank you very much!

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

              Online Users

              M
              N
              G
              H
              S
              E
              G

              20
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors