fxDreema

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

    Posts made by cesardefez

    • RE: place the year and month in variables

      @cesardefez
      Thank you.
      i keep going

      posted in General Discussions
      C
      cesardefez
    • RE: place the year and month in variables

      @roar Gracias.
      sigo adelante

      posted in General Discussions
      C
      cesardefez
    • place the year and month in variables

      Hello, I want to retrieve in a couple of variables, the current year and eles.
      month = current month
      year = current year.
      How can I assign those values to the variables?

      posted in General Discussions
      C
      cesardefez
    • RE: joker TO SELECT OBJECT

      HI.
      I try to explain myself.
      When drawing a line, I named it line1
      If I draw another line, it is named line 2
      and so on,
      when I want to read detect the line in my ea, I have to tell it what it's called.
      example,
      if bid crosses the line? down, sell.
      where?, I don't care if it is 1,2,3, ........ n,
      ? I understand that it would be the wildcard (I mean?, it could be any sign, I don't know if it exists, or it can be done).
      for example in mt4, to configure the fibo and I want to add the price at the fibo level, add% $. (view photo).
      0_1610827097710_844055e8-1a30-458f-ab4a-d791cf14fd6f-image.png
      I don't know if I have managed to explain myself.

      posted in General Discussions
      C
      cesardefez
    • joker TO SELECT OBJECT

      Hi.
      I am working with an ea.
      in the drawing an object, a particular line.
      When prefixing the name, the trend line is always named with the prefix "TREND" + n,
      where n is a number, 1, ..... n
      I wonder if there is any wildcard "$,%, & ..." to filter it.

      0_1610643871168_e6e92ece-8322-4f14-bff6-49b2ea10c422-image.png
      In the photo, I put a condition:
      if as == TREND value ??
      TREND (is the prefix of my object) ??? (It would be, if there is a wildcard to tell you that I don't care if n is behind the prefix, or how many numbers there are)
      I would like to discover that the name of my line TREND1 and later, TREND2 ........ TRENDn would detect them with this function.
      What if there were more than one line drawn at the same time? would detect them all?

      posted in General Discussions
      C
      cesardefez
    • RE: Limit the n of decimal places in comments

      Thanks a lot. I finally get it to work.
      thank you thank you thank you

      posted in General Discussions
      C
      cesardefez
    • RE: How can I round a number?

      @miro1360 Thanks a lot. I finally get it to work.
      thank you ,thank you,thank you.

      posted in Questions & Answers
      C
      cesardefez
    • RE: Limit the n of decimal places in comments

      hello roar,
      I don't know mql4.
      I have looked at that link several times.
      try putting in setting:
      = NormalizeDouble($,2) as I indicated l'andorrà
      after reading the article, also try putting the variable name instead of $
      = NormalizeDouble(profit_sell,2)
      neither option works for me.
      I think the simplest thing will be to use int variables, instead of double, and assume the loss of two decimal places. I'm going around this for 4 days without seeing the light.
      Thanks a lot

      posted in General Discussions
      C
      cesardefez
    • RE: Limit the n of decimal places in comments

      hello, sorry for insisting, but it keeps failing,
      I pass two photos, where you can see that my board goes from having 12 digits to having 2, and it is continuously alternating.
      I have tried to put in settings = NormalizeDouble ($, 2) in the boxes where they assign the value to the variable, in the comment box, of formulas, in all at once and in one at a time. and every time it refreshes, it keeps changing from 2 to 12 digits.
      Is there no global mt4 variable where this can be set?
      Is there any mql4 code to limit the amounts to be taken into account to calculate?
      could you use custom mql code to limit two digitis in mt4?
      Thanks a lot
      1_1610557767753_2.PNG 0_1610557767751_1.PNG

      posted in General Discussions
      C
      cesardefez
    • RE: place variable in box you adjusted by performing operation

      thanks. I will do tests. Thanks a lot

      posted in General Discussions
      C
      cesardefez
    • place variable in box you adjusted by performing operation

      Hello community
      When in the adjustment box I want to add the value of a variable, it is impossible for me to perform operations with it.
      0_1610528209134_cbd2587f-58ef-47fd-b5bb-f2ba4111b86e-image.png
      As seen in the photo, I want to multiply (* index_recovery), but when I insert this variable, it doesn't let me add the "*".
      How can it be done?
      0_1610528490081_098f658c-808c-43fa-ac51-e612c25b18b5-image.png
      thanks

      posted in General Discussions
      C
      cesardefez
    • RE: variable to use as expiration date

      I put the orders pending in the grid.
      When I put the first grid I can put an expiration date, 5 days, perfect. We are at day 1, day 5 will close.
      Doubt: Do you close the pending orders that remain to be opened, or also the open ones of this grid? Do you close all of them, open and pending?
      Let's suppose that the next day, the 2nd day, another grid opens for me, expiration 5 days. This second grid will close on day 6 (5 + 1 since it was launched a day later).
      I want to make sure that all the grids that I open, from the 1st, close with the expiration of the 1st grid.
      that's why I need a variable that is updated with my first grid, and use the same value for the following ones.
      I hope I have explained myself

      posted in General Discussions
      C
      cesardefez
    • RE: Limit the n of decimal places in comments

      Thank you very much. It works perfectly.

      posted in General Discussions
      C
      cesardefez
    • RE: count open trades.

      ok thanks it works

      posted in General Discussions
      C
      cesardefez
    • count open trades.

      Hello, I have used a trade cube to be able to count open trades. But it's not working.
      Can someone correct the error for me?
      thanks
      0_1610111780115_3de347d1-1447-4ad0-b2d8-6c5c8943412f-image.png
      In the photo, you can see that I have an open order, and in the comment, it does not appear.
      "LONG = 0" should be 1,
      "lot buy = 0" should be 0.01 (the sum of lots of all buy)
      profit buy = 0, it should be the sum of all profits from buy operations.
      Only profit is good for me, because it is not taken from the trade cube, this comment was configured from account / profit.

      thanks

      posted in General Discussions
      C
      cesardefez
    • Limit the n of decimal places in comments

      Hi.
      I would like to be able to limit the n of decimal places in the comments.
      personally I dislike seeing so much n.
      0_1610103756606_60d87ca4-36e0-4736-aa82-f492022e8b7e-image.png

      posted in General Discussions
      C
      cesardefez
    • variable to use as expiration date

      Hi.
      in my strategy I place several pending orders in the grid,
      example:
      I buy pending orders in grid. (I set expiration 5 days)
      when time passes, (for example 3 hours) according to my ea conditions,
      I buy pending orders in grid. (the block is set to expire in 5 days).
      I want the expiration date to be the date of the first purchase order in the grid, for all the grids I buy.
      any idea how to do it?
      thanks

      posted in General Discussions
      C
      cesardefez
    • RE: check button state does not recognize me when the button is pressed.

      Hi, I don't understand what you are trying to share. I do not see that the generation of the fibo is creating any problem for me, it already detects the button and it generates the fibo,. I attach 3 different graphics where it is generated.
      in fact the problem that I have in my project and I have it in another thread (https://fxdreema.com/forum/topic/10922/ejecutar-codigo-al-deselecionar-objet0/15) is that I cannot detect when the fibo is deselected, then Turn ON blocks.

      0_1609180552803_08bf4c74-6f54-40ea-8e60-e7ed41bbf04e-image.png

      0_1609180626155_f50ce804-3f51-43a3-98dd-53a954a6f34e-image.png

      0_1609180901130_95b80b8b-52b0-4271-9abf-6b760c37fede-image.png

      posted in General Discussions
      C
      cesardefez
    • RE: EJECUTAR CODIGO AL DESELECCIONAR OBJET0

      when pressing the button, a fibo is drawn and it remains selected. when drawing the fibo I turn off block 140
      Usually it always puts the same name, but just in case I verify it in fibo properties.
      what I hope is that when I deselect fibo, I activate block 140 to put operations.
      I don't know why it doesn't work for me.
      can someone check it out,?
      https://fxdreema.com/shared/EpjSRUS0d
      Thank you

      posted in General Discussions
      C
      cesardefez
    • RE: check button state does not recognize me when the button is pressed.

      @ l-andorrà yes,.
      what you do in this block is determine the highest and lowest price of the last 50 candles. I do not care what candle this is, if at 1 or 50. 50 is the range of candles where you look for the high and low.
      it works for me:
      0_1609167905630_775a6765-f564-4096-843b-14c54b77c32b-image.png

      posted in General Discussions
      C
      cesardefez
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 2 / 7