fxDreema

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

    Closing open trade when amount in deposit currency equals previous closed profit value

    Questions & Answers
    2
    4
    1319
    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.
    • D
      damsiboko last edited by

      How can an open trade be closed when the loss amount in deposit currency equals previous closed profit value ...

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

        I made this: https://fxdreema.com/shared/nnCFpUM7d

        0_1545069572274_19ce1754-d25c-4cfc-85e9-95ead1f71996-image.png

        I don't know what should happen when the trade is on loss, so I set SL. That first Buy trade that was more profitable closed at profit >= than the loss of the previous one.

        1 Reply Last reply Reply Quote 0
        • D
          damsiboko last edited by

          @fxdreema said in Closing open trade when amount in deposit currency equals previous closed profit value:

          happen when the trade is on loss, so I set SL. That first Buy trade that was more

          Thanks, very good. Although need to get the current loss variable and then compute, that when LastTradeProfit equals current loss in value i.e +20 usd == -20 usd, then close trade. Meaning don't want to loose more than previous earned profit

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

            But it's not a good idea to use == to compare prices and profits. Use >= or <= instead.

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

            Online Users

            A
            A
            F
            E
            A

            15
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors