@miro1360 Thanks a lot. I finally get it to work.
thank you ,thank you,thank you.
Best posts made by cesardefez
-
RE: How can I round a number?posted in Questions & Answers
-
RE: check the number of open and pending operationsposted in General Discussions
THANK YOU VERY MUCH, Today I have learned a lot, it is these details that make it get its full potential.
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.

-
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
Latest posts made by cesardefez
-
Help with custom indicatorposted in General Discussions
I have an indicator in mq5, that when importing it, I do not get the Buffers, nor the input parameters.
if I configure them manually, the output data from the buffers is wrong.
Someone could take a look at the indicator, which I leave attached.
Thanksindicator: https://drive.google.com/file/d/198DPv4kIdRTZicDTRQbqoioGl95rnL-M/view?usp=sharing
-
RE: ghost tradingposted in General Discussions
@l-andorrà
The idea is to use it to filter, and accumulate less float.
I want to filter that it does not operate if they have not opened two (x consecutive losses).
For this I have to simulate in some way the entry and exit according to my strategy. if there are two, three x's missing, then go in.
At no time do I want to make a strategy strictly by doing.
but if it is true that if my backtes comes out "x" of consecutive wins and consecutive losses, I can use this data as a filter and reduce DD. -
ghost tradingposted in General Discussions
The title seems a bit strange, but let me explain what I would like to achieve.
I want to simulate placing buy and sell operations. Without being carried out, but if I want the EA to manage if it is a winner or a loser.
I want to count x losers, and from there, that I can put them in real (stop doing simulated operations).
Could someone give me a hand to build this idea?
Thank you -
RE: Indelible variableposted in General Discussions
@cesardefez
Solved.
At least temporarily.
the only drawback is that it is only saved up to 4 weeks after the last modification of the variable.
What I have done is create a global variable, giving them the values that I need to keep.
I create other variables in the EA, to be able to retrieve the value of the global variable and be able to present it on the screen.

Gracias, @ l-andorrà
-
RE: Indelible variableposted in General Discussions
@l-andorrà I was hoping that in the same way that an ea can read a set, it could also read the value of a vriable from a text file.
thanks -
Indelible variableposted in General Discussions
Hi.
in my panel, I want to have some statistical data,
such as drawdom, the max level of margin that the operation has taken me ... etc.
The problem that arises for me is that if I turn off the mt5, when I turn it back on, my variables are reset to 0, losing the statistical data of my operations.
Is there some way that these variables are fixed as if they were a constant. In other words, that the value of my variables are not volatile.
I have tried, with the block modify variables, modify the value of a constant.
but obviously it doesn't work.
the solution would be to create a file with the value of the variables that I want not to be deleted. and when loading the EA in the init tab, retrieve these values from the text file.
You can help me to do it.
Thank you -
RE: View earnings for today, last week, last month, last yearposted in General Discussions
@roarIt
The configuration that you recommend does not work for me.
I use the code for mt5.
from my logic, I have used the following configuration.
year ... 0, or empty to indicate the current year (2021).
month ... 1. No and if so. I have placed 1, thinking it is January.
day 1 . -. , from day 1.January 1, 2021.
shift in time ..... no shift. (I don't know what it's for)
Please can you help me to calculate the week.
from Mondays to Sundays .?
7 / 5000
Resultados de traducción
Thank you -
RE: View earnings for today, last week, last month, last yearposted in General Discussions
Hi. I pass a photo of what I want to achieve in my panel.

As you can see at the bottom, I want you to report the profit for the year, the month, the week and today.
for this I have used the following block.
I have two problems:
the annual profit miscalculates it for me. it doesn't match the real thing. In the photo you can see how the box is configured.and for the week calculation I don't know how to do it. I would have to calculate the profit from Monday to Sunday of each week.
and finally a doubt.
What is the shift in time option for?thanks
-
RE: View earnings for today, last week, last month, last yearposted in General Discussions
@cesardefez Someone could say what expression could be used, and if it works.
thanks -
RE: View earnings for today, last week, last month, last yearposted in General Discussions

I think this block should be configured.
with some formula that tells you that we want operations closed today.
we repeat the block for the current month, current week, current year.
but this must surely be an expression in mql4 or mql5.