[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 408
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
It's hard to say about the allocated one. You'd have to ask the Metakwots.
I had my real account blocked in MRC because of frequent chart opening and updating. This is not an MQL4 function, but an in-house chart viewer
Maybe, for example, MarketInfo() accesses the server or only receives part of data from market overview.
I guessed that, but I can't find them, these stop loss parameters
I once asked a question about the use of libraries. I did get a bit confused, though.
As I understand it, the library is a set of functions with code, which I don't remember exactly what it's called, "closed", i.e. it means that in the process the code of the library function is not affected by anything from the outside.
It is logical that when all of the frequently used and not only functions are moved out of the EA, it is very convenient. But why do we need the inludes then? After all, libraries work without them. So, inclusions are not needed? Who uses it?
Is 10% a year a good thing or a bad thing?
Well, they always say that the main thing is to keep the balance curve flat, and you can increase your profits with MM. Or is it not so?
Well, they always say that the main thing is to keep the balance curve flat, and to increase profits you can use MM. Or is it not so?
Try to increase
if the kolyan doesn't come.
The current day begins at the beginning of the current D1 bar (iTime (NULL, PERIOD_D1, 0)), but you are not looking for easy ways?! :)))
does not work.
iTime (NULL, PERIOD_D1, 0) prints 137082240
and inserted in the function prints all available history of trades, but not trades for today.....
does not work.
iTime (NULL, PERIOD_D1, 0) prints 137082240
and inserted into the function prints all available transaction history, not today's transactions.....
and the function will return profits on orders closed since the beginning of the current day.
And ALL of the nonsense in the code is caught via Print().
What do you mean by "frequent opening of chart"? I understand about updating of market environment variables, but I don't understand about opening and updating of chart...
I once asked a question about the use of libraries. I did get a bit confused, though.
As I understand it, the library is a set of functions with code, which I don't remember exactly what it's called, "closed", i.e. it means that in the process the code of the library function is not affected by anything from the outside.
It is logical that when all of the frequently used and not only functions are moved out of the EA, it is very convenient. But why do we need the inludes then? After all, libraries work without them. So, inclusions are not needed? Who uses them?
The inclusions in MQL4 help to arrange the code. For example, this is how an indicator for 3000 lines looks like in my article:
The 5 lines of similar operations accumulate, or a separate algorithm, or some other criteria of the group and it can be allocated in a separate file. Still, it's better to look at code up to 200 lines rather than 10000 lines at once. You will get tired to tweak it. In MQL4, it is better to avoid function calls. Especially, in loops. If possible, it is better to expose the function. The code will work much faster. Inclusions are of great help here.Unfortunately, the compiler does not allow using one inclusion more than once in one module. This is usually a way to save on repetitive code.
I immediately took Victor at his word, but... to dispel any doubts I just wrote to the metaquotes.
...
Victor is absolutely and completely right. That request to the server, which comes when the chart opens, is not a request from the emulator function, but from a manual action of the user.
Victor is absolutely and completely right. The request to the server, which comes when the chart opens, is not a request from an emcool function, but from a manual user action.
The request from the chart is similar to the request from RefreshRates(). I have no doubt that it is referring to the server. That said, RefreshRates() is not a trading function.
I'll have to ask the Metacvots.