Support Board
Date/Time: Wed, 05 Nov 2025 08:19:27 +0000
Post From: sc.GetTimeHMS() Stopped Working
| [2022-10-04 17:10:17] |
| Tony - Posts: 640 |
|
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); |
