《MQL4课程内容之九:EA常用英文单词解释.doc》由会员分享,可在线阅读,更多相关《MQL4课程内容之九:EA常用英文单词解释.doc(2页珍藏版)》请在三一文库上搜索。
1、1. 逻辑符号。AND, NOT, OR.与 非 或2. MQL 4语言指令。Array数组, Begin开始, Break中断, Continue继续, Define预定义, Downto递减循环, Else否则, End终止, Exit退出函数, For增量循环, If条件如果, Input输入, Then于是(与if配合), To到(与For配合), Variable变量, While(条件循环)。界定语言指令结构的固定字也叫做关键字。 3. 内置函数。Abs绝对值, AccName, AccountName帐户名称, Alert报警, Ceil, CloseOrder订单出场, Com
2、ment屏幕注释输出, Cos, CurTime当前时间, Day日, DayOfWeek星期的数字, DeleteOrder删除订单, Exp, Floor, Highest最高, Hour小时, iADX内置指标函数, iATR内置指标函数, iBANDS内置指标函数, iCCI内置指标函数, iMA内置指标函数, iMACD内置指标函数, iMFI内置指标函数, iMOM内置指标函数, iRSI内置指标函数, iSAR内置指标函数, iSTO内置指标函数, iWPR内置指标函数, IsDemo帐户是否模拟型, IsIndirect, LastTradeTime最后价格时间, Log, L
3、owest最低, Minute分钟, Mod, ModifyOrder订单修改, Month月, MoveObject移动屏幕上的对象, NumberToStr小数变字符串, Ord, OrderValue订单数字, Period周期, Pow, Print打印输出(在标签栏), PrintTrade输出订单状况, Rand, Round, ServerAddress服务器地址, SetArrow设定数组使用的箭头样式, SetObjectText设定对象上的文字, SetOrder设定订单, SetText设定文字, Sin, Sqrt, Srand, Symbol货币名字, Tan, Ti
4、meToStr时间变成字符串, Year年.4. 预先设定用户变量(用户定义变量)。Lots订单手数, StopLoss止损数值, TakeProfit目标数值, TrailingStop移动止损数值. 5. 预先设定交易终端变量。 AccNum, AccountNumber, Ask买入价, Balance帐户余额, Bars图内商品的全部K线个数, Bid卖出价, Close收盘价, Credit信用额度, Equity净值, FreeMargin可用保证金, High最高价, Low最低价, Margin保证金, Open开盘价, Point点, PriceAsk, PriceBid,
5、PriceHigh, PriceLow, PriceTime报价时间, Time时间, TotalProfit总盈利, TotalTrades订单个数, Volume成交量. 6. 预先设定内置函数参数(宏命令)。 MODE_CLOSE, MODE_EMA, MODE_HIGH, MODE_LOW, MODE_MAIN, MODE_MINUSDI, MODE_OPEN, MODE_PLUSDI, MODE_SIGNAL, MODE_SMA, MODE_STOPLOSS, MODE_TAKEPROFIT, MODE_VOLUME, MODE_WMA, OBJ_HLINE, OBJ_SYMBOL,
6、 OBJ_TEXT, OBJ_TRENDLINE, OBJ_VLINE, OP_BUY, OP_BUYLIMIT, OP_BUYSTOP, OP_SELL, OP_SELLLIMIT, OP_SELLSTOP, SYMBOL_ARROWDOWN, SYMBOL_ARROWUP, SYMBOL_CHECKSIGN, SYMBOL_STOPSIGN, SYMBOL_THUMBSDOWN, SYMBOL_THUMBSUP, VAL_CLOSEPRICE, VAL_CLOSETIME, VAL_COMISSION, VAL_COMMENT, VAL_LOTS, VAL_OPENPRICE, VAL_O
7、PENTIME, VAL_PROFIT, VAL_STOPLOSS, VAL_SWAP, VAL_SYMBOL, VAL_TAKEPROFIT, VAL_TICKET, VAL_TYPE. 实际上,上述固定字为宏记录器,即语法分析程序用数值取而代之。宏记录器的引入简化了编写用户功能要求的程序:更加方便、无关联的重要词语可以用来替代一些函数参数值。同样可以用于色彩名称。 7. 色彩。 AliceBlue, AntiqueWhite, Aqua, Aquamarine, Azure, Beige, Bisque, Black, BlanchedAlmond, Blue, BlueViolet, B
8、rown, BurlyWood, CadetBlue, Chartreuse, Chocolate, Coral, CornflowerBlue, Cornsilk, Crimson, Cyan, DarkBlue, DarkCyan, DarkGoldenrod, DarkGray, DarkGreen, DarkKhaki, DarkMagenta, DarkOliveGreen, DarkOrange, DarkOrchid, DarkRed, DarkSalmon, DarkSeaGreen, DarkSlateBlue, DarkSlateGray, DarkTurquoise, D
9、arkViolet, DeepPink, DeepSkyBlue, DimGray, DodgerBlue, FireBrick, FloralWhite, ForestGreen, Fuchsia, Gainsboro, GhostWhite, Gold, Goldenrod, Gray, Green, GreenYellow, Honeydew, HotPink, IndianRed, Indigo, Ivory, Khaki, Lavender, LavenderBlush, LawnGreen, LemonChiffon, LightBlue, LightCoral, LightCya
10、n, LightGoldenrod, LightGreen, LightGrey, LightPink, LightSalmon, LightSeaGreen, LightSkyBlue, LightSlateGray, LightSteelBlue, LightYellow, Lime, LimeGreen, Linen, Magenta, Maroon, MediumAquamarine, MediumBlue, MediumOrchid, MediumPurple, MediumSeaGreen, MediumSlateBlue, MediumSpringGreen, MediumTur
11、quoise, MediumVioletRed, MidnightBlue, MintCream, MistyRose, Moccasin, NavajoWhite, Navy, OldLace, Olive, OliveDrab, Orange, OrangeRed, Orchid, PaleGoldenrod, PaleGreen, PaleTurquoise, PaleVioletRed, PapayaWhip, PeachPuff, Peru, Pink, Plum, PowderBlue, Purple, Red, RosyBrown, RoyalBlue, SaddleBrown, Salmon, SandyBrown, SeaGreen, Seashell, Sienna, Silver, SkyBlue, SlateBlue, SlateGray, Snow, SpringGreen, SteelBlue, Tan, Teal, Thistle, Tomato, Turquoise, Violet, Wheat, White, WhiteSmoke, Yellow, YellowGreen.参考下图