TSLab API Docs  1
TSLab.Script Namespace Reference

Namespaces

Classes

class  AggregatedHistogramBarsProvider
 
class  AllTimeTradeHistogram
 
class  AllTimeTradeStatistics
 
class  AllTimeTradeStatisticsWithKind
 
struct  AlphaColor
 
class  AlphaColors
 
class  BaseCache
 
class  BaseCacheContext
 
class  BaseRefreshableTradeHistogram
 
class  BaseTradeHistogram
 
class  BaseTradeHistogramsCache
 
class  BaseTradeHistogramSettings
 
class  BaseTradeStatistics
 
class  BaseTradeStatisticsWithKind
 
class  CachedTradeHistogramFactory
 
struct  Color
 Script Color More...
 
class  ColorExtensions
 
class  ColorParser
 
class  Converter
 
class  DerivativeTradeStatisticsCache
 
class  DerivativeTradeStatisticsCacheContext
 
struct  Double2
 Structure with 2 double values. Can be used to present the range. More...
 
class  Double2N
 
class  EmptyCachedTradeHistogram
 
class  EmptyTradeHistogramBar
 
class  EnumExtensions
 
class  FootPrint
 
class  GraphListBase
 
interface  IAggregatedHistogramBarsProvider
 
interface  IAllTimeTradeStatisticsWithKind
 
interface  IBarsGraphList
 
interface  IBaseCache
 
interface  IBaseChartPane
 
interface  IBasePane
 
interface  IBaseTradeStatistics
 
interface  IBaseTradeStatisticsWithKind
 
interface  ICachedTradeHistogram
 
interface  ICandleGraphList
 
interface  IDerivativeTradeStatisticsCache
 
interface  IGraphList
 
interface  IGraphListBase
 Graph list functions More...
 
interface  IGraphPane
 Chart's pane More...
 
interface  IInteractiveGraphList
 
interface  ILastContractsTradeStatistics
 
interface  ILastContractsTradeStatisticsWithKind
 
interface  ILightInteractiveGraphList
 
interface  IPane
 
interface  IPosition
 Trade position More...
 
interface  IPositionInfo
 
interface  IPositionsList
 List of Positions More...
 
interface  IRuntime
 Script's runtime support. More...
 
interface  ISecurity
 Paper functions. More...
 
interface  ITradeHistogram
 
interface  ITradeHistogramBar
 
interface  ITradeHistogramsCache
 
interface  ITradesCache
 
interface  ITradeStatistics
 
interface  ITradeStatisticsCache
 
interface  ITradeStatisticsWithKind
 
class  LastContractsTradeHistogram
 
class  LastContractsTradeHistogramSettings
 
class  LastContractsTradeStatistics
 
class  LastContractsTradeStatisticsWithKind
 
class  LastTradeHistogramSettings
 
class  LastTradeStatistics
 
class  MultiBarsCachedTradeHistogram
 
class  NullTradeHistogramsCache
 
struct  Point
 
struct  Rect
 
class  ScriptColors
 
class  ScriptException
 The script exception More...
 
class  ScriptQueueData
 
class  SecurityUtils
 
class  SingleBarCachedTradeHistogram
 
struct  Size
 
class  TradeHistogram
 
class  TradeHistogramArguments
 
class  TradeHistogramBar
 
class  TradeHistogramBarFactory
 
class  TradeHistogramBarsAggregator
 
class  TradeHistogramsCache
 
class  TradeHistogramsCaches
 
class  TradeHistogramSettings
 
class  TradesCache
 
class  TradeStatistics
 
class  TradeStatisticsCache
 
class  TradeStatisticsWithKind
 
class  UnrefreshableTradeHistogram
 

Enumerations

enum  CandleFillStyle : byte { None = 0, Increasing = 1, Decreasing = 2, All = Increasing | Decreasing }
 
enum  CandleStyles { CandleStyles.BAR_CANDLE, CandleStyles.BAR, CandleStyles.CANDLE_AND_QUEUE }
 
enum  ComparisonMode {
  Greater, GreaterOrEqual, Less, LessOrEqual,
  AreEqual, AreNotEqual
}
 
enum  ExtremumPriceMode { Minimum, Maximum }
 
