C++ How to get time of last candle

Examples step by step how to make your own automated strategy or user indicator
Message
Author
Vintle
Posts: 1
Joined: Fri May 29, 2020 10:54 am

C++ How to get time of last candle

#1 Postby Vintle » Tue Jun 02, 2020 11:05 am

Can someone show me a method to get the time of the last candle in c++.
When using iTime(symbol, timeframe, 1) it returns the value in double format since TDateTime is a double.
For instance a value returned was 43192.541667 when using hour increments as timeframe.
Does anyone know how to transfer this value to hours?

faizanh691
Posts: 1
Joined: Mon Jun 08, 2020 6:09 am
Contact:

Re: C++ How to get time of last candle

#2 Postby faizanh691 » Mon Jun 08, 2020 6:22 am

Conversion of double to string & then into hour may be solve this problem


Return to “Programming lessons”

Who is online

Users browsing this forum: No registered users and 29 guests