table core

Brief

The core functions and constants.

Details

The table core is always defined in the indicator, signal or strategy.

Static Public Properties

host

The host application.

indicators

The indicator manager.

Static Public Methods

app_path

Gets the path to lua5.1.dll

autoBuffer

Creates a set of output streams synchronized with the specified stream.

colors

Creates an color table

crosses

Checks whether one stream crosses the other stream in any direction at the specified position.

crossesOver

Checks whether one stream crosses over the other stream at the specified position.

crossesUnder

Checks whether one stream crosses under the other stream at the specified position.

date

Creates date value.

datetime

Creates date and time value.

dateToTable

Converts the date with a number format into the table.

drawLine

Draws the line in the output stream.

findDate

Searches in the price stream for the specified date.

formatDate

Formats date/time into a string.

getcandle

Gets the begin and end of the candle to which the specified date belongs.

isnontrading

Checks whether the specified date and time is the regular non-trading hours.

makeHttpLoader

Creates an HTTP reader.

now

Returns the current local date and time.

parseCsv

Parses comma-separated values.

range

Creates the range table for the statistics methods using the 'from' and 'to' indexes.

rangeFrom

Creates the range table for the statistics methods using the 'from' index and the size of the range.

rangeTo

Creates the range table for the statistics methods using the 'to' index and the size of the range.

rgb

Creates the color from the red, green, and blue components.

tableToDate

Converts the table into the date with a number format.

valuemap

Creates a value map.

Public Constant Properties

ASYNC_REDRAW

The flag indicating that the indicator must be redrawn after async notification.

Bar

The type of the indicator required source or of the line output.

COLOR_BACKGROUND

The identifier of the color (default color of chart background)

COLOR_CUSTOMLEVEL

The identifier of the color (default color of custom level lines)

COLOR_DOWNCANDLE

The identifier of the color (default color of descending candles)

COLOR_LABEL

The identifier of the color (default color of labels)

COLOR_LINE

The identifier of the color (default color of lines)

COLOR_UPCANDLE

The identifier of the color (default color of ascending candles)

CR_BOTTOM

The type of the label coordinate.

CR_CENTER

The type of the label coordinate.

CR_CHART

The type of the label coordinate.

CR_LEFT

The type of the label coordinate.

CR_RIGHT

The type of the label coordinate.

CR_TOP

The type of the label coordinate.

Dot

The type of the indicator output.

FLAG_ACCOUNT

The parameter behavior flag.

FLAG_ALLOW_TRADE

The parameter behavior flag.

FLAG_EMAIL

The parameter behavior flag.

FLAG_INDICATOR

The parameter behavior flag.

FLAG_INSTRUMENTS

The parameter behavior flag.

FLAG_LEVEL_STYLE

The parameter behavior flag.

FLAG_LINE_STYLE

The parameter behavior flag.

FLAG_ONLYINDICATORS

The parameter behavior flag.

FLAG_ONLYOSCILLATORS

The parameter behavior flag.

FLAG_ORDER

The parameter behavior flag.

FLAG_PERIODS

The parameter behavior flag.

FLAG_PERIODS_EDIT

The parameter behavior flag.

FLAG_PRICE

The parameter behavior flag.

FLAG_SOUND

The parameter behavior flag.

FLAG_STRATEGY

The parameter behavior flag.

FLAG_TRADE

The parameter behavior flag.

H_Center

The horizonal alignment of a label.

H_Left

The horizonal alignment of a label.

H_Right

The horizonal alignment of a label.

Indicator

The type of the indicator.

Line

The type of the indicator output.

LINE_DASH

The line style (dashed line).

LINE_DASHDOT

The line style (dash-dotted line).

LINE_DOT

The line style (dotted line).

LINE_NONE

The line style (invisible line).

LINE_SOLID

The line style (solid line).

Oscillator

The type of the indicator.

Tick

The type of the indicator required source.

TZ_EST

Time zone (New York time).

TZ_FINANCIAL

The financial time time zone.

TZ_LOCAL

The user local time zone.

TZ_SERVER

The time zone of the server.

TZ_TS

The time zone chosen to show dates in the host application.

TZ_UTC

Time zone (Universal Coordinated Time).

UpdateAll

Indicator update mode.

UpdateLast

Indicator update mode.

UpdateNew

Indicator Update mode.

V_Bottom

The vertical alignment of a label.

V_Center

The vertical alignment of a label.

V_Top

The vertical alignment of a label.

back