ArrayCopyRates
Hi everyone,
I've been trying to run the ArrayCopyRates function (not with the same name, similar function according to same mission) in mql5 but I couldn't be successful. In mql4 i used it like :
i tired with MqlRates and CopyRates but I could not reach the same result. Does anyone know of a tip that might help?
Use CopyRates . Note that there are three options for the function:
Call by the first position and the number of required elements
int CopyRates( 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
int CopyRates( 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
int CopyRates( 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 );
- www.mql5.com
Use CopyRates . Note that there are three options for the function:
Call by the first position and the number of required elements
Call by the start date and the number of required elements
Call by the start and end dates of a required time interval
Firstly thank you for your reply and help,
actually i tried it before however in mql4 i used two-dimensional destination array format of arrayCopyRates function. So copyrates doesnt support it and I couldn't migrate it.
Firstly thank you for your reply and help,
actually i tried it before however in mql4 i used two-dimensional destination array format of arrayCopyRates function. So copyrates doesnt support it and I couldn't migrate it.
- 2021.11.13
- www.mql5.com
Thank you, i resolved it now and perfectly working !
Hi everyone,
I've been trying to run the ArrayCopyRates function (not with the same name, similar function according to same mission) in mql5 but I couldn't be successful. In mql4 i used it like :
i tired with MqlRates and CopyRates but I could not reach the same result. Does anyone know of a tip that might help?