fxDreema

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

    How can I print the stop loss live?

    Questions & Answers
    3
    5
    1398
    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
      coverman last edited by coverman

      Probably a very, very simple question.
      I want to output the actual loss on an open trade on the screen.
      But which block can tell me this? I want it to print the loss in points on open BUY trades and one line showing the loss on the open SELL trades on the trades that are open for this EA.

      Something like this:
      SELL LOSS: 250 points
      BUY LOSS: 732 points

      But which block can give me these numbers?
      Probably very, very simple, but I just can't find it.
      And I only have one BUY trade and one SELL trade open, so it's just one I'm looking for.
      What I'm looking for is the loss compared to the open price.

      1 Reply Last reply Reply Quote 0
      • J
        josecortesllobat last edited by

        This could be an approach (not tested)

        0_1540748838204_66b79cb2-d97d-49a9-ac4a-634f42d37f69-image.png

        You can have one "Comment" block for a BUY trade and other one for a SELL trade using the block "If position".

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

          No, didn't get the points from that example.

          1 Reply Last reply Reply Quote 0
          • J
            josecortesllobat last edited by

            0_1540842118182_b509ad6c-ef24-4032-a8bc-ec03eacb0fb8-image.png

            0_1540843762653_c7538127-fa73-453a-b64a-0ba21ee838a8-image.png

            Not sure if it Will work for all the brokers because it Will depend on the digits count but usually 1PIP = 10POINTS.

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

              Do you have only 1 trade at a time, or is it possible to have multiple?

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

              Online Users

              S
              O
              K
              M
              M
              C

              19
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors