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: My first MQL5 array doesn't work

      @l-andorrΓ  said in My first MQL5 array doesn't work:

      This is my last frontier to explore!

      Haha, ok πŸ˜„

      What you did looks correct.

      Technically you can also do this in MQL:

      int array[] = {10, 20, 30};
      

      But for some reason in fxdreema if you define a variable with name array[] and value {10, 20, 30}, the array is added in the EA, but the value is not applied. I don't know why. I know I worked on this few times and its possible that this is intentional.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Can someone give me 10 minutes to make an indicator ?

      As @l-andorrΓ  said, you can't build custom indicator, you can only build an EA. They are both programs, doing something on every tick. But there are differences.

      The main idea of the indicator is that it produces one or more arrays of numeric data (called buffers). These buffers are read by MetaTrader, or the EA that is using the indicator. MetaTrader would produce visual output (lines, arrows, histograms...), the EA would use the numeric data somehow. All of this happens in the moment the indicator is loaded. Then, on every tick the indicator would recalculate the last part of the data. Indicators cannot trade.

      Expert advisors... they don't have such specific purpose. They also receive the tick events, but usually on every tick they check some things and when needed they create/modify/delete orders.

      In other words, indicators are programs, optimized to build arrays of data, who can then be visualized somehow or just read by other programs. EAs can also print some things on the chart, but usually after the moment they are started.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Forum update

      And just like that with one simple setting I broke the main login/registration page for the last 12 hours or so πŸ˜’

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Editing source code

      So these warnings (if they are warnings) are probably because of variable types that doesn't match perfectly. If you see here (https://www.mql5.com/en/docs/basis/types/integer/integertypes), different numeric types have different ranges of possible values. And sometimes when you try to assign value from one type to another, the range of possible values can be decreased, which is not a problem if the EA does not intend to use the whole range of values, but it's not a good practice to do that. That's why they are warnings, the compiler assumes that the programmer doesn't use the whole range of values and knows what he is doing, and just informs him that maybe there could be a problem.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Editing source code

      Or, if you are talking about errors from the compiler, it sounds to me that these are not errors, but warnings. If the EA can be compiled and you can get the .ex4/.ex5 file, just check whether the EA is working correctly. Otherwise if they are real errors and you can't get .ex4/.ex5 file... well, they need to be fixed by someone who understands MQL

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Editing source code

      @ykmark said in Editing source code:

      TesterGenerator mismatched data errors

      These errors have nothing to do with the EA. Try another EA, you will see them again. These errors are because of missing history data in some timeframes.

      https://www.earnforex.com/guides/unmatched-data-error-in-mt4-strategy-tester/

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Editing source code

      @ykmark Ah, you mean EA that is from somewhere else. Such EA does not contain that specific project data, written by fxDreema. Only EAs generated by fxDreema can then be imported back, and only because of that specific comment section at the bottom.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Editing source code

      You can do what you want with the source code, but if you want to change the behavior of the EA from the source code, I think this is a waste of time.

      You can import the EA back, but not because of its source code. The project data (blocks, connections, patameters and everything) is appended at the bottom in a comment section - this is what is the data that is imported. The MQL code does nothing when importing.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Strange Timeframe Problem*

      @Morpheus_0 said in Strange Timeframe Problem*:

      If I'm looking for the MA cross within the last 40 candles, how would I set that up...?

      There is one fancy block with stupid name "Indicator moves within limits". It's like multiple Condition blocks in one. While the Condition compares 2 values (or 4 when crossover is used), this block checks 2 values... and then 2 from the previous candle... and then 2 from the previous candle... as many candles as you choose.

      So you can check for example whether for X candles the MA value was always above Candle Close, or not. But better try it.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Strange Timeframe Problem*

      @roar Yes, this option changes the id of the previous candle.

      By default the crossover compares 4 values - 2 values from the current candle (or the one you choose) and 2 values from its previous candle. If the current candle is 0, the previous one is 1, and the difference (cross width) is 1.

      This functionality is one that I regred adding, and I never found a reason to use it. The problem is that if you are using 40 candles difference, anything could happen inside them. Other crossovers and what not.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Forum update

      I added few plugins to test them.

      One is obviously emojis. This one was actually active for a while a long time ago, then I removed it for some reason. I think emojis are cool, but these are maybe too big 🐘

      Another plugin is Q&A plugin, here are screenshots from it. I think it's very appropriate for this category, but the way it is used is not very obvious and it requires extra clicks.

      And this one - Glossary plugin. I don't know if I really want to use it, I only verified that it works.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Forum update

      @CPxiom To me the favicon here always looked like something red, because I always have unread notifications and this white number on red background appears there. Otherwise if it's clear (without notifications), because my browser is dark, it looks just like a white dot. Maybe I should find or make something that looks blue like the forum. But anyway.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Forum update

      @roar said in Forum update:

      f49122f4-9368-4975-883e-b1d8cc1fa080-image.png But this one is such a classic πŸ˜ͺ

      Wait, that black thing was the favicon before? I don't remember it πŸ˜„ I think it was the candle-rocket-cock favicon πŸ˜„ alt text But now that I look into files, I see only the black circle πŸ˜•

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Forum update

      @CPxiom said in Forum update:

      @fxDreema Hello, it seems favicon is missing, or it looks changed. Using Safari. Screenshot 2023-02-24 at 13.07.20.png

      Favicon is that small icon that now looks like mirrored blue letter B. This is just the default NodeBB icon. I'm not sure whether I want to change it, because my icon is very stupid πŸ™‚

      The logo thing appears from time to time, and this is how it happened even before. I think it's because of two broken <meta> tags in the <head>, which seems to prefer to stay broken.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Once per Day

      I think it's a problem of interpretation. Block names need to be short and I can't fit too much information in the name.

      Also, I made this block a looooong time ago, it's been used by many people and I can't change it just like that. This is true for all blocks. I regret adding some of them, or their parameters. Not to mention that sometimes people get used to some functionality, even if it is stupid. Once I decided to remove the "Change Status to" thing, and immediately someone wanted it back.

      Otherwise the idea is that the block can pass 1 time per date. Those hours filters in it are doing what a "Hours filter" block would do if you place it above "Once a day". With such period of time enabled, the idea is that the block can pass only when the time is inside this period. If you have a period from 1:00 to 5:00, it would pass at 4:59 if this is the first time the block gets executed. This depends on what blocks are above it. If there are no blocks above it, it would pass very close to 1:00, at the first tick after this time.

      The "At certain hour" option is a little bit stupid, but the idea here is that the period is 1 minute long.

      posted in General Discussions
      fxDreema
      fxDreema
    • RE: Forum update

      @roar Maybe, I don't know. This quick reply field is an option and by default it's not shown. If it makes more problems, I can remove it or maybe change the theme.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Forum update

      @Alan-paredes2 You are overestimating me

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Forum update

      I turned off "When someone upvotes your post" and "When a post is edited in a topic you are watching".

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: No MQL4 files

      Yes, the converter only converts .mq4 to .mq5 files.

      MQL4 is a programming language and .mq4 files are the files containing the MQL4 source code, which is a human-readable text.

      .ex4 files contain binary data, which is not human-readable. These files can only be read/executed by MetaTrader. Open such file in Notepad and you will see. I guess the "ex" in the extension name means "executable", although these files are not self-executed like .exe files.

      If there is a tool to convert the data in .ex4 files to human-readable MQL4 code, this tool would be called Decompiler. But I'm not making such tools.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Forum update

      Here are the user settings:
      image.png
      I remember changing only that "Follow topics you reply to". I see there are two "None" settings, I will set them to "Notification Only".

      About the image upload, I knew why it broke and I fixed it.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 365
    • 366
    • 5 / 366