fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. holygrailfx
    3. Topics
    H
    • Profile
    • Following 1
    • Followers 0
    • Topics 39
    • Posts 110
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by holygrailfx

    • H

      select open order farthest away
      Questions & Answers • • holygrailfx

      6
      0
      Votes
      6
      Posts
      178
      Views

      jstap

      @holygrailfx You are welcome

    • H

      Terminal or GLOBAL Variables
      Questions & Answers • • holygrailfx

      6
      0
      Votes
      6
      Posts
      406
      Views

      H

      Anybody I suggestion how to easily add a Time Frame stamp as well as currency pair?

      I want my global variables to look like EURUSD_M15_someother text

      adding TF in mql5 adds a lot of conversion errors.

    • H

      Display flags in comments
      Questions & Answers • • holygrailfx

      6
      0
      Votes
      6
      Posts
      415
      Views

      jstap

      I too agree, use a bool variable, then you can display state in a comment.

    • H

      Terminal Variables
      Questions & Answers • • holygrailfx

      1
      0
      Votes
      1
      Posts
      151
      Views

      No one has replied

    • H

      Counter and Global Var
      Questions & Answers • • holygrailfx

      2
      0
      Votes
      2
      Posts
      287
      Views

      jstap

      @holygrailfx Global variables are terminal variables in FX, if this needs removed for a certain condition you can get the code to add to a custom block from google.

    • H

      select most or least profitable trade in loop
      Questions & Answers • • holygrailfx

      2
      0
      Votes
      2
      Posts
      390
      Views

      l'andorrà

      @holygrailfx Do you mean this?

      0_1618667775381_01.png

    • H

      Check Type Last Opened
      Questions & Answers • • holygrailfx

      2
      0
      Votes
      2
      Posts
      1208
      Views

      fxDreema

      It also works like this: http://prntscr.com/hca78b Basically after I created those pink blocks I stopped adding more blue blocks, such as Check type (last closed)

    • H

      weighted average open Price
      Questions & Answers • • holygrailfx

      4
      0
      Votes
      4
      Posts
      1187
      Views

      H

      @timmyhanke
      Sorry I dont understand your suggestion?

      What I want is that for example the two set of trades should give the same average openprice if the calculation is adjusted for lotsize: average price is 1.2000, however fxdreema gives 1.15 for basket 1 and 1.2 for basket 2!

      Example tradebasket 1
      1 buy lotsize 1 @ 1.0000
      1 buy lotsize 2 @ 1.3000

      Example trade basket 2
      1 buy lotsize 1 @ 1.0000
      1 buy lotsize 1 @ 1.3000
      1 buy lotsize 1 @ 1.3000

    • H

      Comment text color
      Questions & Answers • • holygrailfx

      3
      0
      Votes
      3
      Posts
      1401
      Views

      fxDreema

      If you create that text with "Draw Text", then there is option for the color somewhere. Look at the bottom and click on "Standard properties"

    • H

      Average spread > fixed level
      Questions & Answers • • holygrailfx

      2
      0
      Votes
      2
      Posts
      698
      Views

      fxDreema

      In MQL4 try "Spread filter" block. There is extra setting for this. But I made this long time ago, the code is complex and I'm not sure if it still works 🙂

    • H

      Logs and FileSize
      Questions & Answers • • holygrailfx

      4
      0
      Votes
      4
      Posts
      795
      Views

      fxDreema

      Is it now ok?

    • H

      New Warning when compiling
      Bug Reports • • holygrailfx

      1
      0
      Votes
      1
      Posts
      782
      Views

      H

      'F' - unrecognized character escape sequence $$$$$$$$5april.mq4 10887 46

      which is part of the following sequence

      //-- ftp errors case 4260: e = "FTP server is not specified"; break; case 4261: e = "FTP login is not specified"; break; case 4262: e = "FTP connection failed"; break; case 4263: e = "FTP connection closed"; break; case 4264: e = "FTP path not found on server"; break; case 4265: e = "File not found in the MQL4\Files directory to send on FTP server"; break; case 4266: e = "Common error during FTP data transmission"; break;

      I guess that it should be MQL4/Files

      Cheers

    • H

      change comment on close
      Questions & Answers • • holygrailfx

      2
      0
      Votes
      2
      Posts
      426
      Views

      fxDreema

      I'm not aware of such possibility, OrderClose() does not have "comment" attribute

    • H

      comments text sizes
      Questions & Answers • • holygrailfx

      8
      0
      Votes
      8
      Posts
      1425
      Views

      fxDreema

      You have it

    • H

      Attach label on Arrow
      Questions & Answers • • holygrailfx

      3
      0
      Votes
      3
      Posts
      564
      Views

      H

      ok that is what I figured

    • H

      cannot convert enum
      Questions & Answers • • holygrailfx

      10
      0
      Votes
      10
      Posts
      3014
      Views

      fxDreema

      What I did in Mondey is for good, it was only something that reveals small mistakes. The calculation is still the same, but now it shows the real number. I know it sounds stupid, but I also had many problems with values that look like 10 but are in fact like 9.9999999999991. I can't explain why this happens, it's something technical with floating numbers in C++. Check this: http://stackoverflow.com/questions/2909 ... -precision
      In other words, in the past you saw rounded but false numbers and now you are looking at their real value.

      That's why they provide NormalizeDouble(). Now I want to normalize the data that can be get from Condition, but it's not as simple as to write NormalizeDouble everywhere, because this function has second parameter for the number of digits after the point and this depends of what kind the value is. If it's lot size, then 2 digits, in case of price - 2, 3, 4 or 5 digits depending on the market. If it's the value of custom indicator... absolutely depends.

    • H

      Retrieve highest value for
      Questions & Answers • • holygrailfx

      2
      0
      Votes
      2
      Posts
      436
      Views

      fxDreema

      There is nothing about this in "Condition" or as a block. I was thinking about this many times, to add something in "Condition" or to do it as a separate block, but there are downsides for both cases, so I don't know 🙂

      The best way is to have a custom indicator that does this calculation and also draws the values you want to use. Indicators do their job better. Doing indicator's job in an EA is not very efficient in most cases. Just imagine - getting and checking the same 30 values on every tick.

    • H

      Close the least profitable trade
      Questions & Answers • • holygrailfx

      8
      0
      Votes
      8
      Posts
      1285
      Views

      fxDreema

      Yes, it looks at the profit in money.

      If I ever do something about this, it will be some universal way of sorting, but I'm still not sure how exactly to do it

    • H

      Stack Overflow Problem: HELP
      Questions & Answers • • holygrailfx

      4
      0
      Votes
      4
      Posts
      606
      Views

      H

      Thanks
      I went back to an older version. And redid most of the changes
      So far so good
      No stack overflow yet

    • H

      Limit number of BuyOrders through Counter Routine
      Questions & Answers • • holygrailfx

      4
      0
      Votes
      4
      Posts
      737
      Views

      fxDreema

      The idea of those counters is to count how many times the block runs. Optionally any counter can be reset, but the block to reset is normally located somewhere else, under another condition. You have the reset at the same place where the counter is, so the counter counts nothing.

      But I will suggest to not use counters, because their memory is temporary. It's much better if you use only conditions who check things about the trades - their type, count, profit or something like this.

    • 1
    • 2
    • 1 / 2