fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. fxDreema
    3. Posts
    • Profile
    • Following 0
    • Followers 693
    • Topics 23
    • Posts 7308
    • Best 258
    • Controversial 18
    • Groups 1

    Posts made by fxDreema

    • RE: Limit trades

      Well, I found that unfortunately the example above is very slow. I always try to find a solution that can work with some kind of permanent memory - to use the trades themselves, maybe some objects. But the results are often very slow. Here is another idea that uses a single Variable, which is a temporary memory and that EA would reset if restarted, but the backtesting is much faster: https://fxdreema.com/shared/yqieqWzAb

      The idea is that the variable keeps the number of opened trades - when a new trade is opened, the variable increments. And the variable is reset back to 0 when the fast MA is above the slow MA.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Limit trades

      From what I understand, once the yellow MA is below the red MA, maximum 3 trades are allowed, no matter for how long the yellow line is below the red line. Then, when the yellow line goes above, everything resets and we are waiting for it to go below the red line again.

      Probably the best way to do this is when the yellow line is below, to count for how many bars it was below. While doing that, also count how many trades were closed in that whole period. If they are less than 3 - continue and make a new one. But thΠ΅ EA Builder is not very good at making such loops. There is a block for making a loop (basically repeating itself multiple times), but there is no block for breaking this loop (to stop it), which is needed. Otherwise there is a block "(loop) break", but it works only for those "For each..." blocks right now.

      Here is another idea: https://fxdreema.com/shared/OpEWBBHjc
      Here I detect the cross with blocks 1 and 2 and I create an arrow with name SellSellSell (block 3). Additionaly I create one vertical line, only to then see where crosses happened. If there is no trade I search for that object SellSellSell. If there is none, nothing else will happen. But if there is one, I count how many closed trades were closed after the object (blocks 6 and 7). The object's Time property is used for that (in block 6). And if less than 3 trades were closed, I can create a new one (blocks 7, 8 and 9). Block 8 is whatever the extra condition needs to be, I chose something simple for the example. Otherwise I delete the SellSellSell object (the link between 7 and 10). Technically I can Not delete it here, but I guess this could help a little bit with the speed of testing. I also delete the object when the fast MA is > the slow MA (blocks 11 and 10). I can use crossover for this as well, but imagine that the EA is restarted... I just want to be sure.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: ARRAY OUT OF RANGE AND ERROR 4754 <<<SOLVED>>>

      This error happens in part of the code that is responsible for detecting the Trade events. I recently rewrote that code and I'm more confident with the new one. I will update it very soon πŸ™‚

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Loading issue Firefox

      The problem is not in the browser, it's in the number of projects. You reached some count of projects that maybe causes the platform to respond in a weird way. I actually never tested this situation, I didn't even expected it.

      Here is the thing... if you open the list of projects, you can see that each of them has some number like mt4-1234. It's "mt4-" followed with 4 digits. When the platform is creating a new project, it tries to find available number that is not yet used between the numbers of 1000 and 9999. And I think you used all numbers available.

      In the database I can count that you have 9036 projects. Something like 9000 of them are for MT4 and there is a small number of MT5 projects. There is another limit of maximum 10000 projects to be made per person, that's why you will probably be capable of creating a new MT5 project, but not MT4.

      I will not raise the limit. In fact, I want to lower it, but you and few other people have few tousands of projects and I can't just lower the limit like that. But because I will not make it bigger, then I can say that what you can try is to maybe delete some old projects πŸ™‚

      posted in Bug Reports
      fxDreema
      fxDreema
    • RE: will the fxDreema be further developed?

      @fxfun said in will the fxDreema be further developed?:

      I have tried to copy blocks around.

      The thing is, in the programming world copying stuff over and over again is very bad practice. That's why I'm not thinking how to make that happen easily. Instead, blocks (or groups of blocks) should be reused. In programming languages there are functions and classes that can be reused. But people who are using this website are mostly non-programmers, so even if there is an easy way to somehow reuse blocks, try to teach them to do it that way πŸ™‚ It's much easier to just copy and paste, because you immediately see the result. To think about how some groups of blocks are reused, this is hard for regular people.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: will the fxDreema be further developed?

      Hi all. I was also thinking about many possible features through the years, but I guess I really hit some ceilings. The main problem is lack of motivation to do anything. The website generates good profit for my country and even if I want more (as any person in the wold), I don't need more profits. There is a difference between want and need here, and the difference is I guess in the desire to make more πŸ™‚

      Unfortunately (or not), I don't see competition from other websites... not that I'm looking if there is any. I'm saying this because I was thinking that something like this can motivate me, it's good to have some competition. But if I don't see any, the other trap is that I think that the website is the best it can be and there is not real need to do more. Also, adding more features means more features to be maintained in the future, to which my brain automatically says "no".

      So I don't know really. I also prefer to be motivated and do more, but the psychology is stronger than that. Otherwise I'm doing stuff in the background. The database as it is now is not constructed very well and I'm working on a new way to write the data on it. This is what I'm mostly doing - bettering the code of the website itself. But even this I'm doing slowly.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Issue backtesting two pairs on MT5

      The problem happened to me, I saw it, here is how my trades looked:
      0_1593175921279_d66550a4-94c6-4b83-927e-e4bb39d73a56-image.png
      This is how it should look:
      0_1593175982892_46c1509c-eb14-46d1-9057-6997ad1d65ac-image.png

      Eventually while I was investigating the problem in MetaEditor, it disappeared. Now it works for me and I wonder how to cause the problem again

      posted in Bug Reports
      fxDreema
      fxDreema
    • RE: Problem selecting variables

      Yes, it is a bug and it happens when you hit Update when the parameters of both blocks are opened. Somehow the variable of the other block is taken. This could be easy fix, I will try to fix it. Otherwise it works fine when you have only 1 block parameters opened at the time of hitting Update.

      posted in Bug Reports
      fxDreema
      fxDreema
    • RE: Buy and Sell Button Don't Work on Current Chart

      I tried this one and it works for me: https://fxdreema.com/shared/VMwxP2Odd
      But I manually change the symbol by dragging different symbol over the chart.

      I found another problem, that if I use "Market Properties -> Name: Symbol", only the initial symbol name is printed. But otherwise the button click is detected.

      Do you see some error messages or for some reason the button name is changed?

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: sell or buy according to the size of the wick or trail of the candlesell or buy according to the size of the wick or trail of the candle

      There is one block "Single candle template" where you can check such proportions of a single candle.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Condition to trade when MACD goes above and below 0

      You mean both lines or only the Signal line? If both, then another Condition will be needed. I don't know about the crossover sign. You say "above" and "below", maybe you just want to check whether or not the lines are above or below, even 10 candles after they crossed the 0 level. In this case use > and <

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Get the balance from the history tab ?

      @fabiobioware said in Get the balance from the history tab ?:

      @roar The profit I want to check is daily.
      For this I am filtering on the metatrader itself.
      The problem is that this balance appears on the screen.

      For the daily profits I made this block "Check profit (period of time)". As it name suggests, it checks the profit that is made in certain period of time. There are Time 1 and Time 2. By default Time 1 is 00:00 at the current day and Time 2 is the current time.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Is there a condition that can be created in response to an EA taking profit??

      The Condition block takes 2 values and compares them. If you know what values you want to compare, select them on the left and the right side of the block.

      There is one for the profit in "Account", it's called "Profit (Equity - Balance)" and obviously it gives you the difference between equity and balance. Balance is ouf course the last known money you had the last time when you had 0 opened trades.

      Otherwise you can check how much profit was made out of the currently opened trades with "Check profit (unrealized)". Also there are those Bucket blocks whete you can do the same in a different way... depends on what value you want to check.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Backtesting stops abruptly and I don't know why (but I guess why)

      The error is at line 13490 and 105 is the horizontal position at that line. It's about the lot size and I can tell you what is the problem πŸ™‚

      So, what you have is this:
      0_1577105498279_005b25f6-d3ce-4c13-8ed9-b92d5c3de7bb-image.png

      The thing is, this MM method requires some positive value for SL and you can read that "Volume size depending on Stop-Loss". To calculate the lot size, the size of SL is considered - the bigger the SL, the smaller the lot size. But when SL is 0, then the lot size should be infinity, which is of course not possible, and that's why the error is "zero divide".

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Possible bug in positioning candle in 'future' candles

      I tried this: https://fxdreema.com/shared/OuUNxlf3d And I got an error "array out of range" when the EA tried to get value from future candle. It's because there is no data about the future candle, it doesn't exist. I believe that the Time attribute is like Open, High, Close, Low and Volume, it's connected with the candle, and with no candle there are no attributes.

      You can get the time of the current candle, because that time is rounded, and add seconds to it. The time is the number of seconds since 1.1.1970. Look at this: https://www.epochconverter.com/ The "Comment" block may draw human readable version of the time, but in reality it is an integer number.

      Here is another example: https://fxdreema.com/shared/wreYKAEL
      I use that "shift in time" feature, but instead of using fixed number of minutes, I use Period(). It returns the number of minutes for the current period. If the period is M15, it returns 15. So that way you can put the EA on different period and it will show you the time of the non-existent future candle. You can use 1 * Period() or 2 * Period() or MyVariable * Period(). Even _Period should work instead of Period().

      posted in Bug Reports
      fxDreema
      fxDreema
    • RE: Hello, I just updated my MT5 and all the EAs made with fxdreema have stopped working.

      I'm here πŸ™‚ But give me more details about these problems. One of the reasons I don't like to answer to questions anymore is that for maybe more than 50% of the questions I'm missing the details and I have to guess what is actually happening and ask the person for more details. I like when the question is full and I can understand what the problem is in no time. It's perfect when I can also reproduce the problem easily.

      Here from the question of the author I can only understand that there is some problem with .ex5 files. The title of the topic says that EAs stopped working. Only because some people reported that the new MetaEditor fails to compile some .mq5 files, I know that there is a problem with compilation. But the title doesn't say anything about compilation problems, it says that already compiled EAs stopped working. I tried that on my MT5 and I don't have a problem. So if this is the problem, again, I need more details. Error messages, whatever helps me to understand what is going on.

      I also receive emails every day. I just fixed one compilation problem that happens when the new MetaEditor is used. But I'm personally using the .ex5 button and I don't see these problems, so I'm not even aware that they exist πŸ™‚

      posted in Bug Reports
      fxDreema
      fxDreema
    • RE: Digit Adjustment of Variable ** SOLVED **

      DoubleToStr() function takes a variable from "double" type and turns it into "string". "double" is a floating point number, while "string" is text. So it's not very correct what you are doing. Try NormalizeDouble() instead. The description of this function is like this: Rounding floating point number to a specified accuracy.

      In Adjust there is some trick that you can do. You know that in Adjust you normally start with +, 0, * or /. But you can also do it like this:

      = NormalizeDouble($, 5)
      

      When it starts with =, it's a little bit different. The final value will equal to whatever is on the right side of =. Well, I want to change the value that I got a little bit, not to give it a whole new value, so I use the value itself. That symbol $ is the value.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Calculation drawdown of balance and equity in mql5

      By the way I wrote to the author in email. I will post a screenshot of it here, just in case:

      0_1565894960254_9caa68b3-99d6-4881-87b2-eb24ba98884e-image.png
      https://fxdreema.com/shared/3j3nzX6Hb
      https://fxdreema.com/shared/EfT7mIZqe

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Incredibly slow backtest at every tick..

      In general any generated EA will be slower that the same strategy if you are able to carefully code it manually. This is because the generated EA is full with useless code. My EA builder is not so clever to only include the code that is needed and to optimize it in the best way, so you always end up with bloated slow code. But it should not be too slow... like waiting for hours to backtest one day. It is important what blocks are you running on every tick. Try to connect them in such a way, so the slowest block are running more rarely. Of course, you can't always say which blocks are slower than others... even I can't tell that without testing them. But maybe you are using some custom indicator - maybe this indicator is poorly written and it is too slow. Put that indicator in few blocks and the time stops πŸ™‚

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: i have problem with groups

      Only do that if you want to have something like 2 (or more) different strategies in the same EA. Like 2-in-1. But remember that it is still one EA and if the strategies are completely different, it's better to just make two separate EAs.

      Otherwise... imagine that you have 2 different groups of blocks that are separate - one for the first strategy and one for the second. In all blocks in the second groups of blocks where you have Group, you should set it to 2 for example. Such blocks are "No trade", "Buy now" and basically all these blocks who are working with trades or pending orders.

      The EA will have one master magic number (it's the MagicStart parameter of the EA) and where you have Group number that is different than 0 (empty value), the magic number will equal to MagicStart + Group.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • 1
    • 2
    • 8
    • 9
    • 10
    • 11
    • 12
    • 365
    • 366
    • 10 / 366