public interface DataContext
Modifier and Type | Method and Description |
---|---|
BarSize |
getChartBarSize()
Gets the current bar size for the underlying chart.
|
long |
getCurrentTime()
Gets the current time.
|
DataSeries |
getDataSeries()
Gets the primary data series.
|
DataSeries |
getDataSeries(BarSize barSize)
Gets additional data series objects of a different bar size.
|
Defaults |
getDefaults()
Defaults defined by the system.
|
Instrument |
getInstrument()
Gets the instrument associated with this context.
|
java.util.TimeZone |
getTimeZone()
Gets the time zone for the underlying chart.
|
boolean |
isLoadingData()
Checks to see if the system is currently loading historical data.
|
boolean |
isRTH()
Returns true if the historical data is regular trading hours (vs extended hours).
|
boolean |
isSignalEnabled(java.lang.Object signalKey)
Checks to see if the signal with the given key is enabled.
|
void |
signal(int index,
java.lang.Object signalKey,
java.lang.String message,
java.lang.Object value)
Triggers a signal with the given key, message and value.
|
DataSeries getDataSeries()
BarSize getChartBarSize()
DataSeries getDataSeries(BarSize barSize)
Instrument getInstrument()
void signal(int index, java.lang.Object signalKey, java.lang.String message, java.lang.Object value)
index
- index of the bar that triggered this signal. Note: signals
are only fired for the current bar when it is completedsignalKey
- event name of the alert (displayed to user)message
- describes the signal (dislayed to the user, if an alert)value
- value that triggered the alert (displayed to user)boolean isSignalEnabled(java.lang.Object signalKey)
signalKey
- unique key that identifies the signal.boolean isRTH()
long getCurrentTime()
java.util.TimeZone getTimeZone()
Defaults getDefaults()
boolean isLoadingData()