Login Page - Create Account

Support Board


Date/Time: Mon, 15 Sep 2025 16:49:38 +0000



Post From: modf() broken in 2192?

[2020-11-16 08:56:04]
User907968 - Posts: 844
SCDateTime no longer converts directly to double - see link for details https://www.sierrachart.com/index.php?page=doc/Whats_New.php#SCVer2156

You could use Working with the SCDateTime Variables and Values: GetAsDouble()

backtime = std::modf(sc.BaseDateTimeIn[sc.Index - BarsBack].GetAsDouble(), &date);