Please make sure you understand the use of the function.
Call by the first position and the number of required elements
intCopyRates(
string symbol_name, // symbol name ENUM_TIMEFRAMES timeframe, // period int start_pos, // start position int count, // data count to copy MqlRates rates_array[] // target array to copy
);
Call by the start date and the number of required elements
intCopyRates(
string symbol_name, // symbol name ENUM_TIMEFRAMES timeframe, // period datetime start_time, // start date and time int count, // data count to copy MqlRates rates_array[] // target array to copy
);
Call by the start and end dates of a required time interval
intCopyRates(
string symbol_name, // symbol name ENUM_TIMEFRAMES timeframe, // period datetime start_time, // start date and time datetime stop_time, // end date and time MqlRates rates_array[] // target array to copy
);
If you look at my examples above you can see that the first parameter is symbol_name followed by timeframe, then the start and stop positions and finally the target array.
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.
Please make sure you understand the use of the function.
I will take a look on it next week.
Regards.
Please make sure you understand the use of the function.
So i can set all the parameters (datetime, int, ...etc) to NULL according the "true/false" state of my button (?).
Thank you for your help.
This is incorrect use of the function.
If you look at my examples above you can see that the first parameter is symbol_name followed by timeframe, then the start and stop positions and finally the target array.
How can I nullify all the parameters ?