Hello,
I would alter this script periodgen.mq4 'periodgen'
to get a range of data based on the 2 dates?
Where should I insert this "IF" test to cut data (generated by periodgen.
mq4)
- before the starting date dateStart
and
- after the ending date dateEnd
Which datetime's variable should be used in my IF test ?
datetime dateS=D'2005.03.01 00:00:00';
datetime dateE=D'2007.03.01 00:00:00';
// d is the date recorded in the files /databank/XXXXXXYY.hst
if (dateStart<=d && d<dateEnd) {
... (part of periodgen.mq4 script filling the the files)
}
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.
I would alter this script periodgen.mq4
'periodgen'
to get a range of data based on the 2 dates?
Where should I insert this "IF" test to cut data (generated by periodgen. mq4)
- before the starting date dateStart
and
- after the ending date dateEnd
Which datetime's variable should be used in my IF test ?
datetime dateS=D'2005.03.01 00:00:00'; datetime dateE=D'2007.03.01 00:00:00'; // d is the date recorded in the files /databank/XXXXXXYY.hst if (dateStart<=d && d<dateEnd) { ... (part of periodgen.mq4 script filling the the files) }Thanks a lot.