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