Login Page - Create Account

Support Board


Date/Time: Thu, 10 Jul 2025 07:57:04 +0000



Post From: sc.GetTimeHMS() Stopped Working

[2022-10-04 17:10:17]
Tony - Posts: 610
thanks, what I am trying to do is play a sound when market open at 6:30 Eastern.

this is the code gave me the error message: (tried SCDateTime::GetTimeHMS(6,30,0) too, didn't work)

if (sc.BaseDataEndDateTime[sc.Index].GetTimeInSeconds()==sc.GetTimeHMS(6,30,0))
sc.PlaySound(7);


this code works as I expected ():

if (sc.BaseDataEndDateTime[sc.Index].GetTimeInSeconds()==(6*3600 + 30*60))
sc.PlaySound(7);