Login Page - Create Account

Support Board


Date/Time: Sun, 28 Apr 2024 17:51:42 +0000



Post From: sc.GetTimeHMS() Stopped Working

[2022-10-04 17:10:17]
Tony - Posts: 459
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);