|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IContext
Gives access to the various parts of the system
Method Summary | ||
---|---|---|
|
executeTask(Callable<T> callable)
Every strategy executes in it's own thread. |
|
IChart |
getChart(Instrument instrument)
Returns first chart for specified instrument. |
|
IConsole |
getConsole()
Returns interface that allows to write messages into the Messages table |
|
IEngine |
getEngine()
Returns interface of the main engine (order submitting, merging etc) |
|
IHistory |
getHistory()
Returns interface that allows access to history data |
|
IIndicators |
getIndicators()
Returns interface that allows to calculate indicator values |
|
IUserInterface |
getUserInterface()
Returns an interface which provides control to custom strategy tabs in the main and bottom panels |
|
boolean |
isFullAccessGranted()
Returns true if strategy is granted full access. |
|
boolean |
isStopped()
Returns true if strategy were stopped. |
|
void |
stop()
Stops strategy execution. |
Method Detail |
---|
IEngine getEngine()
IChart getChart(Instrument instrument)
instrument
- currency pair
IUserInterface getUserInterface()
IHistory getHistory()
IConsole getConsole()
IIndicators getIndicators()
void stop()
boolean isStopped()
boolean isFullAccessGranted()
<T> Future<T> executeTask(Callable<T> callable)
IStrategy
will be executed in order.
Submission of orders can be called only from these thread.
If some critical action like submitting order needs to be called from other thread, you need to use this method to access
strategy thread.
T
- type of the return valuecallable
- task to execute
Future
that can be used to get result of execution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |