Ichimoku指标模式枚举
| Constant | Value | Description |
|---|---|---|
| MODE_TENKANSEN | 1 | Tenkan-sen. |
| MODE_KIJUNSEN | 2 | Kijun-sen. |
| MODE_SENKOUSPANA | 3 | Senkou Span A. |
| MODE_SENKOUSPANB | 4 | Senkou Span B. |
| MODE_CHINKOUSPAN | 5 | Chinkou Span. |
Indicators line identifiers
指标线标示符
指标线模式,使用在 iMACD(), iRVI() 和 iStochastic() 中:
| Constant | Value | Description |
|---|---|---|
| MODE_MAIN | 0 | Base indicator line. |
| MODE_SIGNAL | 1 | Signal line. |
指标线模式,使用在 iADX() 中:
| Constant | Value | Description |
|---|---|---|
| MODE_MAIN | 0 | Base indicator line. |
| MODE_PLUSDI | 1 | +DI indicator line. |
| MODE_MINUSDI | 2 | -DI indicator line. |
指标线模式,使用在 iBands(), iEnvelopes(), iEnvelopesOnArray(), iFractals() and iGator() 中:
| Constant | Value | Description |
|---|---|---|
| MODE_UPPER | 1 | Upper line. |
| MODE_LOWER | 2 | Lower line. |
Market information identifiers
市场信息标识
| Constant | Value | Description |
|---|---|---|
| MODE_LOW | 1 | Low day price. |
| MODE_HIGH | 2 | High day price. |
| MODE_TIME | 5 | The last incoming quotation time. |
| MODE_BID | 9 | Last incoming bid price. |
| MODE_ASK | 10 | Last incoming ask price. |
| MODE_POINT | 11 | Point size. |
| MODE_DIGITS | 12 | Digits after decimal point. |
| MODE_SPREAD | 13 | Spread value in points. |
| MODE_STOPLEVEL | 14 | Stop level in points. |
| MODE_LOTSIZE | 15 | Lot size in the base currency. |
| MODE_TICKVALUE | 16 | Tick value. |
| MODE_TICKSIZE | 17 | Tick size. |
| MODE_SWAPLONG | 18 | Swap of the long position. |
| MODE_SWAPSHORT | 19 | Swap of the short position. |
| MODE_STARTING | 20 | Market starting date (usually used for future markets). |
| MODE_EXPIRATION | 21 | Market expiration date (usually used for future markets). |
| MODE_TRADEALLOWED | 22 | Trade is allowed for the symbol. |
MessageBox return codes
消息窗口返回值
| Constant | Value | Description |
|---|---|---|
| IDOK | 1 | OK button was selected. |
| IDCANCEL | 2 | Cancel button was selected. |
| IDABORT | 3 | Abort button was selected. |
| IDRETRY | 4 | Retry button was selected. |
| IDIGNORE | 5 | Ignore button was selected. |
| IDYES | 6 | Yes button was selected. |
| IDNO | 7 | No button was selected. |
| IDTRYAGAIN | 10 | Try Again button was selected. |
| IDCONTINUE | 11 | Continue button was selected. |
MessageBox behavior flags
消息窗口行为代码
消息窗口显示的按钮种类:
| Constant | Value | Description |
|---|---|---|
| MB_OK | 0x00000000 | The message box contains one push button: OK. This is the default. |
| MB_OKCANCEL | 0x00000001 | The message box contains two push buttons: OK and Cancel. |
| MB_ABORTRETRYIGNORE | 0x00000002 | The message box contains three push buttons: Abort, Retry, and Ignore. |
| MB_YESNOCANCEL | 0x00000003 | The message box contains three push buttons: Yes, No, and Cancel. |
| MB_YESNO | 0x00000004 | The message box contains two push buttons: Yes and No. |
| MB_RETRYCANCEL | 0x00000005 | The message box contains two push buttons: Retry and Cancel. |
| MB_CANCELTRYCONTINUE | 0x00000006 | Windows 2000: The message box contains three push buttons: Cancel, Try Again, Continue. Use this message box type instead of MB_ABORTRETRYIGNORE. |
消息窗口显示图标的类型:
| Constant | Value | Description |
|---|---|---|
| MB_ICONSTOP, MB_ICONERROR, MB_ICONHAND | 0x00000010 | A stop-sign icon appears in the message box. |
| MB_ICONQUESTION | 0x00000020 | A question-mark icon appears in the message box. |
| MB_ICONEXCLAMATION, MB_ICONWARNING | 0x00000030 | An exclamation-point icon appears in the message box. |
| MB_ICONINFORMATION, MB_ICONASTERISK | 0x00000040 | An icon consisting of a lowercase letter i in a circle appears in the message box. |
消息窗口默认按钮设置:
| Constant | Value | Description |
|---|---|---|
| MB_DEFBUTTON1 | 0x00000000 | The first button is the default button. MB_DEFBUTTON1 is the default unless MB_DEFBUTTON2, MB_DEFBUTTON3, or MB_DEFBUTTON4 is specified. |
| MB_DEFBUTTON2 | 0x00000100 | The second button is the default button. |
| MB_DEFBUTTON3 | 0x00000200 | The third button is the default button. |
| MB_DEFBUTTON4 | 0x00000300 | The fourth button is the default button. |
Moving Average method enumeration
移动平均线模式枚举,iAlligator(), iEnvelopes(), iEnvelopesOnArray, iForce(), iGator(), iMA(), iMAOnArray(), iStdDev(), iStdDevOnArray(), iStochastic()这些会调用此枚举
| Constant | Value | Description |
|---|---|---|
| MODE_SMA | 0 | Simple moving average, |
| MODE_EMA | 1 | Exponential moving average, |
| MODE_SMMA | 2 | Smoothed moving average, |
| MODE_LWMA | 3 | Linear weighted moving average. |
Object properties enumeration
物件属性枚举
| Constant | Value | Description |
|---|---|---|
| OBJPROP_TIME1 | 0 | Datetime value to set/get first coordinate time part. |
| OBJPROP_PRICE1 | 1 | Double value to set/get first coordinate price part. |
| OBJPROP_TIME2 | 2 | Datetime value to set/get second coordinate time part. |
| OBJPROP_PRICE2 | 3 | Double value to set/get second coordinate price part. |
| OBJPROP_TIME3 | 4 | Datetime value to set/get third coordinate time part. |
| OBJPROP_PRICE3 | 5 | Double value to set/get third coordinate price part. |
| OBJPROP_COLOR | 6 | Color value to set/get object color. |
| OBJPROP_STYLE | 7 | Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style. |
| OBJPROP_WIDTH | 8 | Integer value to set/get object line width. Can be from 1 to 5. |
| OBJPROP_BACK | 9 | Boolean value to set/get background drawing flag for object. |
| OBJPROP_RAY | 10 | Boolean value to set/get ray flag of object. |
| OBJPROP_ELLIPSE | 11 | Boolean value to set/get ellipse flag for fibo arcs. |
| OBJPROP_SCALE | 12 | Double value to set/get scale object property. |
| OBJPROP_ANGLE | 13 | Double value to set/get angle object property in degrees. |
| OBJPROP_ARROWCODE | 14 | Integer value or arrow enumeration to set/get arrow code object property. |
| OBJPROP_TIMEFRAMES | 15 | Value can be one or combination (bitwise addition) of object visibility constants to set/get timeframe object property. |
| OBJPROP_DEVIATION | 16 | Double value to set/get deviation property for Standard deviation objects. |
| OBJPROP_FONTSIZE | 100 | Integer value to set/get font size for text objects. |
| OBJPROP_CORNER | 101 | Integer value to set/get anchor corner property for label objects. Must be from 0-3. |
| OBJPROP_XDISTANCE | 102 | Integer value to set/get anchor X distance object property in pixels. |
| OBJPROP_YDISTANCE | 103 | Integer value is to set/get anchor Y distance object property in pixels. |
| OBJPROP_FIBOLEVELS | 200 | Integer value to set/get Fibonacci object level count. Can be from 0 to 32. |
| OBJPROP_FIRSTLEVEL+ n | 210 | Fibonacci object level index, where n is level index to set/get. Can be from 0 to 31. |
