fxDreema

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

    Modify Stops based on a price level that is reached to set new stop loss and take profit based on that price level

    Questions & Answers
    5
    18
    3651
    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.
    • H
      Hax last edited by

      Hi All,

      I am trying to use the "modify stops" block with a custom "trigger" price level and I can't get it working.

      Once a "trigger" price level is reached, I want to modify an open buy trade so the stop loss is lower than that "trigger" price and modify the take profit to be higher than that "trigger" price.

      Ideally, I want to use the value from a predefined variable(s) to set the distance away from the "trigger" price.

      Every time I try, I get an error that says Invalid TP requested (0.168 for Bid price 109.126). The "trigger" price is around 109.126 because I put "current market price" as the "price relative to". Then I put the variable in for the Take Profit. It seems to use only the value instead of making the value relative to the current market price like market price plus the value.

      Here is the example from my ea:

      https://fxdreema.com/shared/6fuucAEeb

      I'm looking for any solution to modify SL and TP of an open trade once a "trigger" price level is reached.

      Thanks!
      Hax

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

        I recommend you to use the pink blocks. Create a new block tree headed by a 'For each trade' block and thenuse the 'modify stops' block. I think that will fix the problem. I never use the block you use in your 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.

        H 2 Replies Last reply Reply Quote 0
        • S
          seb 0 @Hax last edited by

          @hax
          Hi, custom (price level) take-profit is a level of the price, not a distance. Idk what is your value but if the target is 109.126, this TP should be at least 109.126+0.168.
          So if you wanted like 20 pips distance TP, write 109.326.

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

            @l-andorrà

            HA! As soon as I posted this I found the pink block and I was about to post again and ask pink or blue. Thank you for telling me its the pink box!

            Oh no I have blue boxes all over my project LOL! but they are working. I wonder what is the difference between pink modify stops block and blue modify stops block.

            I will try your suggestion and let you know the outcome. Thanks!

            roar 1 Reply Last reply Reply Quote 0
            • roar
              roar @Hax last edited by

              @hax the difference is that pink blocks assume that you have already selected the trade in question, while blue blocks can select the trade by themselves (or just modify all trades). The selection happens in the dark pink (loop) block, for example.

              Need small help? Tag me in your post
              Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

              H 2 Replies Last reply Reply Quote 0
              • H
                Hax @roar last edited by

                @roar Thanks for the clarification!

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

                  @l-andorrà
                  I tried your suggestion and it worked!!! You have helped me finish my best EA ever!!! It seems to give profit with not too much drawdown, at least that is what my backtests show. I will be forward testing it this week on my live account!

                  Thank you so much!!!!!

                  ps,

                  Do you have any suggestion on how to make all trades close before the market closes?

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

                    @hax You're welcome! 😉 Honestly I prefer not to give any advice on strategies. I'm still trying to find the perfect one so I'm the last guy you should ask help for. 😄

                    (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.

                    H 1 Reply Last reply Reply Quote 0
                    • H
                      Hax @roar last edited by

                      @roar

                      I thought I would send this to you as you have helped me so much. Might work. Daily timeframe only. Thanks

                      https://fxdreema.com/shared/leqyFBBXc

                      roar D 2 Replies Last reply Reply Quote 0
                      • H
                        Hax @l'andorrà last edited by

                        @l-andorrà

                        I understand.

                        I thought I would send this to you as you have helped me so much. Might work. Daily timeframe only. Thanks!

                        https://fxdreema.com/shared/leqyFBBXc

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

                          @hax thank you!

                          This looks quite good, I like this backtest graph. Wish I had better mt4 history data, though... Testing a trailing stop requires very precise tick data
                          0_1590229588823_a72795ad-162b-4caa-9670-df67ade08b3b-image.png
                          edit: BT with every tick data:
                          0_1590241425673_e7721148-c6c6-4937-99b9-fb7aba5f03ee-image.png

                          Need small help? Tag me in your post
                          Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                          H 3 Replies Last reply Reply Quote 0
                          • l'andorrà
                            l'andorrà @Hax last edited by

                            @hax You are welcome. I will give it a try! 😉

                            (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.

                            1 Reply Last reply Reply Quote 0
                            • H
                              Hax @roar last edited by

                              @roar Awesome!

                              It is designed to run on all 28 major pairs. It wins on about 22 of the 28 pairs on a one year backseat. running on multiple pairs I think will make the wins bigger than the losses.

                              I'm having the hardest time trying to get the EA to start 00:58 minutes after market open. I have seen lots of buying power at 1 hour after market open so I want my EA to enter right before the 1 hour mark. Any thoughts?

                              1 Reply Last reply Reply Quote 0
                              • H
                                Hax @roar last edited by

                                @roar

                                Hey nevermind about the 00:58 start time question. I figured it out.

                                FYI my running this on a live account for 2 days and I'm up $300!!!

                                1 Reply Last reply Reply Quote 0
                                • H
                                  Hax @roar last edited by

                                  @roar

                                  There is one known issue with the trailing stops. The way I set up my "modify stops" sometimes causes the rising trailing stop price to be modified back down! So some profit is lost. I will try to fix it in another version.

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

                                    Good for you! Plesase don't hesitate to share it with us.

                                    (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.

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

                                      @l-andorrà Ok I will!

                                      1 Reply Last reply Reply Quote -1
                                      • D
                                        dodita @Hax last edited by

                                        @Hax said in Modify Stops based on a price level that is reached to set new stop loss and take profit based on that price level:

                                        @roar

                                        I thought I would send this to you as you have helped me so much. Might work. Daily timeframe only. Thanks

                                        https://fxdreema.com/shared/leqyFBBXc

                                        Hello! Can you send me this EA mp5 to my gmail. Thank you very much
                                        Gmail: hotelandresorthalong@gmail.com

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

                                        Online Users

                                        S
                                        A
                                        B
                                        A
                                        J

                                        14
                                        Online

                                        146.7k
                                        Users

                                        22.4k
                                        Topics

                                        122.6k
                                        Posts

                                        Powered by NodeBB Forums | Contributors