fxDreema

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

    Running on Multiple Forex pairs

    Questions & Answers
    2
    30
    13478
    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
      MartinvE last edited by

      Hi,

      I am a new one on FXDreema but can you explain me how i use the same EA on 9 different Forex Pairs.

      Is this Forum the only way to communicate or is it possible to have a one to one consult ??

      Kind regards,

      Martin van Essen

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

        I believe you already know about the chat and the Contact (email) form.

        There is something called "Magic number". Because you have single pool of trades and orders, if you want to run multiple EAs they must know which trades and orders are theirs. Otherwise it will be like playing soccer with all the players with the same shirts.
        So, this "Magic number" is actually a hidden attribute of each trade and order, which helps the EA to identify those created from it, and not bother all the others (if any).
        When adding EA created with fxDreema to the chart, there is input parameter called "MagicStart". This is almost Magic number. Here is a little bit more about this topic: http://fxdreema.com/documentation/proje ... d%20groups

        BUT if there is no chance to have two trades from the same pair created from different EAs, you don't need Magic number, because the EA can filter it's trades by their pair (aka Symbol, aka Market). Everything depends on the situation. Check in options in blocks like "No trade is running".

        If you want to use one and only EA to work with multiple pairs... well, this might be not so good idea, but it also depends.
        You can find [Set "Current market" for next blocks] that will do like it says, so this is almost like working with multiple pairs with the same EA. But because that EA is opened at certain pair, and this block will be placed under "on Tick", it will work only when a new tick comes to the pair where the EA is placed.

        By the way, MT4 tester is not capable to backtest on pair different that the chosen one.

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

          Hello Again, the thing with the Magic numbers is solved.

          I am a lot further now but i want to ask you one thing.

          I made a great trading system but i have the following problem:

          I trade on a sort of close and reverse. The trade begins when 3 conditions are true. I start with a stop loss of 30 pips.
          Then when the trade is 25 pips in profit it has to activate something that 90 % of the trade will be closed when it goes back to break even.
          So in all times 10 % of the trade must be left in it till its close and reverse signal.

          Can you explain me how to do that ??

          Many thanks in advance,

          Martin van Essen.

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

            This depends on many things. You use MT4 or MT5? You must also know that MetaTrader has a parameter called "Lot Step", so if it is 0.01, you can open 0.01, 0.02, 0.03 lots, but not 0.0123, 0.025. So, if you want to close 90% of 0.02 lots, this can't happen just like that - you can close 0.01 or 0.02 lots in this case. If you have 0.1 lots and you want to open 90% of it... it can probably happen.
            Closing part of the trade happens by closing the whole trade and then opening another one (in MT4). The new trade is with a new ticket, but stops remain.
            There is a block named "(in loop) Close part of volume", but it must be used with "Start trades loop" block. You can study these pink blocks, with them you can create a loop and do many custom things with trades.
            This is very basic example, without any conditions: http://fxdreema.com/shared/Xw4BJCPyd
            Once per trade block is optional. You can try without it to see what will happen 🙂

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

              Is it all right with you to send a screenshot of my System.
              You understand my question better than i think.

              Thanks,
              Martin

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

                Hi, here is my screenshot.

                I hope you understand my question.

                Looking forward to your answer.

                Kind regards,
                Martin

                ......
                System Martin.jpg

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

                  I forgot about the blue block...

                  If there are 2 or more trades at the moment, the blue block does the same thing to all of them (or depending on the filter settings). It has a loop inside that picks each one of them one after another, checks if it match the filter and does what it is supposed to do.

                  Pink blocks that contain (in loop) - these blocks MUST work with "Start trades loop", "Start pending orders loop" or "Start history trades loop". With one of these 3 blocks you are creating a loop, which picks available trades/orders/history trades one after another, and with "(in loop)" blocks you do certain actions with the picked one.

                  Let's say you use with trades and there are 2 trades at the moment. You place "Start trades loop", and this block will be self-executed 2 times per tick and it will execute the blocks that follows 2 times. First time for the first trade, second time for the second trade. If there are 100 trades - it will be self-executed 100 times per tick!.

                  Blue block named "Reduce volume sie of each trade" contains that loop inside. But you sholud not mix the work of this one and the pink blocks.

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

                    By the way you can remove "Once per tick" block, everything already happen once per tick when your blocks are under "on Tick". This block has another rare functionality, but in in your case it's just not needed. Also you don't need "AND" blocks if you connect 3 conditions in a row. Now the EA executes all the 3 condition (actually 6), and then asks if all of them are true. If you connect them one after another and the first one is not true -> next will not be executed because there is no need of that. "AND" block is also with rare functionality.

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

                      Thank you for your reply.

                      But i will explain it a little bit more here.

                      First of all with this system there will be no more than one trade at the time.
                      It is based on a close and reverse system.

                      Here comes the staps:

                      1. We start with a trade when 3 conditions are true (buy or sell)
                      2. When it goes the wrong way, it will close 90% of the trade at 15 pips loss. (VERY IMPORTANT: It may not close the hole trade because the 3 conditions may still be true and it will trade again the same direction.)
                      3. However when it goes the right way and hits the 15 pips profit level (block 49) it closes 40% of the trade in profit.
                      4. When the trade hit this level it can easy go back the wrong way and it is possible to reach the level of 15 pips in loss.
                      5. I want to prevent that situation by doing the following: When the trade hits the 15 pips profit level (block 49) the value of block 50 has to change from 15 to 1 pip in loss.
                      6. I can't do it with a trailing stop or stop loss because both of them close the hole trade.

                      I hope you can help me out with this.

                      Regards,
                      Martin

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

                        There is no matter how many trades there are, all the rules are the same with 1 or 1000 trades.

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

                          Another thing. When you connect 2 or more blocks in parallen out of some block, they will all be executed. In your case, 49, 55 and 64. The problem is that if you are 60 pips away from the OP, all 3 of them will be true. Because of that these blocks can be connected one after another from their yellow outputs.

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

                            I am very sorry but i realy don't think you understand my question.

                            It is not about multiple trades.
                            I have only one trade at the time.

                            The only thing i want is to change a level when another level is hit.

                            Do you have skype ?

                            Maybe i can explain it to you.

                            Regards,
                            Martin

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

                              My point is that no matter how many trades you want to use, the blocks configuration is the same.

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

                                So skype is not an option because other wise i can't tell you what i mean.

                                I tried it in a screenshot and a few steps.

                                But i think you understand me wrong.

                                I think FXDreema is a GREAT program and i overlook something because i am not a computer programmer as you are.

                                Martin

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

                                  Skype is not an option because there was someone that I was added before... and... let's say that I prefer to use Skype only for personal reasons.

                                  Maybe I understand what you are trying to do because I have seen this situation before, but I imagine myself as someone that helps in questions of how to use the platform - blocks, connections, basic things. I don't prefer to build a whole EA for someone, this is not the idea. But there are people that can do this for you right here: http://www.mql5.com/en/job
                                  I prefer that you (and all the people here) understand how to connect blocks. Because if you don't know, for example, what a loop means here, and if I made a single EA for you... the next day you will ask me to do another one for you, and then another one... but again, I don't see myself as a personal programmer, my role here is to help in the process of building EA's by creating a tool for this.

                                  Programmers deal with 2 things basically - logic and code. Fxdreema eliminates the need to know code, but the logic remains. That's why I am trying to explain you the logic behind the blocks that you are using... and I can clearly see that now it's not the exactly right, or at least can be made better.

                                  By the way I recommend "Draw arrow" block as a tool to understand "where you are" after some block or blocks.

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

                                    Hi, i understand about your skype. That is not an option.

                                    And no, i don't ask you to make a complete EA.

                                    My EA so far is perfect. Exactly what i want and tested allready. It works perfect.

                                    The only thing i am missing is that i want to change one level in block 50, but only when block 49 is one time true.

                                    The rest is good.

                                    Thanks.
                                    Martin

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

                                      And to use values that can change in time, which are also known as "variables", you can use "Variables". You can check "Variables" just below the project name, block "Modify Variables". There is another option - "Formula" block.

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

                                        Hi FXDreema,

                                        We are a day further now and i have searched the whole internet and your forum but i can't find what i am looking for.

                                        So i made a new drawing.
                                        I hope you can help me out with this.

                                        Kind regards,
                                        Martin

                                        ......
                                        Question.jpg

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

                                          I already told you in this topic that you have missing block that is important - "Start trades loop".

                                          You can also check "Flags" category. Check "Variables" again, and "Formula" block as well <= these are all ways to set/read variables (or "keys" in your words)

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

                                          Online Users

                                          G
                                          K
                                          P
                                          M
                                          M

                                          14
                                          Online

                                          146.7k
                                          Users

                                          22.4k
                                          Topics

                                          122.6k
                                          Posts

                                          Powered by NodeBB Forums | Contributors