fxDreema

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

    Trailing only profit (after offset) regardless of Stop Loss position

    General Discussions
    4
    32
    6545
    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.
    • M
      Mohamed80 last edited by Mohamed80

      Hello,
      I spent more than three hours and did all the possible combinations in the Buy/Sell Block and the Trail Trades (Block) including Pips Offset, Trail stop, Trail Step, and changing the trailing for either stop loss or target profits to achieve the following with no luck.

      I want to trail the profit (only) regardless of the stop loss position.

      An example:
      I have a stop loss of 50 pips. I want to trail the profit after the price goes a certain level above the open price, irrespective of the stop loss position.

      With all the combinations I have used, including the (Pips Offset), the stop loss distance is always interfering. i.e if the price moves 10 pips above the open price, then the stop loss will move up 10 pips. I do not want that. I just want the stop to be at the breakeven point immediately once the price is 10 Pips plus Open Price. The intial 50 pip stop loss should not take part in any further trailing.
      So when I trail the profit by 20 pips and with a strat trailing offset at 10 pips, then as soon as price goes 10 pips plus entry price, price is trailed every 20 pips. The 50 pip stop loss should not be playing any more role.

      Is there a way to do it with the standard blocks?

      Thanks,

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

        please provide project link for best help.

        Also, you should learn how to do variables and constants. Computers are infinitely smarter than us and can change all those parameters for you if you place them as variables and/or constants.

        1 Reply Last reply Reply Quote 0
        • M
          Mohamed80 last edited by Mohamed80

          0_1626512411386_FX Dreema (2).png

          This is one of many combinations I have tried, showing the trailing stop block and constants I used. There are no variables.

          The second photo is for the Buy/Sell blocks. I have tried both: No stop loss and no take profit.

          0_1626513007852_2021-07-17 (2).png

          M jstap 2 Replies Last reply Reply Quote 0
          • M
            Mohamed80 @Mohamed80 last edited by Mohamed80

            I found this link https://fxdreema.com/tutorial/builder/trailing-stop and there is mention of more blocks for Modifying Stop Loss and Pips Away from Stop Loss that are different from the standard Trail Stop Block.

            In addition to this, the standard Block for trailing stops should not be connected directly to the Buy/Sell Blocks.

            Anyway, I believe the answer is in the (Pips Away from Stop Loss) Block and (Modify Stops) Block.

            I will have a thorough reading.

            M 1 Reply Last reply Reply Quote 0
            • M
              Mohamed80 @Mohamed80 last edited by Mohamed80

              @jsauter86

              I believe I have got it right this time and will keep testing.

              We can use these three blocks.
              0_1626519091902_Second Way.png

              And the constants look like this:
              0_1626519237786_gg.png

              In Case I want to start the trailing above the Open Price/Break-Even Point, then I will type the appropriate number of pips in the (Trail Stop After Start Trailing) Constant.

              I am now working on another scenario. Sometimes, I want to start the trailing below the Open Price/Break Even level. I think if I use (-10) for example the (Trail Stop After Start Trailing) Constant, the trailing should start 10 pips below the Open Price. I am still to find out if this is the case.

              l'andorrà 1 Reply Last reply Reply Quote 0
              • l'andorrà
                l'andorrà @Mohamed80 last edited by

                @mohamed80 Those screenshots are not providing all necessary info to check the issue. Could you please share the link to the project?

                (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

                M 1 Reply Last reply Reply Quote 0
                • M
                  Mohamed80 @l'andorrà last edited by Mohamed80

                  @l-andorrà

                  Sure
                  https://fxdreema.com/shared/IqejMZiUc

                  I think it is right but need to do more testing to activate the trailing above Breakeven by inputting a pip value in the (Trail Stop After Start Trailing) Constant.

                  Please bear in mind that the reason behind this is to choose at what level the trailing stop should be activated regardless of the stop loss level. Hence I have a block to modify the stop loss.


                  Another way is to use the "Break Even"Block but I am confused between two inputs: The first is the (On Profit Mode) and the second is BEP offset mode). I find them to have the same output so I am yet trying to understand the difference between them.

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

                    i dont mean to be rude, but do you think that simple MA crossovers are going to provide a working EA?

                    I know a guy that can code well but can't trade for sh*t. He can create grid systems and recovery systems better than anyone I've seen. But he too applies them to something simple like RSI and they blow up each time...lol.

                    I just hope your strategy is more robust and you're saving that piece of your blocks elsewhere in the real strategy.

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      Mohamed80 @TipsyWisdom last edited by Mohamed80

                      @jsauter86

                      The sole purpose of my post is to ask questions with regard to Trailing. Trailing can be used on its own for manual trading or used in any strategy. It is not about discussing a strategy.

                      1 Reply Last reply Reply Quote 0
                      • M
                        Mohamed80 last edited by Mohamed80

                        Has anyone used trailing before through FX Dreema?

                        1 Reply Last reply Reply Quote 0
                        • jstap
                          jstap @Mohamed80 last edited by

                          @mohamed80 I think this is doing what you have requested but, you will need to ad another condition otherwise you will never hit TP so you may as well not have a TP. hope this helps.

                          link text

                          Learn fxDreema Without the Wait!

                          My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                          The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                          Don’t miss out

                          Click here➡️ https://mybook.to/fxDreema to get your copy today!

                          Enjoy! 😊

                          M 1 Reply Last reply Reply Quote 0
                          • TipsyWisdom
                            TipsyWisdom last edited by

                            its easier to first remove everything off of variable and constant and see how they work straight forward. Like many coders who don't trade, they often build complex EA's of things they dont understand and then try to use it when in fact the problem could be in their logic.

                            Its easier in the beginning when learning to do straight pips so you know what values to expect, without having to rely on whether or not you also coded something correctly.

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              Mohamed80 @TipsyWisdom last edited by Mohamed80

                              @jsauter86

                              On what basis are you assuming I am learning to trade?!!

                              I am learning to use FX Dreema not how to trade.

                              I have been trading for more than a decade stocks and forex.

                              TipsyWisdom 1 Reply Last reply Reply Quote 0
                              • M
                                Mohamed80 @jstap last edited by Mohamed80

                                @jstap

                                Hi,

                                Thank you for your reply.
                                I do not have a TP as I am leaving it for the trailing. While I was testing my EA in the strategy tester, some positions should have been trailed in a different way. So I resorted back (temporarily) to the Trailing Stop Block without modifying the stops until I get a cue.

                                I had a look at the link you provided. It is an interesting approach to using the flags. I will try the concept.
                                Thanks again.

                                1 Reply Last reply Reply Quote 0
                                • M
                                  Mohamed80 last edited by Mohamed80

                                  @jstap

                                  If you do not mind I have two questions and will be great if you direct me to where to look:

                                  1- For manual trading, let's say I already have current open trades on the chart and some pending orders at different levels. I want to trail whatever is on the chart with the same settings.
                                  So I tried the Trailing Block for each trade and connected it to the No Trade/ Pass / Once per tick/ and other Blocks but it did not work.
                                  https://fxdreema.com/shared/rGHEBVR4

                                  2- What is the final verdict with regard to using ATR as a stop loss.
                                  I do not want you to code it but rather direct me (if you are familiar with the topic) to the most recent verdict. It is a complicated and lengthy issue.
                                  For simplicity, the easiest way is to use custom pips (fraction) and choose ATR with candle ID set to 1 so it can be variable from one bar to another. However, there is a problem with JPY pairs. Hence, other FXDreema users suggested using some formulas and showed the steps. But still, I find it bit more complex and there is more than one approach/formula.
                                  Anyway, I was wondering if you happen to know the most recent say with regard to the use of ATR in a simple manner.

                                  Cheers,

                                  jstap 1 Reply Last reply Reply Quote 0
                                  • TipsyWisdom
                                    TipsyWisdom @Mohamed80 last edited by

                                    @mohamed80 I was asking, to offer to see if you wanted to learn more fast paced, instead of through a forum with hours or days of response time in between.

                                    M 2 Replies Last reply Reply Quote 0
                                    • M
                                      Mohamed80 @TipsyWisdom last edited by

                                      @jsauter86

                                      It's fine. I edited my previous response.
                                      Regards,

                                      1 Reply Last reply Reply Quote 0
                                      • jstap
                                        jstap @Mohamed80 last edited by

                                        @mohamed80 Every block has group numbers, the trail will work with only with whatever group is inserted, the magic number in settings determines what trades the EA interacts with, 0 is manually placed, I think the group number is placed on the end. I would set up different trailing stops to interact with your different groups, I would put magic to 0 unless not interfering with manual is what you require.

                                        In here you will find how to put ATR pips into a variable so you can use for whatever you want.

                                        https://fxdreema.com/forum/topic/12854/help-please-using-atr-as-stop-loss

                                        Hope this helps

                                        Learn fxDreema Without the Wait!

                                        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                                        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                                        Don’t miss out

                                        Click here➡️ https://mybook.to/fxDreema to get your copy today!

                                        Enjoy! 😊

                                        M 1 Reply Last reply Reply Quote 0
                                        • M
                                          Mohamed80 @jstap last edited by Mohamed80

                                          @jstap

                                          Thank you.

                                          1- For the Group number, I have seen it present in many blocks but could not tell how to assign certain pair(s)/trades to a specific group. i.e How to name them Group 1 or 2. The rest is easy as I can reference the Group number later on.

                                          2- The ATR solution is very smart and simple and as I read it works with any pair (Yen or Gold).

                                          3- By the way, does FX Dreema allow manually changing stop loss from the chart after applying the EA.
                                          For example; I have an EA to only trail the stop loss. The trailing starts without issue once I have a stop loss (manually placed). But If I change the stop loss (dragging it up or down), I am not sure if the EA is reacting to this new level or not.

                                          Cheers,

                                          jstap 1 Reply Last reply Reply Quote 0
                                          • M
                                            Mohamed80 @TipsyWisdom last edited by

                                            @jsauter86
                                            I had a chat message from another user who bombarded me with too many questions. My mistake was when I linked your response to his and thought it is the same person. I should have checked first. I just realised this now.

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

                                            Online Users

                                            D
                                            E
                                            J
                                            T
                                            J

                                            23
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors