fxDreema

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

    Trailing Stop at Only Order.

    Questions & Answers
    2
    12
    3152
    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.
    • S
      salahuddinonline last edited by

      Hi,

      I need your help in a condition in Trailing stop, I need to put trailing stop at only one order
      for Example
      if 6 orders are running
      if one sell order in predefined Profit as well as one buy order is in predefined profit,
      put trailing stop on only these orders,

      One more thing I would like to add that I dont want to set Stop Loss, instead of that I want to stoploss with profit so trailing stop only trail my profit not loss,

      Regards,

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

        It's easy to make Trailing Stop to move TP, look at "Trail what?". But this block does not ask the trade if it already has SL/TP or not. If the trade does not have stop, it is automatically created. It would be interesting option to be added to this block, but now it doesn't exists, so I will suppose to use the Group to separate those trades from the others

        1 Reply Last reply Reply Quote 0
        • S
          salahuddinonline last edited by

          I feel I could not describe my question properly,
          if I have 6 Orders Running
          3 Buys and 3 Sells
          if 1 buy and 1 sell is in profit
          then trailing stop should run otherwise nothing would happen

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

            I feel that this description is not enough 🙂
            1 buy and 1 sell is ok, but are these 2 random trades out of all 6, or specific ones. And then TS is working for which trades - for these 2, for other 4 or for all 6 🙂

            1 Reply Last reply Reply Quote 0
            • S
              salahuddinonline last edited by

              Ok, I try to describe this strategy,

              Actually it's a dual grid strategy
              Ea will place 2 orders after every 300 pips
              One limit and one stop
              Suppose if current market price is 1.10300 then ea will place a buy stop at 1.10600 and a sell limit at the same price,
              All orders will be without take profit and Stop loss.
              After every 300 pips it will place 1 sell stop and sell Limit as well as 1 buy limit and buy stop.
              Once 1 buy and sell executes
              It deletes remaining two orders and place another 4 orders as it did before.
              This process will keep going until a reversal occur, when a buy is in profit more then 300 pips and a sell in profit of more then 300 as well, here we will apply trailing stop on both orders in profit, regardless of their position in but not more then two orders, one buy one sell ,
              Regards

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

                I can see you are trying something. I can tell you about some things you are probably not aware of.

                • The type of pending orders depends on the price they are going to be opened. There is no place where you can set any pending order to be "stop" or "limit". But you can use negative values for "Price offset" or "Grid size" in grid blocks.
                • Also, look at the OCO option in "Buy pending order" and "Sell pending order". This opens second mirror order and then when one of the two orders is closed - the other one will be closed as well.

                Otherwise what you are trying is ok. Under "on Tick" you would probably need to check how many pending orders are out there. Also you can work under "on Trade", but it depends.

                1 Reply Last reply Reply Quote 0
                • S
                  salahuddinonline last edited by

                  Thanks response is valuable
                  Half of my Ea is completed

                  Now I need you guidance regarding running orders,
                  Does not matter how many orders are running but I need conditional trailing stop
                  If any running buy order has a profit of 300 as well as a running sell order which has profit of 300 pips I need to apply trailing stop on following orders
                  If only sell is in profit trailing stop should not apply until another buy order which has same profit values as opposite order have.
                  By this both orders will close in profit
                  Other orders would keep running till they face said situation again

                  Here is my work what I have done till now I need to add conditional trailing now https://fxdreema.com/shared/iZEvFUcwe

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

                    This is the trailing stop block: https://fxdreema.com/demo/mt4-trailing-stop
                    Here is more description: post/6168

                    1 Reply Last reply Reply Quote 0
                    • S
                      salahuddinonline last edited by

                      Can you please show any example if there are 4 buy orders running in profit each have 300 pips profits but how could we apply trailing stop at only one order ?

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

                        Which one?

                        This block has some filters and you can set it to work with only buys for example. You can see the filter settings. But it does not ask them for what profit they have and stuff like that, it doesn't care.

                        Here is another way to trail SL - https://fxdreema.com/demo/mt4-loop-trailing-stop As you can see, here we have one block for each step and other blocks can be added as well.

                        Here is how to calculate different things over a group of trades - https://fxdreema.com/examples/#Bucket-of... With this you can for example calculate that the group profit of all buy trades is bigger than X dollars and then when you know that using pink blocks (as in the example above) you can do something only with the last trade, because in "For each Trade" you have settings to pick specific trade/s.

                        1 Reply Last reply Reply Quote 0
                        • S
                          salahuddinonline last edited by

                          Hi

                          I guess my question is not clear to you
                          Kindly have a look into this image

                          You can see that all sell orders are in profit but what I am looking for is a conditional trailing stop at only two orders when buy and sell both are in profit
                          Trailing stop at one buy order and a sell order at a time.
                          If only one type of order in profit trailing stop should not run, if one buy and sell is in profit apply trailing stop on both of them only other orders will remain have no trail.

                          ......
                          Screenshot_2016-03-22-14-16-56.png

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

                            "Trailing stop (each trade)" does not have this. It has some filters, but again, nothing about number of orders or profit amounts. This block will apply the same rules for each trade that has certain Group number, Market name (Symbol) and type (Buy or Sell).

                            With "For each Trade" and other pink blocks many things can be done. The downside is that you would use more blocks, not only one or two. But first you need to define the exact steps of this logic. When you say "one buy order"... ok, one... but which one? What if you have 6 buys and 3 sells... which one exactly?

                            I will suggest to play with this "For each Trade" until you get how it works and then you can probably do what you want without many problems 🙂 It's not that hard to understand how this work (I think), but it's a little bit tricky to work with this, because some imagination is needed 🙂

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

                            Online Users

                            F
                            R
                            S
                            D
                            V
                            O

                            17
                            Online

                            146.7k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors