fxDreema

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

    How can I do 3 or 4 strategies within the same robot.

    Questions & Answers
    4
    11
    2082
    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.
    • L
      luisjunior1224 last edited by

      How can I do 3 or 4 strategies within the same robot.

      and how can I have the possibility to turn off or turn on each strategy separately to optimize each one separately in the backtesting

      then once optimized each one by serparado ignite them all.

      Examples please, I think this will help the community a lot.

      Luis Martinez

      T 1 Reply Last reply Reply Quote 0
      • T
        trader.philipps @luisjunior1224 last edited by

        @luisjunior1224 Well, that really depends on how different your strategies are. If you build it like 4 different EA for instance, with separate entry and exit paths, you might use boolean constant variables in combination with turn on / turn off blocks for instance. This you are able to switch on a specific strategy (or more) in the EA settings.

        If you want to "reuse" some parts of the EA throughout all the strategies you should separate the different phases of the trades.

        1. Entry condition(s) (including maybe trading hours, max spread, etc)
        2. In-trade management (such as set to BE, trailing, news)
        3. Exit condition(s)

        If your strategies only differ on entry conditions only for instance, you'd use turn off/turn on blocks and the boolean constant only for the different entry conditions.

        Here is a rough example how that may look!

        0_1575956208787_d3e2e6e1-c6e1-47cc-98cc-ce0926488aa6-grafik.png

        I simplified it a bit for the screenshot. I'd run the paths of block 1 and 2 afteranother on init tab rather than on the on tick tab, but like that I could place all in one screenshot.
        Pleas also note that all blocks 4 to 7 are switched off by default and the conditions from block 1 and 2 would switch them on depending on EA parameter settings.

        I like to share my knowledge, but expect the others to contribute as well.

        L 1 Reply Last reply Reply Quote 0
        • L
          luisjunior1224 last edited by

          thanks for your answer, but I'm afraid I didn't understand anything brother.

          Luis Martinez

          T 1 Reply Last reply Reply Quote 0
          • T
            trader.philipps @luisjunior1224 last edited by

            @luisjunior1224 Okay, so maybe start with describing your strategies and than we will figure out the differenrent trade states (open signal, in trade, close) accross them.

            I like to share my knowledge, but expect the others to contribute as well.

            L 1 Reply Last reply Reply Quote 0
            • T
              Tom 5 last edited by

              A disadvantage for backtesting 3-4 strategies in ONE single EA i found out is, that the backtests needs waaaay longer than if you backtest them single. To backtest i would test them separately, but later it makes sense to put them together.

              "First learn! Then earn!" or "As more you learn, as more you earn."

              1 Reply Last reply Reply Quote 0
              • L
                luisjunior1224 last edited by

                I want to do 3 or 4 strategies in 1 single robot.

                but for the backtesting process I want to have the option to turn off or turn on each strategy to optimize 1 to 1 and then have it turned on all of them so that they work together all at once

                Luis Martinez

                1 Reply Last reply Reply Quote 0
                • L
                  luisjunior1224 @trader.philipps last edited by

                  @trader-philipps I want to do 3 or 4 strategies in 1 single robot.

                  but for the backtesting process I want to have the option to turn off or turn on each strategy to optimize 1 to 1 and then have it turned on all of them so that they work together all at once

                  Luis Martinez

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    trader.philipps @luisjunior1224 last edited by

                    @luisjunior1224 It does not help if you repeat your aim a lot of times. You might specify your strategy in order to get started. If you're not able to specify your strategies, my answer you can read above as that's the way to do it

                    I like to share my knowledge, but expect the others to contribute as well.

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

                      under controlling blocks bro. toggle on off,,, hit the little tick tho so you can use in mt4.

                      1 Reply Last reply Reply Quote 0
                      • L
                        luisjunior1224 @trader.philipps last edited by

                        @trader-philipps I did what you told me, or at least I tried.

                        But even if you put false in the configuration in mt5 as you want the strategy works the same way
                        https://fxdreema.com/shared/oh7QBx4qb

                        0_1576651593319_ff22860c-bc9c-43dc-8e67-1c2a18f1d7c1-image.png

                        Luis Martinez

                        1 Reply Last reply Reply Quote 0
                        • T
                          trader.philipps last edited by

                          Turn of the 2 blocks 1 and 2 first (right mouse click ON / Off) it must look like in the screenshot

                          0_1576773116245_c8fcc796-e53d-4cda-834d-d634363d6c09-image.png

                          I like to share my knowledge, but expect the others to contribute as well.

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

                          Online Users

                          A
                          A
                          E
                          B
                          M
                          J
                          B

                          18
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors