APeng:
Convert ? did you check the conversion functions ? Maybe StrToTime ?
Somehow I need to convert the date and time into a sting into a double.
I'd be interested to know why you would have any doubts that it would work ? did you read the documentation for StrToTime and ObjectCreate ?
StrToTime . . . "Converts string in the format "yyyy.mm.dd hh:mi" to datetime type" so it returns a datetime, ObjectCreate needs datetime types for it time1, 2 & 3 values . . .

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello to Everyone!
I would like to draw a trendline with
I have the time1 in that format: 2011.10.03 18:12
and time2 in the same format: 2011.10.03 20:12
Price1 and price2 are in a normal double format.
Does someone know a way to things together so the trendline can be drawn as described? Somehow I need to convert the date and time into a sting into a double.
Thanks for any help and greetings,
APeng.