Your interactive trading laboratory!
 • 
20 users online

Quantacula Help

How-To
C# API Reference
Extensions
Development Blog
API-Extensions
Indicator Spotlights

QCommunity Extensions
The open-source GitHub repository of source code for the QCommunity Extensions library. Contains indicators and other extensions submitted by the Quantacula Community. Look for QCommunity indicators when you create a Building Block model, mark the "QCommunity" library check box to expose them.

TASC-Extensions
The open-source GitHub repository of source code for the TASCExtensions Quantacula extension. Contains indicators and other extensions adapted from the Traders' Tips articles in Technical Analysis of Stocks & Commodities magazine.
MarketHours
Namespace: Quantacula.Core
Parent: Object

The MarketHours class represents the open and close times of a market, and is used to represent market trading hours in the MarketDetails class.

Members

AlwaysOpen
public bool AlwaysOpen

Returns whether the market is open 24 hours, by comparing the CloseTime to the OpenTime. If they are equal, the property returns true.


CloseTime
public TimeSpan CloseTime

Contains the market's closing time.


OpenTime
public TimeSpan OpenTime

Contains the market's opening time.


TradesThroughMidnight
public bool TradesThroughMidnight

Returns whether the market trades through midnight. A market is considered to trade through midnight if its CloseTime is less than its OpenTime.