Support Board
Date/Time: Sat, 23 Nov 2024 04:31:29 +0000
Post From: BaseDateTimeIn and current time stamp
[2013-06-05 12:56:48] |
flyboy615 - Posts: 56 |
ej - interesting idea I will explore it a bit. Based on sierra's original answer I switched over the logic as follows.... in case anyone else is wondering..... seems to work well enough but will have to test a bit more in insure that it is flexible enough. int intStartTimeIndex = sc.GetContainingIndexForSCDateTime(sc.ChartNumber,StartDateTime); int intEndTimeIndex = sc.GetContainingIndexForSCDateTime(sc.ChartNumber,EndDateTime); int intLastTradeIndex = sc.GetContainingIndexForSCDateTime(sc.ChartNumber,EndDateTime+(HowManyMinutes.GetInt()*MINUTES)); if (sc.GetBarHasClosedStatus() == BHCS_BAR_HAS_CLOSED) { if (sc.Index >= intEndTimeIndex && sc.Index <= intLastTradeIndex) { // do some processing } } |