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: Does not work in this EA backtest of MT5.

      Some indicator is missing for this 🙂
      What part of this is not working? Maybe you can check if blocks pass as expected with "Draw arrow" or something like that.

      posted in Bug Reports
      fxDreema
      fxDreema
    • RE: EA BASED ON CCI AND STOCHASTIC

      I think you want to build one of these:

      No buys => Condition to Buy => Close all (or only Sells) => Sell
      No sells => Condition to Sell => Close all (or only Buys) => Buy

      Well, this is useful if conditions to buy/sell are the same with the conditions to close. If you want to close your trades after very different conditions, then:

      If trade is running (or the yellow out of No trade...) => Condition to close => Close trades

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: PRICE CLOSE vs INDICATOR

      There is a block "Indicator moves within limits" that checks if the indicator was between two levels in the past X candles, for example if CCI was between 0 and 100 in the past 10 candles. Well, this is the opposite of what you ask for, but if you can use it...

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: EA BASED ON CCI AND STOCHASTIC

      Is there problem with this EA? I don't see the closing logic?

      The local version is really local after logging in. But you can enter the web version and load some .mq4 file generated with the local, it will load the project itself.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: How to use two conditions in one indicator ?

      So you want to know where was the indicator in the past for the last time - below -100 or above +100. There is no block to check this and I think this is requested for the first time here. I even wonder what name can I give to a block which can do that.

      But anyway, I have some suggestions. You can use some other indicator or period of CCI that can tell you something about the direction. Or maybe you can try crossover between CCI and CCI with slightly different period (faster period vs slower period). Or something like this: https://fxdreema.com/shared/Y4nUTW9H Or with some code like this: https://fxdreema.com/shared/feicYrGNc

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: PRICE CLOSE vs INDICATOR

      That condition alone works... well, I think you should select x< instead of x>, but otherwise it passes at some times, so whatever is after the condition is executed sometimes as well.

      I will suggest some things. Use "No whatever exists" blocks on the top, before conditions - the EA will be backtested faster. Maybe connect those blue blocks before Buy now/Sell now (not in parallel) - this is not mandatory, but I don't think you really want them like that.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Number of running sell/buy trades?

      Here are 3 ways:
      https://fxdreema.com/shared/c9eTLMISd

      The first one is the slowest, because it turns on some part of the EA that calculates multiple statistics in realtime. And it works with ALL trades in general, no matter what Magic number they have.
      The second one is faster and you can easily select which trades to work with in "For each Trade".
      The third one is the fastest possible, because it is direct code. It is customizable... only if you know what you are doing 🙂 This is pretty much a stripped version of #2 (there are some things that slows down #2 a little bit)

      Obviously I used predefined variables in the example, but they are basically the same as those in Formula.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Trendline EA, how do?

      And as an object, trendlines have 2 points, start point and end point. Let's call them 1 and 2. Each of them has Time and Price coordinate. So point 1 is located at T1,P1 and point 2 is located at T2,P2.
      Horizontal lines are infinite, they have only 1 coordinate - the price level. Vertical lines have only time coordinate because they are infinite vertically.

      In short, to draw a trendline you have to calculate 4 values. Let's say that EAs are not born to do this thing, but there are some indicators like this one: http://www.truetl.com/true-trendline-indicator.html

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Trendline EA, how do?

      How can I answer to general question like this - "Show me how to work with trendlines?". Trendlines what... Create trendlines? Modify tendlines? Read from trendlines? It's too general.

      No, trendlines are different than horizontal lines. I don't even know what is LTA and LTB.

      Otherwise in fxDreema you can read object's properties and there are 2 ways to select an object. Because objects are identified by name (there are no 2 objects with the same name) you can select the object by name. Go in "Condition" -> "Object on the chart" to do that.

      Or do something like this: https://fxdreema.com/shared/NoypePCLd

      Well, I have to update "For each Object" to be able to select objects by name or to create another block to select an object by specific name. Obviously I didn't pay much attention to object functions 🙂

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: To Modify Label Object Text property

      Depends on how you want to select that object - by name or by type. If it's by type, then something like this: https://fxdreema.com/shared/NoypePCLd
      There is a little problem here, if you set "Text color" of block 3 to "No change", it actually changes it's code to None. I'm not sure when this bug appeared, because I think it worked when I was building this block, but in the new MT4 color constants are now different so I must fix them anyway. Better set the color to something. And notice that there are some labels generated by the EA itself.

      By name... it seems that I didn't created a block to select an object by name 🙂 Here is what I can suggest now - MQL code:

      string label_name="mylabel";
      string label_text="New Text";
      	
      if(ObjectFind(0,label_name)==0)
      {
          ObjectSetString(0,label_name,(ENUM_OBJECT_PROPERTY_STRING)OBJPROP_TEXT,label_text);
          ChartRedraw(0);                                      
      }
      

      The (ENUM_OBJECT_PROPERTY_STRING) is not mandatory, but I found that sometimes it reports weird error message if it's not there.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Broker busy

      I changed things a little bit for the web version, you can try it.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Trendline EA, how do?

      What about those lines? You know... trendline is just an object by itslef and you can get some data from it. But in fxDreema it still can't be created. I started to make this block to create objects, but then I started something else and... nothing 🙂 Well, if you manually create those lines you can read data from them in 2 ways - by selecting the object by name or by searching the object by properties (like type, color...). It depends on what needs to be done.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Trailing pending orders

      I guess you are talking for your EA called "Trailing". I tried it and it gives me this: http://prntscr.com/3amtdl
      I don't know, it looks fine. The trailing pending order is setup to 50 pips in step of 5 pips, and all those arrows shows modifications in steps of 5 pips. What is not correct here?

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: What is 'Change status to' option

      This is if you want to change the text on the top-center, where normally it says Starting... or Working.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Broker busy

      There are different kind of error situations and for each of them different delays should be used... probably. And yes, if the server is busy now, it can be busy for some more time, and I have not added any delay for this case. What value sounds good in your opinion?
      I think I will add 500 ms or even 1000 ms delay in most cases.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Difference between 1min ohlc and every tick testing

      http://www.mql5.com/en/articles/239 🙂
      __Note: If the test results of the EA in the rough testing modes ("1 minute OHLC" and "Open Prices only") seem too good, make sure to test it in the "Every tick" mode.[/quote:2fv7xcil]

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: HOW CAN I CHECK A VARIABLE OR CONSTANT VALUE??

      Yes, there are many data types, but from all of them only string is unique. All the others are basically integer, which is a whole number. Integer can be used with double (floating number), with boolean (0 or 1). In some situation even string can be used as integer 🙂

      In the case yes, you can compate 0 with false and 1 with true.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: HOW CAN I CHECK A VARIABLE OR CONSTANT VALUE??

      My idea was you to give me idea of what you have made, but nevermind 🙂

      https://fxdreema.com/shared/qvqU9jXhb
      I checked this here with boolean constant, which equals to true. In the condition I compare it to boolean true, and it works. Even if I actually added the constant as a numeric value on the left side.

      So, out of this example you should see many horizontal lines. If you change the constant to false there will be vertical lines. If this is what you ask for of course...

      If you don't get this result, check input parameters, because MT does cache of these and sometimes when you change some input parameter (constant or variable) in fxDreema (or MetaEditor) this does not take effect until you manually clear the cache .ini file.

      Or... give me some picture or something that can help me see what is going on on your side 🙂 I checked your web profile and it's empty there, so you probably work on the local version where I can't see.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: HOW CAN I CHECK A VARIABLE OR CONSTANT VALUE??

      In theory it should work. Example or picture?

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: help me code strategies only Boilinger band and stochastic

      There is a block named "Condition" where you compare one value with another, this is basic. There are few other blocks that do this, but a little bit more complex, like those in "Indicators" category, but the idea is the same - if whatever is compared and the comparison is true - pass the block.

      Whole candle... what is whole candle? For someone it can be the difference between Open and Close, for other it can be the difference between High and Low.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • 1
    • 2
    • 291
    • 292
    • 293
    • 294
    • 295
    • 374
    • 375
    • 293 / 375