fxDreema

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

    Managing open orders on multiple timeframes

    Questions & Answers
    2
    8
    308
    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.
    • D
      DV4 last edited by DV4

      Hi All,

      I've written an EA which creates entries and stop losses but the target is based on hitting a live moving average

      One issue I unexpectedly found in testing was that if I use the EA on multiple timeframes it has created order management issues

      i.e.
      Opens trade on 1hr chart, but because the EA is also on the 15min chart it then closes the 1hr trade on the 15min MA being hit, which means I'm taking profits far too early and negatively impacting R:R ratios

      On their own they work fine on 1 timeframe but I want to test multiple currencies and timeframes together to see what the performance, impact to margin and correlation looks like

      How do i manage orders so that the order can be tied to the timeframe that the order was opened on? and only exit when it hits that timeframes MA target?

      I've considered placing objects on the chart or using comments in the order line and making the closing conditions subject to finding these but I'm relatively new to FXdreema and so far have been unsuccessful

      Any help appreciated!

      1 Reply Last reply Reply Quote 0
      • D
        DV4 last edited by

        I'm using the If Trade (open buy or sell trade) -> condition (crosses MA) -> Close trades

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

          @DV4 You can specify the active MA timeframe within the condition block:

          01.png

          (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
          • D
            DV4 last edited by

            Thank you for your reply!
            Although it will still use close all trades in box which is probably net the right way to manage open orders
            This will only trigger a close order message but how do I tie that to a specific order that was generated only on that timeframe?

            image.png

            1 Reply Last reply Reply Quote 0
            • D
              DV4 last edited by

              I think the issue is that the signals to close happen on different timeframes but the trades are already open, this is more of a managing open orders issue and tying them to specific timeframes only and leaving other timeframe orders intact

              i.e.
              1hr chart trade opens, its looking for MA cross on 1hr chart,
              EA is running on 15min chart as well, it see that there is a trade open
              prices crosses 15min MA and closes the 1hr order

              I'm not sure how to keep these separate other than not trading multiple timeframes on the same MT4 account?
              I'm open to any other suggestions?

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

                There are 2 way to do that.

                1. Use the same bot on different charts per TF and use different magic numbers.
                2. Use one only bot on one chart but then you will need a custom code array to identify the ticket number of each different TF to identify each trade.

                (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
                • D
                  DV4 last edited by

                  Your a legend, l'andorra - great advice, I will amend the magic numbers and hopefully that will fix it!
                  I'm a noob EA coder so relatively new to managing EAs in practice

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

                    You're wlecome, man! 😉

                    (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
                    • 1 / 1
                    • First post
                      Last post

                    Online Users

                    L

                    11
                    Online

                    146.8k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors