public method PriceHistoryHelperAut.IsNonTrading

Brief

Checks whether a specified date and time is in the regular non-trading hours.

Declaration
Visual Basic
Function IsNonTrading (dt as DateTime, dayOffset as Integer, byRef pvNonTradingStart as Variant) As Boolean
IDL
[id(3)] HRESULT IsNonTrading( [in]DATE dtTime, [in]int iDayOffset, [out]VARIANT *pvNonTradingStart, [out, retval] VARIANT_BOOL* retVal)

Parameters
dt

The date and time.

dayOffset

The offset between a day's midnight and the date of the beginning of a trading day. For example, FXCM's trading day starts at 17:00 of yesterday, so the offset is -7 hours.

pvNonTradingStart

[output] The date and time when the non-trading period begins or nil in case the date and time does not belong to the non-trading period.

Returns

The method returns True in case the specified date belongs to the regular non-trading hours (for example, Friday 17:00 - Sunday 17:00 for -7 (FXCM strandard tradingDayOffset). Otherwise, the method returns False.

Details

The IsNonTrading method is defined in the PriceHistoryHelperAut class.

back