fxDreema

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

    NOTHING working on .EX5

    Questions & Answers
    2
    32
    7796
    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.
    • O
      owneroxxor last edited by

      Dear FxDreema,

      Here is my program:

      https://fxdreema.com/shared/vDWxunSV

      Please, lets take a closer look on it. It's not working AT ALL. I mean I don't know if I'am still a n00b on this and I'am not understanding anything, or none of the condition blocks just don't work for MT5.

      Let me explain the bugs I'am facing:

      block 1> Time filter for the trades: the EA works from 10:00 until 17:55. %(#FF0040)[<NOT WORKING>]
      explanation: when the condition is FALSE (after 17:55), It's not closing any of my trades (positions) as it should do (blocks 23 and 22).

      blocks 10 and 9 > Blocks which calculate the S/L and T/P of the trades%(#40FF00)[ <WORKING>]

      block 24 > Filter to only have ONE trade at a TIME. %(#FF0040)[<NOT WORKING>]
      explanation: I want my EA to only have ONE trade at a time, not more than one. The block 24 should prevent it from opening more than ONE position at a time, right? The problem is, the EA keeps opening a vast a mount of trades one after another without closing the previous. Why is it?

      blocks 4,12,14 and 19 > Condition to open the trades. %(#FF0040)[<NOT WORKING>]
      explanation: my strategy is very simple: if, at any giving time of the day, if the price crosses above the high of the first HOURLY candle of the day (10:00h candle). It buys 1000 pieces. If the price crosses down through the low of this candle, it shorts 1000 pieces. The same goes to the blocks 14 and 19, which make a hand shift, I mean, if for exemple I got a LONG position opened and the price cracks through the low of the 10:00h candle at any giving time of the day, the EA should close the losing LONG position and open a SHORT. The problem is, It's not working. It seems that the EA is opening positions RAMDOMLY, and not closing positions for the hand shift. not following the strategy I just told you. Basicly, NOTHING is working here. How we can explain that?

      Thank you.

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

        block 1 - "Time filter" works for me. I connected "Draw Arrow" to it and everything was expected. And the EA produces this result: http://prntscr.com/a6xomt It looks that something starts to happen at 10:00 and ends near 18:00.

        block 24 - this is also working fine. The problem is that you have second path to reach "Buy now" and "Sell now", which is block 25. If you disable block 25, then you got this: http://prntscr.com/a6xqbq

        block 24 and block 25 are connected from the same source - block 9. Because block 24 has lower number, it does it's job first. It's job is to run blocks 4 and 12. Block 4 is checked and then block 12 is checked. If one of them is true at that time => one new position is created. If both of them are true at the same time, the EA will Buy and then Sell.
        Let's say that you only got one Buy position after blocks 24->4->5. The next block to run is block 25. What follows are two Condition blocks and they are the same as 4 and 12. Because 4 passed, now 14 will pass. The position that you just got is losable, so it is closed by "Close losable positions". Then you create a new position again. And all this happened within one tick.

        On the next tick block 24 will not pass, but block 25 passes and once again, the position that exists is closed and new one opened. And this repeats over and over again or every new tick.

        1 Reply Last reply Reply Quote 0
        • O
          owneroxxor last edited by

          First, Thank you for the response.

          I've changed the code to make it simpler. Now it does not have position opening limitations. Please take a look:

          https://fxdreema.com/shared/pFgrEfi6c

          block 1 > %(#FFFF40)[<PARTIALLY SOLVED>]
          Yes, I think it's working. Anyways, there is something going on here. There are positions that are closing more than 15 minutes AFTER the limit time I configured. Exemple:
          [LIMIT TIME CONFIGURED] -> 17:30.
          Some positions are getting closed 17:45, others 17:31, why is it?

          block 24 > %(#80FF00)[<SOLVED>]

          blocks 4,12,14 and 19 %(#FF0040)[<NOT SOLVED>]
          Ok, I've made changes to the program, in order to focus only on the entrance of the positions:

          [LONG] - as soon as price crosses the 10:00h candle's HIGH
          [SHORT] - as soon as price crosses the 10:00h candle's LOW.

          It's still not entering in the right time, as you can see in the below SS:

          http://prnt.sc/a6zq2x

          The pink circle is around the 10:00h candle, and it's HIGH price is: 0.55 as you can see in the left side of the SS. After two hours after this candle (at the candle ID 0), we have a cross through this 0.55 price level, and a position was not taken that day.
          How can it be explained?

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

            Why is this? http://prntscr.com/a7iok1

            1 Reply Last reply Reply Quote 0
            • O
              owneroxxor last edited by

              block 1 %(#40FF80)[<SOLVED>]
              block 24 %(#40FF40)[<SOLVED>]
              blocks 4,12,14and 19 %(#80FF80)[<SOLVED>]
              changed the CROSS "x>" to IS GREATER THAN ">" and it started to work
              "Price of the last deal" is working as well.

              If I have any doubts, I tell you.

              Thank you so much!

              1 Reply Last reply Reply Quote 0
              • O
                owneroxxor last edited by

                I'am having a really critical error right now, correct me if I'am doing something wrong... 😠

                my program:
                https://fxdreema.com/shared/2QHMHd95

                I'am calculating two values of S/L (variables: "sl" and "sl_per") and the TP (variable: "tp") before making my order.
                The problem is: the calculated S/L and T/P variables result in a GIANT value e^308 as you can see in the below SS: where they got printed by the block 106 when the conditions were met.

                http://prnt.sc/a7vipo

                I don't know what the blocks 107 and 108 are doing, but something got to be wrong there. It's a simple math. 😎

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

                  Tell me what name to give to those "Terminal Variables" to prevent people from using them? 🙂

                  http://prntscr.com/a7yfq5

                  1 Reply Last reply Reply Quote 0
                  • O
                    owneroxxor last edited by

                    try to put this: <TRAP> <DONT USE> LOL

                    thank you for the answer, using numeric->value now.

                    Ok, here goes more one: 😏

                    trying to make this an input to optimize the EA (free kind):

                    http://prnt.sc/a8ab0x

                    but the input doesnt appear into MT5 EA's configuration. 😢

                    http://prnt.sc/a8abx4

                    BTW, how can I select some variable, from the global variables, to be an optimizable input?

                    Thanks

                    1 Reply Last reply Reply Quote 0
                    • O
                      owneroxxor last edited by

                      Is it possible to build a MULTI CURRENCY/STOCK EA on fxDreema? I mean, is there a way to backtest the EA on all currencies/stocks on the "Market Watch List" %(#BF00BF)[at the same] time optimizing the inputs? 8-)

                      Just like this guy did:

                      http://metatrader5.blogspot.com/2010/07 ... -with.html

                      thank you man! 😁

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

                        __try to put this: <TRAP> <DONT USE> LOL

                        thank you for the answer, using numeric->value now.

                        Ok, here goes more one: 😏

                        trying to make this an input to optimize the EA (free kind):

                        http://prnt.sc/a8ab0x

                        but the input doesnt appear into MT5 EA's configuration. 😢

                        http://prnt.sc/a8abx4

                        BTW, how can I select some variable, from the global variables, to be an optimizable input?

                        Thanks[/quote:1b5ck3d3]

                        Don't use this checkbox. I don't know why it appears to be active there, but normally it isn't. The Adjust field can contain MQL4 code, it's not just a global variable with simple value

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

                          __Is it possible to build a MULTI CURRENCY/STOCK EA on fxDreema? I mean, is there a way to backtest the EA on all currencies/stocks on the "Market Watch List" %(#BF00BF)[at the same] time optimizing the inputs? 8-)

                          Just like this guy did:

                          http://metatrader5.blogspot.com/2010/07 ... -with.html

                          thank you man! 😁[/quote:2yx1c3m1]

                          This topic is for MetaTrader 5, but check this for MetaTrader 4 - https://www.mql5.com/en/articles/1512

                          __Trading is permitted for the symbol under test only, no portfolio testing
                          Attempts to trade using another symbol will return error[/quote:2yx1c3m1]

                          1 Reply Last reply Reply Quote 0
                          • O
                            owneroxxor last edited by

                            I think I didn't get it. I'am constructing an MT5 EA right now, not an MT4 one.
                            As I saw that guy who made the Multicurrency EA for MT5, I came here to ask you: is there a way to do what he did with fxDreema?

                            here is his Multi Currency MT5 EA, you can download it and test it by yourself:
                            http://sites.google.com/site/metatrader5info/metatrader-5-ea-s/GurooMultEx03_mod.mq5?attredirects=0&d=1

                            here is the proof that his EA is executing orders on multiple currencies:
                            http://2.bp.blogspot.com/_n3zFhUAFFR8/TEsLy3x52lI/AAAAAAAAAXI/AatZ4V0ICTQ/s400/Multi-Currency+Strategy+Testing+with+MetaTrader+5_5.PNG

                            and here is the proof that MT5 is optimizing the EA at the same time:
                            http://2.bp.blogspot.com/_n3zFhUAFFR8/TEsLzZejWqI/AAAAAAAAAXQ/0B0uqR28g4o/s400/Multi-Currency+Strategy+Testing+with+MetaTrader+5_4.PNG

                            The thing is:** I want to keep the optimizable feature of the EA's backtest, testing it through multiple symbols that I want at the same time**

                            As is known:
                            __One of the big advantages of the new Metatrader 5 strategy tester is the option to backtest multi-currency EA's. This was not possible in MT4. The testing and optimization process of an multi-currency expert advisor is the same as with other EA's. Metatester 5 will automatically read the code for multiple-symbol testing. The optimization results ad the equity curve will combine all symbols in one result.[/quote:paipka8x]
                            So, let me redo the question then:
                            Is it possible to create an MultiSymbol-Optimizable EA for MT5 through %(#BF40BF)[fxDreema]?

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

                              Well, in this case - yes. If you write GBPUSD in some block and then use the EA in EURUSD, it will work. If there is a problem, it would be something else - how to make multicurrency project without copying the same group of blocks over and over again for each symbol. There is a block "Set "Current Market" for next blocks" to help with this... probably.

                              1 Reply Last reply Reply Quote 0
                              • O
                                owneroxxor last edited by

                                __Well, in this case - yes. If you write GBPUSD in some block and then use the EA in EURUSD, it will work. If there is a problem, it would be something else - how to make multicurrency project without copying the same group of blocks over and over again for each symbol. There is a block "Set "Current Market" for next blocks" to help with this... probably.[/quote:2z3iw0u3]
                                So here we go:

                                trying to make the Multi-market EA. Here it is:
                                https://fxdreema.com/shared/7REkRjpae

                                getting the following errors:
                                http://prnt.sc/a9ewik

                                When I remove the "Set the current market for next blocks" block, the error desapears. In other words, if I disable the EA's Multi-market capability, it works. So, how can I do it doctor Dreema? 😎

                                1 Reply Last reply Reply Quote 0
                                • O
                                  owneroxxor last edited by

                                  It seems that it is a division by 0, when I calculte the POSITION SIZE at block 899. The formula is: POS_SIZE = 5000/(last deal price).
                                  The EA is not filling the "last deal price" variable (last_deal). So I put a fixed position size. Ok, the error is gone. But now I have another: http://prnt.sc/a9f9op

                                     
                                     //-- now calculate the candle ID, it is relative to the current time
                                     if (mins_diff > 0) {
                                        CandleID = (int)MathCeil((double)mins_diff/(double)mins_tf);
                                     }
                                     //Print(TimeToStr(TimeCurrent())+" "+TimeToStr(time_stamp) +" :&#58;&#58; " + mins_tf + " " + days_adjust + " " + (days_adjust*1440/mins_tf) + " " + CandleID);
                                     
                                     
                                     //-- now, after all the shifting and in case of missing candles, the calculated candle id can be few candles early
                                     // so we will search for the right candle
                                  

                                  Another division by zero at the line: "CandleID = (int)MathCeil((double)mins_diff/(double)mins_tf);".

                                  Why am I getting all those division by zero in my EA? 😈

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

                                    http://prntscr.com/aafc35
                                    This thing appears to be 0. I can admit that I have no idea what this value is. It comes from here - https://www.mql5.com/en/docs/constants/ ... oconstants - search for SYMBOL_LAST. It is described as "Price of the last deal" and back in the day I added it in "Condition" just because it exists in the documentation, but what it does... I don't really know.

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

                                      http://prntscr.com/aaffs7
                                      Try to set this string value as 00:00

                                      1 Reply Last reply Reply Quote 0
                                      • O
                                        owneroxxor last edited by

                                        Simply not working.
                                        __This thing appears to be 0. I can admit that I have no idea what this value is. It comes from here...[/quote:31ipopry]

                                        • Already changed to "Bid" As you can see : http://prnt.sc/abh9mz
                                          __Try to set this string value as 00:00[/quote:31ipopry]
                                        • Already initialized the variable with 00:00 As you can see: http://prnt.sc/abhapt

                                        Dreema, help me with this.

                                        Remember: If I remove the "Set market for next blocks" box from the EA, the zero divide erros wipe out. So, there is some bug happening with this block probably. This block is KEY for MT5 users Dreema. This block mean I can build an EA for every market, optimizing at same time through %(#BF00BF)[fxDreema]. For me and for many other MT5 users, this block is KEY.

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

                                          I don't know what is the problem now, but I assume that no trades are created. In my tests I can't pass blocks 9 and 10. Are you sure about the value of adjust_entrance? If I print the values with which both conditions (9 and 10) are working with, I have this:
                                          http://prntscr.com/aboj9o
                                          I used these blocks to print this - http://prntscr.com/abokfb
                                          adjust_entrance is 0.03 and this is 300 pips. I was working on H1, but even for Daily in EURUSD this is sometimes a big number.

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

                                          Online Users

                                          H
                                          R
                                          A

                                          7
                                          Online

                                          146.7k
                                          Users

                                          22.4k
                                          Topics

                                          122.6k
                                          Posts

                                          Powered by NodeBB Forums | Contributors