com.dukascopy.api.indicators
Interface IIndicatorContext


public interface IIndicatorContext

Provides access to system services


Method Summary
 IAccount getAccount()
          Provides access to various account information
 IConsole getConsole()
          Returns interface that allows to write messages into the Messages table
 IDataService getDataService()
          Provides access to IDataService
 IFeedDescriptor getFeedDescriptor()
           
 IHistory getHistory()
          Provides access to history from indicators
 IIndicatorChartPanel getIndicatorChartPanel()
          Provides access to IIndicatorChartPanel
 IIndicatorsProvider getIndicatorsProvider()
          Returns interface that can be used to get indicators registered in the system
 Instrument getInstrument()
          Deprecated. Use getFeedDescriptor().getInstrument() instead
 OfferSide getOfferSide()
          Deprecated. Use getFeedDescriptor().getOfferSide() instead
 Period getPeriod()
          Deprecated. Use getFeedDescriptor().getPeriod() instead
 boolean isLive()
          Returns true when indicator is used on Live account, false otherwise
 

Method Detail

getConsole

IConsole getConsole()
Returns interface that allows to write messages into the Messages table

Returns:
interface for messages sending

getIndicatorsProvider

IIndicatorsProvider getIndicatorsProvider()
Returns interface that can be used to get indicators registered in the system

Returns:
interface to work with indicators

getInstrument

Instrument getInstrument()
Deprecated. Use getFeedDescriptor().getInstrument() instead

Returns instrument of the primary input when called from IIndicator.calculate(int, int) or IIndicator.setInputParameter(int, java.lang.Object) methods

Returns:
instrument of the primary input

getPeriod

Period getPeriod()
Deprecated. Use getFeedDescriptor().getPeriod() instead

Returns period of the primary input when called from IIndicator.calculate(int, int) or IIndicator.setInputParameter(int, java.lang.Object) methods

Returns:
period of the primary input

getOfferSide

OfferSide getOfferSide()
Deprecated. Use getFeedDescriptor().getOfferSide() instead

Returns offer side of the primary input when called from IIndicator.calculate(int, int) or IIndicator.setInputParameter(int, java.lang.Object) methods

Returns:
offer side of the primary input

getHistory

IHistory getHistory()
Provides access to history from indicators

Returns:
history interface

getAccount

IAccount getAccount()
Provides access to various account information

Returns:
IAccount interface

getFeedDescriptor

IFeedDescriptor getFeedDescriptor()
Returns:
chart state described by bean IFeedDescriptor

getDataService

IDataService getDataService()
Provides access to IDataService

Returns:
IDataService interface

getIndicatorChartPanel

IIndicatorChartPanel getIndicatorChartPanel()
Provides access to IIndicatorChartPanel

Returns:
IIndicatorChartPanel interface

isLive

boolean isLive()
Returns true when indicator is used on Live account, false otherwise

Returns:
true when indicator is used on Live account, false otherwise