enum  PaneStyle { PaneStyle.Graph, PaneStyle.Canvas, PaneStyle.Control, PaneStyle.DataGrid }
 
enum  LineStyles {
  LineStyles.SOLID, LineStyles.DOT, LineStyles.DASH, LineStyles.DASH_DOT,
  LineStyles.DASH_DOT_DOT
}
 Styles of the list More...
 
enum  ListStyles {
  ListStyles.LINE, ListStyles.HISTOHRAM, ListStyles.HISTOHRAM_LINE, ListStyles.HISTOHRAM_FILL,
  ListStyles.POINT, ListStyles.LINE_WO_ZERO, ListStyles.LINE_BW_POINTS, ListStyles.SPLINE
}
 Styles of the list line More...
 
enum  PaneSides {
  PaneSides.RIGHT = 0, PaneSides.LEFT = 1, PaneSides.VSIDE1 = 2, PaneSides.VSIDE2 = 3,
  PaneSides.VSIDE3 = 4, PaneSides.VSIDE4 = 5, PaneSides.VSIDE5 = 6, PaneSides.VSIDE_LAST = 6
}
 The pane side where chart list will be presented. More...
 
enum  PositionState { PositionState.NoError, PositionState.HaveError, PositionState.HaveEntrySignal, PositionState.HaveCloseSignal }
 Состояние позиции (применимо только к реальной торговле) More...
 
enum  PositionVisibilityStyle : byte {
  None = 0, Visible = 1, Stop = 2, Text = 4,
  Icon = 8, Links = 16, All = Visible | Stop | Text | Icon | Links
}
 
enum  QuantityMode { Quantity, QuantityInLots, TradesCount }
 Режим отображения рыночной статистики (объем, лоты, количество сделок) More...
 
enum  TextAlignment { Left, Right, Center, Justify }
 
enum  TradeStatisticsKind {
  TradesCount, Quantity, AskQuantity, BidQuantity,
  DeltaAskBidQuantity, RelativeDeltaAskBidQuantityPercent
}
 
enum  TrimValueMode { None, Relative, Absolute }
 
enum  ValueForPeriodMode { Sum, Average }
 

Functions

delegate double CommissionDelegate (IPosition pos, double price, double shares, bool isEntry, bool isPart)
 Calculates the order commission. The postion The order price The order volume Is order entry or exit Is it partial entry or exit The calculated commission
 

Enumeration Type Documentation

Enumerator
BAR_CANDLE 

Candle

BAR 

candles

CANDLE_AND_QUEUE 

candles and orders queue

Styles of the list

Enumerator
SOLID 

Solid line

DOT 

Dot line (. . . . .)

DASH 

Dash line (_ _ _ _ _)

DASH_DOT 

Dash-dot line (. _ . _ .)

DASH_DOT_DOT 

Dash-dot-dot line (.. _ .. _ ..)

Styles of the list line

Enumerator
LINE 

Line list style

HISTOHRAM 

Histogram list style

HISTOHRAM_LINE 

Thick histogram list style

HISTOHRAM_FILL 

Histogram list style without space

POINT 

Point list style

LINE_WO_ZERO 

Line list style with skipped zero values

LINE_BW_POINTS 

Line list style with skipped zero values

SPLINE 

Line list spline

The pane side where chart list will be presented.

Enumerator
RIGHT 

Right pane

LEFT 

Left pane

VSIDE1 

Virtual side 1

VSIDE2 

Virtual side 2

VSIDE3 

Virtual side 3

VSIDE4 

Virtual side 4

VSIDE5 

Virtual side 5

VSIDE_LAST 

The last virtual side

Enumerator
Graph 

the chart pane

Canvas 

the canvas pane

Control 

the control pane

DataGrid 

the dataGrid pane

Состояние позиции (применимо только к реальной торговле)

Enumerator
NoError 

позиция не содержит ошибок

HaveError 

позиция выполнена с торговыми ошибками

HaveEntrySignal 

позиция содержит не исполненные торговые сигналы на открытие

HaveCloseSignal 

позиция содержит не исполненные торговые сигналы на закрытие

Режим отображения рыночной статистики (объем, лоты, количество сделок)