fxDreema

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

    Closing all trades after one is in profit

    Questions & Answers
    2
    2
    784
    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

      I just have an idea in my head, but not sure how to make it so far.
      But it includes opening one buy trade and at the same time open a sell order in the opposite direction with a little higher trade at around 50 pips below.
      If that one kicks in but turn it will place a buy order where the first one started but now trading a little more.
      And this will keep on going for a couple of trades only, but as soon as one of the orders reach their take profit level all the other trades should close.

      Is there a way to check if one in all the open trades have reached take profit and if so, close all open trades.
      I know there is a way to close all trades, but is there a way to check if one have reached take profit?
      Or should I try to make something that is in profit for all the open trades total? If that is easier.

      Just a plan in my head that I am trying to figure out before I start making it.

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

        It would be complicated under "on Tick", because you probably need to monitor how many trades there are at any moment, to decide when some of them is closed. But if you work under "on Trade", this is already done, so this is what I will suggest https://fxdreema.com/examples/#Events

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

        Online Users

        J
        A
        N
        S
        E
        A
        M
        T
        M
        A

        22
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors