Forum

Pass Rates as Array entries in .dll C++

Hi Guys, I am parsing a series of rates and then copying the .Open part into a new array, this is done via: MqlRates rates[]; double copyrates[ 100 ]; ArraySetAsSeries (rates, true ); int copied= CopyRates ( Symbol (), 0 , 0 , 100 ,rates); for ( int i= 0 ;i<=(copied- 1 );i++) //0 to

Passing Array as a function input argument

Hi Guys, I am writing a simple loop through array elements as a .dll. Using #import "Path" as usual but I am unsure as to hoe to declare the function and then call it. I am using: declaration: int arraytest( int a, int b[]); #import Call in an Alert whatever this function returns: Alert (arraytest(

Datetime fileread error: returning 1970 date instead of actual on file.

Hi Guys, I've got a below standard piece of code for reading from a file with the following format: YYYY.MM.DD HH:MM; integer What I get returned for MD (date) is 1970.01.01 00:00:00 instead of the actual date on file. Do you have any solution guys? Thanks! int Handle, Number, Number2; string