TSLab API Docs  1
TSLab.Script.IRuntime Interface Reference

Script's runtime support. More...

Inheritance diagram for TSLab.Script.IRuntime:

Public Member Functions

ISecurity GetSecurity (string source)
 Get Security by the source name. the source name Security
 
IOption GetOption (string source)
 Get Option by the source name. the source name the Option
 
DateTime GetBarTime (int barNum)
 Get date|time for the selected bar.
 
bool Recalc (bool inAnyCase=false)
 

Properties

IEnumerable< ISecuritySecurities [get]
 Get list of available securities.
 
int BarsCount [get]
 Get available candles count.
 
bool IsFixedBarsCount [get]
 Is fixed bars count mode.
 
Interval IntervalInstance [get]
 Paper interval.
 
int Interval [get]
 Paper interval in base units.
 
DataIntervals IntervalBase [get]
 Paper interval base.
 
int TradeFromBar [get]
 Shows bar for trading start.
 
bool IsLastBarUsed [get]
 Is last bar used for the trading signals generation or not.
 
bool IsLastBarClosed [get]
 Is last bar closed.
 
double ScriptResult [get]
 Some user calculated result which can be used as optimization result. More...
 
IContext Context [get]
 
Version Version [get]
 
bool IsAgentMode [get]
 
string TradeName [get]
 

Detailed Description

Script's runtime support.

Property Documentation

IContext TSLab.Script.IRuntime.Context
get

summary> Get the current program version

bool TSLab.Script.IRuntime.IsAgentMode
get

summary> The current trade name for order comments

double TSLab.Script.IRuntime.ScriptResult
get

Some user calculated result which can be used as optimization result.

summary> Get the current cache context

Version TSLab.Script.IRuntime.Version
get

summary> Get the current execution mode (Laboratory or IAgent)