@cesardefez
Thank you.
i keep going
Posts made by cesardefez
-
RE: place the year and month in variablesposted in General Discussions
-
RE: place the year and month in variablesposted in General Discussions
@roar Gracias.
sigo adelante -
place the year and month in variablesposted in General Discussions
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? -
RE: joker TO SELECT OBJECTposted in General Discussions
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).

I don't know if I have managed to explain myself. -
joker TO SELECT OBJECTposted in General Discussions
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.
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? -
RE: Limit the n of decimal places in commentsposted in General Discussions
Thanks a lot. I finally get it to work.
thank you thank you thank you -
RE: How can I round a number?posted in Questions & Answers
@miro1360 Thanks a lot. I finally get it to work.
thank you ,thank you,thank you. -
RE: Limit the n of decimal places in commentsposted in General Discussions
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 -
RE: Limit the n of decimal places in commentsposted in General Discussions
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

-
RE: place variable in box you adjusted by performing operationposted in General Discussions
thanks. I will do tests. Thanks a lot
-
place variable in box you adjusted by performing operationposted in General Discussions
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.

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?

thanks -
RE: variable to use as expiration dateposted in General Discussions
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 -
RE: Limit the n of decimal places in commentsposted in General Discussions
Thank you very much. It works perfectly.
-
count open trades.posted in General Discussions
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

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
-
Limit the n of decimal places in commentsposted in General Discussions
Hi.
I would like to be able to limit the n of decimal places in the comments.
personally I dislike seeing so much n.

-
variable to use as expiration dateposted in General Discussions
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 -
RE: check button state does not recognize me when the button is pressed.posted in General Discussions
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.


-
RE: EJECUTAR CODIGO AL DESELECCIONAR OBJET0posted in General Discussions
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 -
RE: check button state does not recognize me when the button is pressed.posted in General Discussions
@ 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:
