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: Crossover help

      Someone wanted to compare 2 indicators before. The first of them have values between 0 and 100. The second has values between -1 and +1. And I found a way to compare those two indicators - the idea is to modify the values of one of them to match the values of the other.

      What you have is this (first indicator vs second indicator):
      0 => -1
      50 => 0
      100 => 1

      You want to modify the values on the left to look like the values on the right. So 0 will be turned to -1, 50 will be turned to 0, 100 will be turned to 1 and every value in between will be turned to something between -1 and 1.

      Let's say the first indicator has value X, then this is the formula:
      (X-50)/50

      If X is 0, the result of this will be (0-50)/50, which is -1
      If X is 5, the result will be (5-50)/50, which is -0.9
      If X is 10, the result will be (10-50)/50, which is -0.8
      If X is 25, the result will be (25-50)/50, which is -0.5
      If X is 50, the result will be (50-50)/50, which is 0
      If X is 75, the result will be (25-50)/50, which is 0.5
      If X is 100, the result will be (100-50)/50, which is 1

      What is 50 in this formula? The middle of values of the first indicator, whose values must be modified.

      And I used this simple formula in Adjust

        1. / 50
          In this case X will be the indicator as it is selected in Condition. In other words - 50) / 50 will be appended to something that is like (X, but not exactly.

      Here is something to play with:
      https://fxdreema.com/shared/PEkKiXpde

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Crossover help

      I believe I explained this somewhere, maybe on e-mail. The problem is that MACD and RSI have different natures, you can't cross their values. The problem is not even that MACD has values like -0.004736 or 0.0031848 or anything around 0 and RSI has values between 0 and 100. The problem is that RSI has values between 0 and 100 and MACD has values between... who knows, there is no lower and upper limit. So you can't actually align those two indicators.

      Yes, if you have indicator that has values between -50 and +50, you can "shift" those values to match RSI, which means that -50 will be like 0 and +50 will be like 100. But again, MACD has totally weird values.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: input parameter for adjust

      Input parameters are global variables. Global variables have simple values - numeric or string (in general). The Adjust fiels is not that simple, you can write MQL code there. So, Adjust this is not something that can be used as an input parameter. But you can use input parameter (I call these Constants) in it

      So you can have something like +MyConstantName where MyConstantName is the name of a Constant that is defined by you for the project

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: self updating/refreshing grid, compare two groups of trades

      You have the chart. The chart has two axes - X and Y.

      • X axis - each candle makes one point of the X axis and the value is an integer value similar to this http://www.epochconverter.com/ If we have a candle with time 2016.04.15 23:00, the real value is 1460761200
      • Y axis - this is the Price, you have infinite points here

      Trendline is built out of 2 points, let's call them point A and point B. Because it's a line - it has a start and it has an end. Two points - start and end. Each point has some coordinates by X and by Y. Again, X is the Time, Y is the Price. You decide what will be the actual values.
      Here is more - https://www.mql5.com/en/docs/constants/ ... /obj_trend

      Rectangles are also built out of 2 points - https://www.mql5.com/en/docs/constants/ ... _rectangle
      The rectangle has 4 angles of course, but everything is made out of 2 points.

      This is the standard horizontal line - made out of only one Price parameter - https://www.mql5.com/en/docs/constants/ ... /obj_hline

      There are of course more complex objects like this one, which is made out of 3 Times and 3 Prices - https://www.mql5.com/en/docs/constants/ ... _pitchfork

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: close all trader

      There is a block Check profit (unrealized) (old name Check unrealized profit). With this one you can check the profit accumulated from multile trades and then you can use Close trades to close the same group of trades.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: multiple conditions

      In "Condition" the crossover is something that can be detected for a given candle, let's say for the current one. If you try to detect crossovers at the same time for all lines in the same candle, then you expect all crossovers to be true for the same candle. But this is not how the indicator works.

      But you can check multiple lines with > or <. If line A is now above level 0, this means that in the past that line have crossed 0.

      Here is more about crossovers - https://fxdreema.com/examples/#Crossover

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: "check current unrealized profit" block

      post/12459

      or if you are using a Variable, don't. Just use the dropdown selectors from this type as they are

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: multiple conditions

      Dropbox links are not working for me, they are working only for you. Just look at them. There is another way to get links for the public.

      I can see you have crossover conditions one after another and I'm not sure about that 🙂 I haven't seen the indicator, but in general you probably need only one crossover and multiple < or >

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: close all trader

      A signle trade makes this profit and needs to be closed, or as a group 🙂

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: self updating/refreshing grid, compare two groups of trades

      Time 1 - the time of the 10th candle
      Time 2 - the time of the current candle, but to be horizontal line it can be any other candle that is not the one for Time 1
      Price 1 = Price 2 => that's why the line is horizontal

      https://fxdreema.com/shared/JjZcYIKxd

      I used the right ray here, which makes the line to go to infinity starting from the second point (Time2/Price2)

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Analyzing your biggest losing positions

      Again, notice the settings in block 3 - http://prntscr.com/ascatm
      http://i.imgur.com/6AspMsp.png

      What this block does with these particular settings is to select only one trade - the one with the lowest profit. Why? Because the trades are sorted by "Profitable last", which means something like "Losable first" and then it is set to work with only 1 trade in "Not more that N trades", which is set to 1

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Kaufman's Adaptive Moving Average (KAMA)

      Just go in My Indicators and add that indicator, then use it. There is some description there and a link at the bottom for more information

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Closing trades when loss exeeds XX,XX

      if you have checked the Compare parameter to be input parameter, uncheck it

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Modification denied because order too close to market (145)

      Well, note that you are actually working on the desktop version, which is old. I sometimes do fixes and no one understands, but for the latest months I was only updating the web version

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Modification denied because order too close to market (145)

      I was thinking about pending orders the whole time.... I'm used to call the running orders trades and pending orders - orders.

      So I have hard times making an EA that produces this error. But I remember that I was thinking that it's good for some errors to appear and even break the Tester. Normally errors mean that something is not correct and needs to be fixed. The Tester is somehow ideal version and if you have errors in the Tester, then thibgs will be worse Live.

      Again, I muted many possible errors by make the EAs to do something else or do nothing. For example, if you tell the EA to open a trade with lot size that is outside limits, it will scream an error and that's all. So what I did is to calculate the possible lot size and take it. The problem here is that this calculated lot size is different from the requested, but I assume that everyone will prefer wrong lot size instead of dealing with error messages.

      My problem with this 145 error is that I can't produce it 🙂

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Modification denied because order too close to market (145)

      I will try to produce this error somehow. I really tried to mute all errors, which is something that someone would say that is wrong. But maybe something is missing...

      Note that when optimizing, virtual stops are not working, because... https://www.mql5.com/en/articles/1512. The EA should work with normal stops instead (is everything is fine)

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: self updating/refreshing grid, compare two groups of trades

      But what do you mean by "horizontal line"? Horizontal lines does not have ray, they start from the left side of the chart and end at the right side of the chart. Horizontal lines are built of only one Price, nothing more. There is no second Price, there no even a single Time.

      Do you want to use trend line? Trend lines are also lines, but not horizontal lines. They are build from Price 1, Price 2, Time 1 and Time 2, which makes their 2 coordinates.

      I don't know how to change the color of a single bar. I know that you can change all at once by doung right-click and then Properties

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Analyzing your biggest losing positions

      Are you sure that you want to run those blocks 6 and 7 only once when new trades are created, or you want to make those checks all the time?

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Modification denied because order too close to market (145)

      So, now there are no problems 😕

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Bug on Chrome and firefox

      I can help on TeamViewer

      posted in Bug Reports
      fxDreema
      fxDreema
    • 1
    • 2
    • 154
    • 155
    • 156
    • 157
    • 158
    • 374
    • 375
    • 156 / 375