[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 294

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
fully download history.... this will help, reinstalling the terminal may help with the window.... and set setings to defolt
and hello to you, too, literate man. !!!!!!! if you don't mind.
What is today? What you have today, your broker may have tomorrow (or yesterday) - different timezones ... OK, no lecturing. You can try it that way:
In general, there are a few comments on the code: (1) use of variable t in comparison without pre-initialization (we may get a logic error at any moment), (2) why has the comparison for "today" been taken out of loop, (3) no break operator in loop (why do we need to look through all orders, we need at least one order, which has been closed today).
I have a question about the strategy tester in MT4, what is the reason for the empty alerts to appear in the log during testing?
and what could this mean?
hello kind and advanced people!!!
I really need your help!!! help me add the code instead of " ######## == today "
Basically we need to get from the history list if any order was closed today, i.e. there will be a bunch of orders of the same magician, but closed on different days,
and the function return true or false if today's order is closed
I would be very grateful
and hello to you, too, literate man. !!!!!!! if you don't mind.
What is today? What you have today, your broker may have tomorrow (or yesterday) - different timezones ... OK, no lecturing. You can try it that way:
In general, there are a few comments on the code: (1) use variable t in comparison without pre-initialization (we may get a logical error at any moment), (2) why is comparison for "today" taken out of loop, (3) no break operator in loop (why do we need to look through all orders, we need at least one order that was closed today).
thanks a lot
h ttps://www.mql5.com/ru/forum/107476/page53#111201
I really did, I must have looked like shit)) - thanks, it took me two hours to find it
I have a question about the strategy tester in MT4, for what reason might there be empty alerts in the log during testing?
and what could this mean?
From my experience, it means that the code reaches the alert but the alert contains a string variable which is empty at the moment it is printed. Well, or there is nothing in the code at all, it means that either nothing was written inattentively or the developer put it in there just for himself: "it got here, it's OK".
The rubrics! I determine the minimum lot from the free margin, or I don't open it, so I don't get into a margin call!
I looked it up, it's clearer than in Wiki, but there's no need to apply it, it's too complicated! Arithmetic is more convenient, more visual!
Yes. I totally agree with you that it's a headache! But, nevertheless, I am very interested. If everything is written easier, why does the programmer write it this way? So that someone else reading this code would break his brain and could not master it?
I look at this chain and do not understand why to complicate everything so much....
to hoz First, a bit of theory
And now the conclusion.
Theunderlined expression returns the decimal logarithm (logarithm on base 10) of bd_LOTSTEP, i.e. it shows the power of 10 to get bd_LOTSTEP.Hmm. You've got it wrong...
It's not a decimal logarithm, it's a natural logarithm! So the top part will be the power of e to get bd_LOTSTEP, and below it willbe the power ofe to get10.
But I don't understand the logic of the function anyway.
Yes. That it's a headache I completely agree with you! But, nevertheless, I'm very interested. If everything is written easier, why does the programmer write it that way? So that somebody else reading this code would break his brain and cannot compile it?
I look at this chain and do not understand why to complicate everything so much....