This function is used to return the history data of the time bars for specific chart and put the result on timeArray variable .
Count The end position to copy , value of type Long.
timeArray The copied data , value of type Variant.
AlertMessage CopyTime(0,1,Bars(0),timeArray) ' Returns -1 if there was an error.