fxDreema

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

    Set the close trade level when trade is X pips in profi

    Questions & Answers
    3
    13
    3936
    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.
    • T
      trendking last edited by

      Hi,

      Set the close trade level when trade is X pips in profit

      Is there a block where I can change the close trade level as the trade progresses.
      Like change the close trade level from 8 pip to 12 pip when I am 15 pip in profit, and then change the close trade level from 15 pip to 29 pip when I am 14 pip in profit ? Similar to trailing stop, but at selective levels instead.
      Can you please add/ilustrate the blocks and links in a shared project link example.

      -I managed to get around the high SL required by some brokers by using the "Close each losable position", in case others might find it useful example http://fxdreema.com/shared/kdgVwW3zd.

      1 Reply Last reply Reply Quote 0
      • A
        Alepie last edited by

        use Variables

        look here example http://fxdreema.com/shared/hjHlJwupd

        ......
        2013-03-13_20-15-15.png
        2013-03-13_20-42-58.png

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

          Check this: http://fxdreema.com/shared/2JyEiiKnb

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

            Alepie, "Start trades loop" should be connected before block 5

            1 Reply Last reply Reply Quote 0
            • A
              Alepie last edited by

              __Alepie, "Start trades loop" should be connected before block 5[/quote:3tsxcjmv]

              ok, thanks.

              update http://fxdreema.com/shared/hjHlJwupd

              1 Reply Last reply Reply Quote 0
              • T
                trendking last edited by

                Hi,

                Thank you both, fxDreema and Alepie, for your help.
                I have tried to implement your examples, but I can not get them to work.
                I think I might have explained wrongly possible.

                I want a lagging take profit (loop):
                When in 10 pip profit, sett close trade at 5 pip profit in case the trade start to go against me.
                When in 16 pip profit, sett close trade at 10 pip profit in case the trade start to go against me.
                When in 30 pip profit, sett close trade at 34 pip profit in case the trade start to go against me.
                When in 48 pip profit, sett close trade at 42 pip profit in case the trade start to go against me.
                So if the trade start to go against me, I have already locked in significant profit level.

                Here is how I tried to implement fxDreema example http://fxdreema.com/shared/qVCfU0B8c
                Here is how I tried to implement Alpie example http://fxdreema.com/shared/mtaPxc1R
                But non of these work, they will not set any close profit level.
                I tried this modification with block Break even 'offset' http://fxdreema.com/shared/duH7rkXO . It executed the first section of the loop (When in 10 pip profit, sett close trade at 5 pip profit) but not the other sections that follow.

                1 Reply Last reply Reply Quote 0
                • T
                  trendking last edited by

                  Why do the links in the post not go to shared copy I created ? They lead to a blank page with message " Sorry, this strategy has been removed from it's owner."

                  Is it becuase you are updating the system or ?
                  I have not changed or deleted the projects or the shared copies.

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

                    There are days full of unexpected bugs, especially when I'm updating 😏 Really sorry for that. Projects are now visible.

                    There is a logic mistake in your projects. When you have many blocks connected out of a single block, they are all executed one after another. Imagine the price is 100 pips away at the moment, and you have 10 blocks that checks if the price is 10, 20, 30.... 100 pips away. Well, they all will pass because they are all executed and they are all true.
                    In this case you have to connect them in certain way. Look at the exaple that I posted above, it shows that. There are only two "Pips away" blocks, but you will see how are they connected. I think you will get the idea.

                    1 Reply Last reply Reply Quote 0
                    • T
                      trendking last edited by

                      I still dont get it.
                      I tried this, http://fxdreema.com/shared/nQsNWqxNd , but still the same.

                      Its faster if you show me.

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

                        Learning is a process that happens with personal experience. And learning is good 🙂

                        http://fxdreema.com/shared/fdF9cM6Hd

                        I disabled block 6 because it causes the position to close immediately.

                        If the numbers that you are using can be calculated with a simple formula, the project can be made with less blocks.
                        This project is still incorrect, but I want to show you something that you can learn from. You will notice that SL is moving in both directions. You can put "(in loop) Once per position" after every "(in loop) Pips away from Open Price" to not be able to return to the lowest level (to modify each level once), but there is a better way to lock the direction.

                        The better way is to check where is Stop Loss in relation to Open Price before going to modify. But I will try this tomorrow, because I am too tired and sleepy right now, and I want to include some more options in "Condition -> (in loop)..."... something like StopLoss-OpenPrice, OpenPrice-StopLoss, TakeProfit-OpenPrice, OpenPrice-TakeProfit.

                        1 Reply Last reply Reply Quote 0
                        • T
                          trendking last edited by

                          Hi,

                          I tested the example , http://fxdreema.com/shared/7xv6Cjoxc , but it does something else as you said.

                          I want a lagging %(#FF0000)[take profit] hedge profit (loop) %(#FF0000)[ red text = strike out text ]:
                          When in 10 pip profit, %(#FF4040)[sett close trade at] open hedge trade (open opposite direction trade) at 5 pip profit in case the trade start to go against me.
                          When in 16 pip profit, %(#FF4040)[sett close trade at ]open hedge trade (open opposite direction trade) at 10 pip profit in case the trade start to go against me.
                          When in 34 pip profit, %(#FF4000)[sett close trade at] open hedge trade (open opposite direction trade) at 30 pip profit in case the trade start to go against me.
                          When in 48 pip profit, %(#FF4000)[sett close trade at] open hedge trade (open opposite direction trade) at 42 pip profit in case the trade start to go against me.
                          So if the trade start to go against me, I have already locked in significant profit level and can close the hedge again if the trade start to go in my favor again.

                          I set manual close hedged position levels (close opposite direction trades open) if the trade starts to go in my favor again, at +2 pip from the opened hedge level: at 7 pip profit, 12 pip profit, 32 pip profit and 44 pip profit.

                          [ Same as before, but I use a variable, and the variable opens a hedge trade, instead of modifying a take profit/close at spesific profit level.]

                          So I better use MT4 as MT5 does not support/allow hedging.

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

                            __Hi,

                            I tested the example , http://fxdreema.com/shared/7xv6Cjoxc , but it does something else as you said.
                            [/quote:yj7y2ngn]
                            I think we missed something here 🙂 In relation to the current price for Buy position SL is always below., but in relation to the open price SL can be below OP, or in case the profit is big enough - over OP. Try with negative values in "(in loop) Modify SL and TP".
                            Also, I think you have to set up SL values, not TP.
                            For the lowest level (84 pips) it will give error message because you are trying to put SL at the current market price.

                            Why don't you try PSAR? The levels you are working does not seem to follow some rule, but I guess you are trying to create some kind of non-linear trailing stop. PSAR looks like this. Just close the trade when PSAR swiches it's position (in other words, when the current price touch it). There is even an example in http://fxdreema.com/examples of how to detect when PSAR moves from below to above the price and vice versa.

                            1 Reply Last reply Reply Quote 0
                            • T
                              trendking last edited by

                              Yes, create a non-linear trailing stop. Used Variable with Break even (BEP offset mode) block. Works. http://fxdreema.com/shared/9vn3S9afe
                              Modify SL (with positive / negative) input does something else. http://fxdreema.com/shared/bit5yw1xb

                              Thank you fxDreema and Alepie.

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

                              Online Users

                              M
                              G
                              D
                              A
                              A
                              R

                              17
                              Online

                              146.7k
                              Users

                              22.4k
                              Topics

                              122.6k
                              Posts

                              Powered by NodeBB Forums | Contributors