com.dukascopy.api.indicators
Interface IIndicatorContext


public interface IIndicatorContext

Provides access to system services


Method Summary
 IConsole getConsole()
          Returns interface that allows to write messages into the Messages table
 IHistory getHistory()
          Provides access to history from indicators
 IIndicatorsProvider getIndicatorsProvider()
          Returns interface that can be used to get indicators registered in the system
 Instrument getInstrument()
          Returns instrument of the primary input when called from IIndicator.calculate(int, int) or IIndicator.setInputParameter(int, java.lang.Object) methods
 OfferSide getOfferSide()
          Returns offer side of the primary input when called from IIndicator.calculate(int, int) or IIndicator.setInputParameter(int, java.lang.Object) methods
 Period getPeriod()
          Returns period of the primary input when called from IIndicator.calculate(int, int) or IIndicator.setInputParameter(int, java.lang.Object) methods
 

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()
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()
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()
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 pimary input

getHistory

IHistory getHistory()
Provides access to history from indicators

Returns:
history interface


Copyright © 2011. All Rights Reserved.