fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. fxDreema
    3. Posts
    • Profile
    • Following 0
    • Followers 691
    • Topics 32
    • Posts 7485
    • Best 277
    • Controversial 18
    • Groups 1

    Posts made by fxDreema

    • RE: Multiple Trades

      Many many people are using fxDreema every day. Blocks like "No trade" and "Buy now" are used in virtually every project, and this happens for years. This means that they are rock solid and there is veeeery little chance for something to be wrong in them, especially in backtesting.

      So, if you see multiple trades, there is one reason for that - Buy now/Sell now runs too often. Why? I have this: http://prntscr.com/czc6yd Obviously trades are opened and immediately closed. In your case you have. If I disable both "Close trades", the problem does not happen at all. This means that the problem is in "Close trades". Yes, what happens is that a new trade is created and then on the next tick this trade is closed. Because Condition 17 and 4 are true at the same time, or Condition 21 and 8. What you can do is to make sure that "Close trades" is not reached right after the creation of the trades. I can't say exactly how, it depends. Once per bar or whatever. And if you study this example (for example), you will see that I don't use special blocks: https://fxdreema.com/demo/mt4-buy-sell- ... conditions It depends ๐Ÿ™‚

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Just When You Thought You Had It

      Make sure you understand some basics:
      About the way blocks run: https://fxdreema.com/demo/mt4-wrong-closing-rule
      About pink blocks (use Close Trades instead close๐Ÿ˜ž https://fxdreema.com/demo/mt4-loop-how-it-works

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Error, No indicator selected in block?

      Maybe the problem comes from the fact that you have only one indicator added. I will suggest to add another one, just because. And if it still don't work, then try with different indicator name. I will probably not even try to fix possible problem with this, because I'm preparing totally overwritten version of fxDreema to be uploaded.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Whick block can give MQL error codes?

      MetaQuotes Demo, I guess. I have one main MetaTrader installation for experiments and I have few demo accounts in different brokers there ๐Ÿ™‚

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: option "allow DLL import"

      No. Only "Delay" block requires DLLs. I prefer to not use DLLs ๐Ÿ™‚

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Custom Indicators/Working with Buffers

      Better use Condition block. Indicator vs Value-Numeric. But just in case, test this indicator with Trace, to be sure that these are the values you get (here is how to use it: https://fxdreema.com/demo/mt4-trace-multiple)

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Alert on Indicator

      I see left-price arrows above and below BB, it looks that it works on both sides. If you think that something is wrong, note that you are working with Candle ID = 0 (the current price), and in the backtest you only see finished candles. Also, if you are waiting for sounds in the Tester... sounds don't work when backtesting ๐Ÿ™‚

      posted in General Discussions
      fxDreema
      fxDreema
    • RE: Custom Indicators/Working with Buffers

      Most indicators return values such as 1.2345 (the price at the moment) or between 0 and 100 if they are oscillators. If this indicator gives you values like OP_BUY and OP_SELL, okay, work with these values. OP_BUY is 0 and OP_SELL is 1 if you don't know, these are predefined constants.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Send Email - but ignore pending orders

      Try the Send e-mail block again ๐Ÿ™‚

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Send Email - but ignore pending orders

      Maybe you are right ๐Ÿ™‚ I added extra checks in the purple blocks, it should work fine now

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Send Email - but ignore pending orders

      __But when I delete the pending trade[/quote:1cs8v4qm]

      What do you mean by pending trade? Trade closed should pass if running trade is closed, not if pending order is deleted.

      In the second shared project you are using some pink blocks, but they require "For each..." block in order to work correctly. If you don't use such block, these pink blocks could do unexpected things ๐Ÿ™‚ https://fxdreema.com/demo/mt4-loop-how-it-works

      I will not make those times to be strings. Time is only string when printed, for the eyes of the person, but in the code it should be integer value ๐Ÿ™‚

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Multiple Trades

      Note that "on Tick" orange thing above the working field - it means that the blocks below run on every tick. "No trade" doesn't allow "Buy now" to run multiple times, but "No trade" passes when there is no trade. The problem is in the another group. What happens is that the trade is immediately closed by "Close trades" => there is no trade anymore => "No trades" passes on the very next tick => "Buy now" creates new trade again.

      What you can do is to stop "Close trades" to run multiple times. Maybe with "Once per bar", I can't say how. The idea is to not run "Close trades" so often

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: option "allow DLL import"

      MetaTrader - Tools - Options - Expert Advisors - Allow DLL imports

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Custom Indicators/Working with Buffers

      Condition block is mostly used, but there are few other special blocks for indicators in Conditions for Indicators category. But first you need to know what kind of values this indicator is giving to the EA, which can be done with the Trace block: https://fxdreema.com/demo/mt4-trace-multiple

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: The inner workings of "check profit average"?

      This block sums OrderProfit() + OrderCommission() + OrderSwap() of the trades. OrderProfit() can be positive or negative. Yes, there is "profit" in the name of the block, but this does not mean that it skips losses.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Best Practice Formulas
      1. Click on this History link on the right side
      2. Delete is a good idea, but if you ask me, I don't believe that Copy/Paste is a good idea. I mean, I know some users that have giant projects with 700+ blocks, and most of these blocks are copy/paste groups of blocks, which is bad practice ๐Ÿ™‚

      In few days I will upload NodeJS version of fxDreema, because I decided to use this platform and I rewrote the whole thing + I changed the database as well. The forum will be NodeBB, which is the only forum I can find for NodeJS ๐Ÿ™‚ New features... I don't know, even now people don't understand everything. Maybe it's better to make everything easier to work. Also, I think I have to write descriptions for most options in the blocks. I will also probably do some MQL4/5 code optimizator, because the generated output code needs to be cleared from unnecessary stuff.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Condition x>

      http://prntscr.com/cyfdic

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Alert on Indicator

      If you want to code custom indicator... I really have very limited knowledge at indicators, I never tried to make one seriously. But it should be

      As an EA, now I can see your attempts to make something. But you have disabled blocks under "on Tick" and also blocks in "on Init". I guess that there is no output at all. If you only have stuff in "on Init", then you have something like a Script. But I'm not sure that you should use "Indicator moves within limits". Why don't you try with simple "Condition" and probably "Once per bar" (https://fxdreema.com/demo/mt4-once-per-bar)

      posted in General Discussions
      fxDreema
      fxDreema
    • RE: Condition x>

      Well, if I run the backtest long enough, some sells start to appear for me. But you have the same Pivot variable used in both blocks - 37 and 38. Its value is either above or below the current price. Are you sure you want to use the same variable in both blocks?

      Note that because you have "No trade" above like that, when you have one trade, no other trades can be created - no more buys, no more sells. 1 trade at a given moment.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Apply Template

      Meh... I made my own template_name.tpl in C:\Users\AseasRoa\AppData\Roaming\MetaQuotes\Terminal\895AEF54B8EBC0830E6E4451E66E7386\templates, then in "Apply Template" I just wrote template_name and it worked, no problems at all. Do you have some error messages at least?

      posted in Questions & Answers
      fxDreema
      fxDreema
    • 1
    • 2
    • 117
    • 118
    • 119
    • 120
    • 121
    • 374
    • 375
    • 119 / 375