Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1311
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
Question 1: I do not understand the question(
The programme to get the beginning of the selected period or the period itself
to get the start of the selected period or the period itself
to get the start of the selected period or the period itself
And if my brains aren't completely dry, it counts by closing time.
Yes, only close or delete
Alexey Viktorov. MakarFX thank you for clarifying what date is counted. But the question wasn't exactly about that. Suppose I chose the period "last month", how can I get the start date of this (selected) period, even if I haven't traded on that day?
Alexey Viktorov. MakarFX, thank you for clarifying what date is taken into account. But my question was not exactly about this. Let's assume that we have selected "last month" period, how can we get the start date of this (selected) period programmatically, even if we haven't traded on that day?
There is no period start date, there is a warrant with the earliest date. Sad, to be honest, because if there are no orders in the history, there are no period dates. In fact, that's it.
There is no period start date, there is a warrant with the earliest date. Sad, to be honest, because if there are no orders in the history, there are no period dates. In fact, that's it.
this setting is not intended for "everyday tweaking" - configure the terminal once and do not touch it
in 99.9% of the trading systems the period of 3 months history will work perfectly, probably with the exception of TS, in which tens of thousands of orders per month - the period of 1 month should be set up here
SZZ: I did not notice any performance loss during a long period of history (it is clear that everything can be broken)) ) - but in the case of a 1 month period, there may be some surprises
So, if the MetaTrader developers allowed us to "rotate" the order history - bad!
)))
this setting is not intended for "daily tweaking" - configure the terminal once and do not touch it
in 99.9% of the trading systems the period of 3 months history will work perfectly, well, probably with the exception of TS, in which several tens of thousands of orders per month - here, most likely a period of 1 month should be set up
SZZ: I did not notice any performance loss during a long period of history (it is clear that everything can be broken)) ) - but in the case of a 1 month period, there may be some surprises
So, if the MetaTrader developers allowed us to "rotate" the order history - bad!
)))
My approach is more pessimistic. We cannot do analysis on default data like history because it has to exist and we have to find it, and the efficient analysis requires its own data collection )))). History is for operational management only.
You can try pulling the date from the form using WinAPI. And order a new period too.
For four, I don't know how it is with five.
I found this, I did it a few years ago, like this:
GetForegroundWindow better replace....