fxDreema

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

    How to write condition: If every open trade is in profit, then do something?

    Questions & Answers
    3
    4
    215
    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.
    • Julianrob
      Julianrob last edited by

      Hi,

      I am trying to write a condition that if every current open trade in the account is in profit, then do something.

      I have tried under trade statistics > gross loss (now - current trades only) = value (numeric) 0 but this isn't working. Can someone help please?

      1 Reply Last reply Reply Quote 0
      • P
        p3ym4n last edited by

        if trade > check profit (unrealized) > close trades or something else.

        in check profit you can put the amount of money +(for profit) or -(for loss)

        Julianrob 1 Reply Last reply Reply Quote 0
        • Julianrob
          Julianrob @p3ym4n last edited by

          @p3ym4n Thanks, but 'if trade' isn't an option in conditions. I'm not sure how to do this. 'Close profitable trades' is the closest option but still doesn't achieve what I'm wanting. They must all be only profitable trades

          G 1 Reply Last reply Reply Quote 0
          • G
            GTOAT777 @Julianrob last edited by

            @Julianrob “If trade” is in the Check Trades & Orders Count section

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

            Online Users

            F
            R
            S
            D
            V
            O

            16
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors