-
Notifications
You must be signed in to change notification settings - Fork 17
Constants API
kabirsandhu edited this page Jul 5, 2016
·
1 revision
The Constants File provides access to a number of constants used by Alveo. Price, Market Info, Colors, etc.
Name | Value |
---|---|
PERIOD_M1 | 1 |
PERIOD_M5 | 5 |
PERIOD_M15 | 15 |
PERIOD_M30 | 30 |
PERIOD_H1 | 60 |
PERIOD_H4 | 240 |
PERIOD_D1 | 1440 |
PERIOD_W1 | 10080 |
PERIOD_MN1 | 43200 |
Name | Value |
---|---|
PRICE_CLOSE | 0 |
PRICE_OPEN | 1 |
PRICE_HIGH | 2 |
PRICE_LOW | 3 |
PRICE_MEDIAN | 4 |
PRICE_TYPICAL | 5 |
PRICE_WEIGHTED | 6 |
Name | Value |
---|---|
MODE_OPEN | 0 |
MODE_LOW | 1 |
MODE_HIGH | 2 |
MODE_CLOSE | 3 |
MODE_VOLUME | 4 |
MODE_TIME | 5 |
Name | Value |
---|---|
MODE_SMA | 0 |
MODE_EMA | 1 |
MODE_SMMA | 2 |
MODE_LWMA | 3 |
Name | Value |
---|---|
OP_BUY | 0 |
OP_SELL | 1 |
OP_BUYLIMIT | 2 |
OP_SELLLIMIT | 3 |
OP_BUYSTOP | 4 |
OP_SELLSTOP | 5 |
Name | Value |
---|---|
SELECT_BY_POS | 0 |
SELECT_BY_TICKET | 1 |
Name | Value |
---|---|
MODE_TRADES | 0 |
MODE_HISTORY | 1 |
Name | Value |
---|---|
MODE_BID | 9 |
MODE_ASK | 10 |
MODE_POINT | 11 |
MODE_DIGITS | 12 |
MODE_SPREAD | 13 |
MODE_STOPLEVEL | 14 |
MODE_LOTSIZE | 15 |
MODE_TICKVALUE | 16 |
MODE_TICKSIZE | 17 |
MODE_SWAPLONG | 18 |
MODE_SWAPSHORT | 19 |
MODE_STARTING | 20 |
MODE_EXPIRATION | 21 |
MODE_TRADEALLOWED | 22 |
MODE_MINLOT | 23 |
MODE_LOTSTEP | 24 |
MODE_MAXLOT | 25 |
MODE_SWAPTYPE | 26 |
MODE_PROFITCALCMODE | 27 |
MODE_MARGINCALCMODE | 28 |
MODE_MARGININIT | 29 |
MODE_MARGINMAINTENANCE | 30 |
MODE_MARGINHEDGED | 31 |
MODE_MARGINREQUIRED | 32 |
MODE_FREEZELEVEL | 33 |
Name | Value |
---|---|
MODE_ASCEND | 1 |
MODE_DESCEND | 2 |
Name | Value |
---|---|
MODE_GATORJAW | 1 |
MODE_GATORTEETH | 2 |
MODE_GATORLIPS | 3 |
Name | Value |
---|---|
MODE_MAIN | 0 |
MODE_SIGNAL | 1 |
MODE_PLUSDI | 1 |
MODE_MINUSDI | 2 |
MODE_UPPER | 1 |
MODE_LOWER | 2 |
Name | Value |
---|---|
MODE_TENKANSEN | 1 |
MODE_KIJUNSEN | 2 |
MODE_SENKOUSPANA | 3 |
MODE_SENKOUSPANB | 4 |
MODE_CHINKOUSPAN | 5 |
Name | Value |
---|---|
SYMBOL_LEFTPRICE | 5 |
SYMBOL_RIGHTPRICE | 6 |
Name | Value |
---|---|
DRAW_LINE | 0 |
DRAW_SECTION | 1 |
DRAW_HISTOGRAM | 2 |
DRAW_ARROW | 3 |
DRAW_ZIGZAG | 4 |
DRAW_NONE | 12 |
Name | Value |
---|---|
STYLE_SOLID | 0 |
STYLE_DASH | 1 |
STYLE_DOT | 2 |
STYLE_DASHDOT | 3 |
STYLE_DASHDOTDOT | 4 |
Name | Value |
---|---|
SYMBOL_THUMBSUP | 67 |
SYMBOL_THUMBSDOWN | 68 |
SYMBOL_ARROWUP | 241 |
SYMBOL_ARROWDOWN | 242 |
SYMBOL_STOPSIGN | 251 |
SYMBOL_CHECKSIGN | 252 |
Name | Value |
---|---|
IDOK | 1 |
IDCANCEL | 2 |
IDABORT | 3 |
IDRETRY | 4 |
IDIGNORE | 5 |
IDYES | 6 |
IDNO | 7 |
IDTRYAGAIN | 10 |
IDCONTINUE | 11 |
MB_OK | 0X00000000 |
MB_OKCANCEL | 0X00000001 |
MB_ABORTRETRYIGNORE | 0X00000002 |
MB_YESNOCANCEL | 0X00000003 |
MB_YESNO | 0X00000004 |
MB_RETRYCANCEL | 0X00000005 |
MB_CANCELTRYCONTINUE | 0X00000006 |
MB_ICONSTOP | 0X00000010 |
MB_ICONERROR | 0X00000010 |
MB_ICONHAND | 0X00000010 |
MB_ICONQUESTION | 0X00000020 |
MB_ICONEXCLAMATION | 0X00000030 |
MB_ICONWARNING | 0X00000030 |
MB_ICONINFORMATION | 0X00000040 |
MB_ICONASTERISK | 0X00000040 |
MB_DEFBUTTON1 | 0X00000000 |
MB_DEFBUTTON2 | 0X00000100 |
MB_DEFBUTTON3 | 0X00000200 |
MB_DEFBUTTON4 | 0X00000300 |
Name | Value |
---|---|
OBJ_VLINE | 0 |
OBJ_HLINE | 1 |
OBJ_TREND | 2 |
OBJ_TRENDBYANGLE | 3 |
OBJ_REGRESSION | 4 |
OBJ_CHANNEL | 5 |
OBJ_STDDEVCHANNEL | 6 |
OBJ_GANNLINE | 7 |
OBJ_GANNFAN | 8 |
OBJ_GANNGRID | 9 |
OBJ_FIBO | 10 |
OBJ_FIBOTIMES | 11 |
OBJ_FIBOFAN | 12 |
OBJ_FIBOARC | 13 |
OBJ_EXPANSION | 14 |
OBJ_FIBOCHANNEL | 15 |
OBJ_RECTANGLE | 16 |
OBJ_TRIANGLE | 17 |
OBJ_ELLIPSE | 18 |
OBJ_PITCHFORK | 19 |
OBJ_CYCLES | 20 |
OBJ_TEXT | 21 |
OBJ_ARROW | 22 |
OBJ_LABLE | 23 |
Name | Value |
---|---|
OBJPROP_TIME1 | 0 |
OBJPROP_PRICE1 | 1 |
OBJPROP_TIME2 | 2 |
OBJPROP_PRICE2 | 3 |
OBJPROP_TIME3 | 4 |
OBJPROP_PRICE3 | 5 |
OBJPROP_COLOR | 6 |
OBJPROP_STYLE | 7 |
OBJPROP_WIDTH | 8 |
OBJPROP_BACK | 9 |
OBJPROP_RAY | 10 |
OBJPROP_ELLIPSE | 11 |
OBJPROP_SCALE | 12 |
OBJPROP_ANGLE | 13 |
OBJPROP_ARROWCODE | 14 |
OBJPROP_TIMEFRAMES | 15 |
OBJPROP_DEVIATION | 16 |
OBJPROP_FONTSIZE | 100 |
OBJPROP_CORNER | 101 |
OBJPROP_XDISTANCE | 102 |
OBJPROP_YDISTANCE | 103 |
OBJPROP_FIBOLEVELS | 200 |
OBJPROP_LEVELCOLOR | 201 |
OBJPROP_LEVELSTYLE | 202 |
OBJPROP_LEVELWIDTH | 203 |
OBJPROP_FIRSTLEVEL | 210 |
Name | Value |
---|---|
OBJ_PERIOD_M1 | 0X0001 |
OBJ_PERIOD_M5 | 0X0002 |
OBJ_PERIOD_M15 | 0X0004 |
OBJ_PERIOD_M30 | 0X0008 |
OBJ_PERIOD_H1 | 0X0010 |
OBJ_PERIOD_H4 | 0X0020 |
OBJ_PERIOD_D1 | 0X0040 |
OBJ_PERIOD_W1 | 0X0080 |
OBJ_PERIOD_MN1 | 0X0100 |
OBJ_ALL_PERIODS | 0X0FF |
EMPTY | -1 |
Name | Value |
---|---|
REASON_REMOVE | 1 |
REASON_RECOMPILE | 2 |
REASON_CHARTCHANGE | 3 |
REASON_CHARTCLOSE | 4 |
REASON_PARAMETERS | 5 |
REASON_ACCOUNT | 6 |
Name | Value |
---|---|
EMPTY_VALUE | 0X7FFFFFFF |
CLR_NONE | 0XFFFFFFFF |
WHOLE_ARRAY | 0 |
Name --- | Value |
---|---|
ERR_NO_ERROR | 0 |
ERR_NO_RESULT | 1 |
ERR_COMMON_ERROR | 2 |
ERR_INVALID_TRADE_PARAMETERS | 3 |
ERR_SERVER_BUSY | 4 |
ERR_OLD_VERSION | 5 |
ERR_NO_CONNECTION | 6 |
ERR_NOT_ENOUGH_RIGHTS | 7 |
ERR_TOO_FREQUENT_REQUESTS | 8 |
ERR_MALFUNCTIONAL_TRADE | 9 |
ERR_ACCOUNT_DISABLED | 64 |
ERR_INVALID_ACCOUNT | 65 |
ERR_TRADE_TIMEOUT | 128 |
ERR_INVALID_PRICE | 129 |
ERR_INVALID_STOPS | 130 |
ERR_INVALID_TRADE_VOLUME | 131 |
ERR_MARKET_CLOSED | 132 |
ERR_TRADE_DISABLED | 133 |
ERR_NOT_ENOUGH_MONEY | 134 |
ERR_PRICE_CHANGED | 135 |
ERR_OFF_QUOTES | 136 |
ERR_BROKER_BUSY | 137 |
ERR_REQUOTE | 138 |
ERR_ORDER_LOCKED | 139 |
ERR_LONG_POSITIONS_ONLY_ALLOWED | 140 |
ERR_TOO_MANY_REQUESTS | 141 |
ERR_TRADE_MODIFY_DENIED | 145 |
ERR_TRADE_CONTEXT_BUSY | 146 |
ERR_TRADE_EXPIRATION_DENIED | 147 |
ERR_TRADE_TOO_MANY_ORDERS | 148 |
ERR_TRADE_HEDGE_PROHIBITED | 149 |
ERR_TRADE_PROHIBITED_BY_FIFO | 150 |
Name --- | Value |
---|---|
ERR_NO_MQLERROR | 4000 |
ERR_WRONG_FUNCTION_POINTER | 4001 |
ERR_ARRAY_INDEX_OUT_OF_RANGE | 4002 |
ERR_NO_MEMORY_FOR_CALL_STACK | 4003 |
ERR_RECURSIVE_STACK_OVERFLOW | 4004 |
ERR_NOT_ENOUGH_STACK_FOR_PARAM | 4005 |
ERR_NO_MEMORY_FOR_PARAM_STRING | 4006 |
ERR_NO_MEMORY_FOR_TEMP_STRING | 4007 |
ERR_NOT_INITIALIZED_STRING | 4008 |
ERR_NOT_INITIALIZED_ARRAYSTRING | 4009 |
ERR_NO_MEMORY_FOR_ARRAYSTRING | 4010 |
ERR_TOO_LONG_STRING | 4011 |
ERR_REMAINDER_FROM_ZERO_DIVIDE | 4012 |
ERR_ZERO_DIVIDE | 4013 |
ERR_UNKNOWN_COMMAND | 4014 |
ERR_WRONG_JUMP | 4015 |
ERR_NOT_INITIALIZED_ARRAY | 4016 |
ERR_DLL_CALLS_NOT_ALLOWED | 4017 |
ERR_CANNOT_LOAD_LIBRARY | 4018 |
ERR_CANNOT_CALL_FUNCTION | 4019 |
ERR_EXTERNAL_CALLS_NOT_ALLOWED | 4020 |
ERR_NO_MEMORY_FOR_RETURNED_STR | 4021 |
ERR_SYSTEM_BUSY | 4022 |
ERR_INVALID_FUNCTION_PARAMSCNT | 4050 |
ERR_INVLAID_FUNCTION_PARAMVALUE | 4051 |
ERR_STRING_FUNCTION_INTERNAL | 4052 |
ERR_SOME_ARRAY_ERROR | 4053 |
ERR_INCORRECT_SERIESARRAY_USING | 4054 |
ERR_CUSTOM_INDICATOR_ERROR | 4055 |
ERR_INCOMPATIBLE_ARRAYS | 4056 |
ERR_GLOBAL_VARAIBLES_PROCESSING | 4057 |
ERR_GLOBAL_VARIABLE_NOT_FOUND | 4058 |
ERR_FUNC_NOT_ALLOWED_IN_TESTING | 4059 |
ERR_FUNCTION_NOT_CONFIRMED | 4060 |
ERR_SEND_MAIL_ERROR | 4061 |
ERR_STRING_PARAMETER_EXPECTED | 4062 |
ERR_INTEGER_PARAMETER_EXPECTED | 4063 |
ERR_DOUBLE_PARAMETER_EXPECTED | 4064 |
ERR_ARRAY_AS_PARAMETER_EXPECTED | 4065 |
ERR_HISTORY_WILL_UPDATED | 4066 |
ERR_TRADE_ERROR | 4067 |
ERR_END_OF_FILE | 4099 |
ERR_SOME_FILE_ERROR | 4100 |
ERR_WRONG_FILE_NAME | 4101 |
ERR_TOO_MANY_OPENED_FILES | 4102 |
ERR_CANNOT_OPEN_FILE | 4103 |
ERR_INCOMPATIBLE_FILEACCESS | 4104 |
ERR_NO_ORDER_SELECTED | 4105 |
ERR_UNKNOWN_SYMBOL | 4106 |
ERR_INVALID_PRICE_PARAM | 4107 |
ERR_INVALID_TICKET | 4108 |
ERR_TRADE_NOT_ALLOWED | 4109 |
ERR_LONGS_NOT_ALLOWED | 4110 |
ERR_SHORTS_NOT_ALLOWED | 4111 |
ERR_OBJECT_ALREADY_EXISTS | 4200 |
ERR_UNKOWN_OBJECT_PROPERTY | 4201 |
ERR_OBJECT_DOES_NOT_EXIST | 4202 |
ERR_UNKOWN_OBJECT_TYPE | 4203 |
ERR_NO_OBJECT_NAME | 4204 |
ERR_OBJECT_COORDINATES_ERROR | 4205 |
ERR_NO_SPECIFIED_SUBWINODW | 4206 |
ERR_SOME_OBJECT_ERROR | 4207 |