public class SQConst
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BAD_NUMBER
The Constant BAD_NUMBER.
|
static java.lang.String |
CHART_TYPE_AREA
The Constant CHART_TYPE_AREA.
|
static java.lang.String |
CHART_TYPE_LINE
The Constant CHART_TYPE_LINE.
|
static java.lang.String |
DATA_TYPE_AD
The Constant DATA_TYPE_AD.
|
static java.lang.String |
DATA_TYPE_MAIN
The Constant DATA_TYPE_MAIN.
|
static java.lang.String |
DATA_TYPE_P
The Constant DATA_TYPE_P.
|
static java.lang.String |
DATA_TYPE_RT
The Constant DATA_TYPE_RT.
|
static java.lang.String |
DIRECTION_ALL
The Constant DIRECTION_ALL.
|
static java.lang.String |
DIRECTION_LONG
The Constant DIRECTION_LONG.
|
static java.lang.String |
DIRECTION_SHORT
The Constant DIRECTION_SHORT.
|
static java.lang.String |
KEY_SAMPLE_ALL
The Constant KEY_SAMPLE_ALL.
|
static java.lang.String |
KEY_SAMPLE_IS
The Constant KEY_SAMPLE_IS.
|
static java.lang.String |
KEY_SAMPLE_IS_TRAINING
The Constant KEY_SAMPLE_IS_TRAINING.
|
static java.lang.String |
KEY_SAMPLE_IS_VALIDATION
The Constant KEY_SAMPLE_IS_VALIDATION.
|
static java.lang.String |
KEY_SAMPLE_OOS1
The Constant KEY_SAMPLE_OOS1.
|
static java.lang.String |
KEY_SAMPLE_OOS2
The Constant KEY_SAMPLE_OOS2.
|
static java.lang.String |
KEY_SAMPLE_OOS3
The Constant KEY_SAMPLE_OOS3.
|
static int |
LOGIC_BOOLEAN
The Constant LOGIC_BOOLEAN.
|
static int |
LOGIC_FUZZY
The Constant LOGIC_FUZZY.
|
static java.awt.Color |
mainEquityColor
The Constant mainEquityColor.
|
static byte |
ORDER_BALANCE
The Constant ORDER_BALANCE.
|
static byte |
ORDER_BUY
The Constant ORDER_BUY.
|
static byte |
ORDER_BUY_EXIT
The Constant ORDER_BUY_EXIT.
|
static byte |
ORDER_BUY_LIMIT
The Constant ORDER_BUY_LIMIT.
|
static byte |
ORDER_BUY_STOP
The Constant ORDER_BUY_STOP.
|
static byte |
ORDER_BUYTOCOVER_LIMIT
The Constant ORDER_BUYTOCOVER_LIMIT.
|
static byte |
ORDER_BUYTOCOVER_STOP
The Constant ORDER_BUYTOCOVER_STOP.
|
static byte |
ORDER_CLOSE_BALANCE
The Constant ORDER_CLOSE_BALANCE.
|
static byte |
ORDER_CLOSE_COMMISSION
The Constant ORDER_CLOSE_COMMISSION.
|
static byte |
ORDER_CLOSE_DELETE
The Constant ORDER_CLOSE_DELETE.
|
static byte |
ORDER_CLOSE_ENDTEST
The Constant ORDER_CLOSE_ENDTEST.
|
static byte |
ORDER_CLOSE_EOD
The Constant ORDER_CLOSE_EOD.
|
static byte |
ORDER_CLOSE_EXPIRED
The Constant ORDER_CLOSE_EXPIRED.
|
static byte |
ORDER_CLOSE_MANUAL
The Constant ORDER_CLOSE_MANUAL.
|
static byte |
ORDER_CLOSE_OCA
The Constant ORDER_CLOSE_OCA.
|
static byte |
ORDER_CLOSE_PT
The Constant ORDER_CLOSE_PT.
|
static byte |
ORDER_CLOSE_REPLACED
The Constant ORDER_CLOSE_REPLACED.
|
static byte |
ORDER_CLOSE_REVERSED
The Constant ORDER_CLOSE_REVERSED.
|
static byte |
ORDER_CLOSE_SL
The Constant ORDER_CLOSE_SL.
|
static byte |
ORDER_DEPOSIT
The Constant ORDER_DEPOSIT.
|
static byte |
ORDER_SELL
The Constant ORDER_SELL.
|
static byte |
ORDER_SELL_EXIT
The Constant ORDER_SELL_EXIT.
|
static byte |
ORDER_SELL_LIMIT
The Constant ORDER_SELL_LIMIT.
|
static byte |
ORDER_SELL_STOP
The Constant ORDER_SELL_STOP.
|
static byte |
ORDER_SELLTOCOVER_LIMIT
The Constant ORDER_SELLTOCOVER_LIMIT.
|
static byte |
ORDER_SELLTOCOVER_STOP
The Constant ORDER_SELLTOCOVER_STOP.
|
static byte |
ORDER_STATUS_CLOSED
The Constant ORDER_STATUS_CLOSED.
|
static byte |
ORDER_STATUS_OPENED
The Constant ORDER_STATUS_OPENED.
|
static byte |
ORDER_WITHDRAWAL
The Constant ORDER_WITHDRAWAL.
|
static java.lang.String |
PL_GLOBAL
The Constant PL_GLOBAL.
|
static java.lang.String |
PL_IN_MONEY
The Constant PL_IN_MONEY.
|
static java.lang.String |
PL_IN_PCT
The Constant PL_IN_PCT.
|
static java.lang.String |
PL_IN_TICKS
The Constant PL_IN_TICKS.
|
static int |
PRECISION_BAR_OPEN
The Constant PRECISION_BAR_OPEN.
|
static int |
PRECISION_BASE_TF
The Constant PRECISION_BASE_TF.
|
static int |
PRECISION_MAIN_TF
The Constant PRECISION_MAIN_TF.
|
static int |
PRECISION_REALTICK
The Constant PRECISION_REALTICK.
|
static int |
PRECISION_TICK
The Constant PRECISION_TICK.
|
static java.lang.String |
RESULT_OK
The Constant RESULT_OK.
|
static byte |
SAMPLE_ALL
The Constant SAMPLE_ALL.
|
static byte |
SAMPLE_IS
The Constant SAMPLE_IS.
|
static byte |
SAMPLE_IS_TRAINING
The Constant SAMPLE_IS_TRAINING.
|
static byte |
SAMPLE_IS_VALIDATION
The Constant SAMPLE_IS_VALIDATION.
|
static byte |
SAMPLE_OOS1
The Constant SAMPLE_OOS1.
|
static byte |
SAMPLE_OOS2
The Constant SAMPLE_OOS2.
|
static byte |
SAMPLE_OOS3
The Constant SAMPLE_OOS3.
|
static java.lang.String |
SQL_KEY_SHOW_SNIPPETS_ERRORS
The Constant SQL_KEY_SHOW_SNIPPETS_ERRORS.
|
static java.lang.String |
SYMBOL_ALL
The Constant SYMBOL_ALL.
|
static java.lang.String |
SYMBOL_ALL_AS_ONE_SINGLE_RESULT
The Constant SYMBOL_ALL_AS_ONE_SINGLE_RESULT.
|
static java.lang.String |
SYMBOL_BALANCE
The Constant SYMBOL_BALANCE.
|
static java.lang.String |
SYMBOL_PORTFOLIO
The Constant SYMBOL_PORTFOLIO.
|
static int |
TF_BASE
The Constant TF_BASE.
|
static int |
TF_CURRENT
The Constant TF_CURRENT.
|
static int |
TF_D1
The Constant TF_D1.
|
static int |
TF_H1
The Constant TF_H1.
|
static int |
TF_H2
The Constant TF_H2.
|
static int |
TF_H4
The Constant TF_H4.
|
static int |
TF_INTRADAY
The Constant TF_INTRADAY.
|
static int |
TF_M1
The Constant TF_M1.
|
static int |
TF_M14
The Constant TF_M14.
|
static int |
TF_M15
The Constant TF_M15.
|
static int |
TF_M30
The Constant TF_M30.
|
static int |
TF_M5
The Constant TF_M5.
|
static int |
TF_M53
The Constant TF_M53.
|
static int |
TF_TICK
The Constant TF_TICK.
|
static int |
TF_UNKNOWN
The Constant TF_UNKNOWN.
|
static int |
TF_VARIOUS
The Constant TF_VARIOUS.
|
static java.lang.String |
TRADE_PERIOD_CLOSE_TIME
The Constant TRADE_PERIOD_CLOSE_TIME.
|
static java.lang.String |
TRADE_PERIOD_OPEN_TIME
The Constant TRADE_PERIOD_OPEN_TIME.
|
static java.lang.String |
X_AXIS_TYPE_TIME
The Constant X_AXIS_TYPE_TIME.
|
static java.lang.String |
X_AXIS_TYPE_TRADES
The Constant X_AXIS_TYPE_TRADES.
|
static int |
YEAR_ALL
The Constant YEAR_ALL.
|
Constructor and Description |
---|
SQConst() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
dataTypeToString(java.lang.String dataType,
boolean shortName)
Data type to string.
|
static java.lang.String |
directionToString(java.lang.String direction,
boolean shortName)
Direction to string.
|
static byte |
getSampleConstant(java.lang.String sample)
Gets the sample constant.
|
static java.lang.String |
intArrayToString(int[] data)
Int array to string.
|
static java.lang.String |
plTypeToString(java.lang.String plType,
boolean shortName)
Pl type to string.
|
static java.lang.String |
precisionToString(int period)
Precision to string.
|
static java.lang.String |
sampleTypeToString(java.lang.String sampleType,
boolean shortName)
Sample type to string.
|
static int[] |
stringToIntArray(java.lang.String data)
String to int array.
|
static int |
timeframeFromString(java.lang.String strPeriod)
Timeframe from string.
|
static java.lang.String |
timeframeToString(int period)
returns period as a string (for example M5 for 5 minutes, etc.)
|
public static final int TF_INTRADAY
public static final int TF_VARIOUS
public static final int TF_UNKNOWN
public static final int TF_CURRENT
public static final int TF_TICK
public static final int TF_BASE
public static final int TF_M1
public static final int TF_M5
public static final int TF_M14
public static final int TF_M15
public static final int TF_M30
public static final int TF_M53
public static final int TF_H1
public static final int TF_H2
public static final int TF_H4
public static final int TF_D1
public static final int PRECISION_BAR_OPEN
public static final int PRECISION_MAIN_TF
public static final int PRECISION_BASE_TF
public static final int PRECISION_TICK
public static final int PRECISION_REALTICK
public static final java.lang.String KEY_SAMPLE_ALL
public static final java.lang.String KEY_SAMPLE_IS
public static final java.lang.String KEY_SAMPLE_OOS1
public static final java.lang.String KEY_SAMPLE_OOS2
public static final java.lang.String KEY_SAMPLE_OOS3
public static final java.lang.String KEY_SAMPLE_IS_TRAINING
public static final java.lang.String KEY_SAMPLE_IS_VALIDATION
public static final byte SAMPLE_ALL
public static final byte SAMPLE_IS_TRAINING
public static final byte SAMPLE_IS_VALIDATION
public static final byte SAMPLE_IS
public static final byte SAMPLE_OOS1
public static final byte SAMPLE_OOS2
public static final byte SAMPLE_OOS3
public static final byte ORDER_BUY
public static final byte ORDER_SELL
public static final byte ORDER_BUY_LIMIT
public static final byte ORDER_BUY_STOP
public static final byte ORDER_SELL_LIMIT
public static final byte ORDER_SELL_STOP
public static final byte ORDER_DEPOSIT
public static final byte ORDER_WITHDRAWAL
public static final byte ORDER_BUY_EXIT
public static final byte ORDER_SELL_EXIT
public static final byte ORDER_SELLTOCOVER_STOP
public static final byte ORDER_BUYTOCOVER_STOP
public static final byte ORDER_SELLTOCOVER_LIMIT
public static final byte ORDER_BUYTOCOVER_LIMIT
public static final byte ORDER_BALANCE
public static final byte ORDER_CLOSE_MANUAL
public static final byte ORDER_CLOSE_SL
public static final byte ORDER_CLOSE_PT
public static final byte ORDER_CLOSE_ENDTEST
public static final byte ORDER_CLOSE_EOD
public static final byte ORDER_CLOSE_EXPIRED
public static final byte ORDER_CLOSE_REVERSED
public static final byte ORDER_CLOSE_DELETE
public static final byte ORDER_CLOSE_REPLACED
public static final byte ORDER_CLOSE_BALANCE
public static final byte ORDER_CLOSE_OCA
public static final byte ORDER_CLOSE_COMMISSION
public static final java.lang.String DIRECTION_ALL
public static final java.lang.String DIRECTION_LONG
public static final java.lang.String DIRECTION_SHORT
public static final java.lang.String PL_GLOBAL
public static final java.lang.String PL_IN_MONEY
public static final java.lang.String PL_IN_PCT
public static final java.lang.String PL_IN_TICKS
public static final java.lang.String SYMBOL_ALL
public static final java.lang.String SYMBOL_PORTFOLIO
public static final java.lang.String SYMBOL_BALANCE
public static final java.lang.String SYMBOL_ALL_AS_ONE_SINGLE_RESULT
public static final int BAD_NUMBER
public static final byte ORDER_STATUS_OPENED
public static final byte ORDER_STATUS_CLOSED
public static final java.lang.String X_AXIS_TYPE_TRADES
public static final java.lang.String X_AXIS_TYPE_TIME
public static final java.lang.String CHART_TYPE_LINE
public static final java.lang.String CHART_TYPE_AREA
public static final java.lang.String RESULT_OK
public static final int LOGIC_BOOLEAN
public static final int LOGIC_FUZZY
public static final java.lang.String DATA_TYPE_MAIN
public static final java.lang.String DATA_TYPE_AD
public static final java.lang.String DATA_TYPE_P
public static final java.lang.String DATA_TYPE_RT
public static final java.lang.String TRADE_PERIOD_OPEN_TIME
public static final java.lang.String TRADE_PERIOD_CLOSE_TIME
public static final int YEAR_ALL
public static final java.lang.String SQL_KEY_SHOW_SNIPPETS_ERRORS
public static final java.awt.Color mainEquityColor
public static java.lang.String timeframeToString(int period)
period
- the periodpublic static int timeframeFromString(java.lang.String strPeriod)
strPeriod
- the str periodpublic static java.lang.String precisionToString(int period)
period
- the periodpublic static byte getSampleConstant(java.lang.String sample)
sample
- the samplepublic static java.lang.String plTypeToString(java.lang.String plType, boolean shortName)
plType
- the pl typeshortName
- the short namepublic static java.lang.String directionToString(java.lang.String direction, boolean shortName)
direction
- the directionshortName
- the short namepublic static java.lang.String dataTypeToString(java.lang.String dataType, boolean shortName)
dataType
- the data typeshortName
- the short namepublic static java.lang.String sampleTypeToString(java.lang.String sampleType, boolean shortName)
sampleType
- the sample typeshortName
- the short namepublic static java.lang.String intArrayToString(int[] data)
data
- the datapublic static int[] stringToIntArray(java.lang.String data)
data
- the data