The goal is to make my EA work on certain days of the year, I have DayOfYear() function, but it doesn't work as required, for example, I want my EA to work only on 16th day of year, if I set DayOfYear()==16, the result will not be achieved, a good structure for an EA should be like this
- if day of year =16 or 17....... (or date range)->function check1->open order
- if day of the year equals =120 or 135...... (or date range)->function check1->open order
i couldn't find a matching function on the forum, if i've searched too hard, hit me with the nose))))
The goal is to make my EA work on certain days of the year, I have DayOfYear() function, but it doesn't work as required, for example, I want my EA to work only on 16th day of year, if I set DayOfYear()==16, the result will not be achieved, a good structure for an EA should be like this
- if day of year =16 or 17....... (or date range)->function check1->open order
- if day of the year equals =120 or 135...... (or date range)->function check1->open order
I couldn't find a suitable function on the forum, if I've searched badly - poke the nose at))))
You should dig in the direction of the structure
structMqlDateTime { intyear;// year intmon;// month intday;// day inthour;// hour intmin;// minutes intsec;//seconds intday_of_week;// day of week (0-Sunday, 1-Monday, ...,6-Saturday ) intday_of_year;// number in a year (1st of January has number 0 ) };
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
So automate the manual search.
So automate the manual override.
Manually, you can see the buffer that draws and distinguish it from the one that calculates
I doubt that the calculation buffers are externally accessible.
Question for the developers. If I have a strategy that needs to read data from a file, how do I do this correctly during the optimisation.
Question for the developers. If my strategy needs to read data from a file, how should I do it during optimization?
Use tester_file directive to pass file to Agent sandbox, and from sandbox read as standard.
Use the tester_file directive to pass the file to the Agent sandbox, and from the sandbox read as standard.
#property tester_file "test_patterns.bin"
correct call? in the header? - for some reason does not want to transfer the file
I put the file in Terminal\Common\Files
Good evening, I need some help with code
The goal is to make my EA work on certain days of the year, I have DayOfYear() function, but it doesn't work as required, for example, I want my EA to work only on 16th day of year, if I set DayOfYear()==16, the result will not be achieved, a good structure for an EA should be like this
- if day of year =16 or 17....... (or date range)->function check1->open order
- if day of the year equals =120 or 135...... (or date range)->function check1->open order
i couldn't find a matching function on the forum, if i've searched too hard, hit me with the nose))))
Good evening, I need some help with code
The goal is to make my EA work on certain days of the year, I have DayOfYear() function, but it doesn't work as required, for example, I want my EA to work only on 16th day of year, if I set DayOfYear()==16, the result will not be achieved, a good structure for an EA should be like this
- if day of year =16 or 17....... (or date range)->function check1->open order
- if day of the year equals =120 or 135...... (or date range)->function check1->open order
I couldn't find a suitable function on the forum, if I've searched badly - poke the nose at))))
You should dig in the direction of the structure
structMqlDateTime
{
intyear;// year
intmon;// month
intday;// day
inthour;// hour
intmin;// minutes
intsec;//seconds
intday_of_week;// day of week (0-Sunday, 1-Monday, ...,6-Saturday )
intday_of_year;// number in a year (1st of January has number 0 )
};