没有合适的资源?快使用搜索试试~ 我知道了~
首页MQL5中文教程:开发自动化交易与指标的关键
MQL5中文教程:开发自动化交易与指标的关键
需积分: 13 176 下载量 89 浏览量
更新于2024-07-26
收藏 11.96MB PDF 举报
MQL5中文文档是一份详细介绍MetaQuotes Software Corp. 开发的高级编程语言的官方指南。MQL5是专为MetaTrader5(MT5)交易平台设计的,它支持交易者创建自定义的智能交易策略、编写复杂的技术分析指标、开发自动交易系统以及创建个性化分析工具。该语言不仅允许用户进行金融市场的自动化交易,还涵盖了基础语法、数据类型、运算符、控制结构、函数和变量的使用等核心概念。
1. **语言基础**:MQL5的基础部分介绍语言的基本元素,如标识符(用于命名变量、函数等)、关键词(保留给特定用途的单词)和数据类型,包括整型、字符型、日期时间型、颜色型、布尔型、枚举类型和真实型等。此外,还介绍了如何使用字符串数据以及如何处理不同类型的数据转换。
2. **语法和表达式**:这部分详细讲解了MQL5的语法规则,包括算术运算、赋值运算、关系运算、布尔运算和逐位运算等,以及它们的优先级和操作符的使用。关键的逻辑控制结构,如条件判断(if-else, ?:)和循环(while, for, do-while)也被涵盖。
3. **变量和对象**:MQL5支持多种类型的变量,如局部变量、形式参数、静态变量、全局变量和外部变量,以及它们的生命周期和可见范围。对象的创建和删除通过`new`和`delete`操作符进行,同时涉及函数的定义、调用和重载,包括输出函数、事件处理函数等。
4. **预处理程序**:这部分介绍如何使用预处理器指令,如`#define`用于常量声明,`#property`用于设置程序属性,以及`#include`和`#import`用于包含或导入其他文件,帮助开发者组织代码。
5. **应用实例**:文档提供了实例,指导读者如何使用MQL5解决实际交易中的问题,例如创建技术指标,结合传统分析工具,以及编写执行特定交易任务(如交易执行、警报管理)的脚本。
MQL5中文文档是开发人员的必备资源,无论你是初学者还是进阶用户,都可以从中找到编写高效、精确交易策略所需的所有知识和技术细节。通过学习和实践MQL5,交易者可以充分利用MetaTrader5平台的强大功能,提升交易自动化水平。
Content16
2000-2011, MetaQuotes Software Corp.
................................................................................................................ 1431BalanceR
................................................................................................................ 1432CreateSample
................................................................................................................ 1433RefreshBalance
................................................................................................................ 1434GetNext
................................................................................................................ 1435SaveNode
................................................................................................................ 1436LoadNode
................................................................................................................ 1437Type
......................................................................................................................... 1438CTree
................................................................................................................ 1443Root
................................................................................................................ 1444CreateElement
................................................................................................................ 1445Insert
................................................................................................................ 1446Detach
................................................................................................................ 1447Delete
................................................................................................................ 1448Clear
................................................................................................................ 1449Find
................................................................................................................ 1450Save
................................................................................................................ 1451Load
................................................................................................................ 1452Type
............................................................................................................................1453
Classes for Graphic Objects
......................................................................................................................... 1454CChartObject
................................................................................................................ 1457ChartId
................................................................................................................ 1458Window
................................................................................................................ 1459Name
................................................................................................................ 1460NumPoints
................................................................................................................ 1461Attach
................................................................................................................ 1462SetPoint
................................................................................................................ 1463Delete
................................................................................................................ 1464Detach
................................................................................................................ 1465ShiftObject
................................................................................................................ 1466ShiftPoint
................................................................................................................ 1467Time
................................................................................................................ 1469Price
................................................................................................................ 1471Color
................................................................................................................ 1472Style
................................................................................................................ 1473Width
................................................................................................................ 1474Background
................................................................................................................ 1475Selected
................................................................................................................ 1476Selectable
................................................................................................................ 1477Description
................................................................................................................ 1478Tooltip
................................................................................................................ 1479Timeframes
................................................................................................................ 1480CreateTime
................................................................................................................ 1481LevelsCount
................................................................................................................ 1482LevelColor
................................................................................................................ 1484LevelStyle
................................................................................................................ 1486LevelWidth
................................................................................................................ 1488LevelValue
................................................................................................................ 1490LevelDescription
................................................................................................................ 1492GetInteger
................................................................................................................ 1494SetInteger
................................................................................................................ 1496GetDouble
................................................................................................................ 1498SetDouble
................................................................................................................ 1500GetString
................................................................................................................ 1502SetString
................................................................................................................ 1504Save
................................................................................................................ 1505Load
................................................................................................................ 1506Type
......................................................................................................................... 1507Objects Lines
Content17
2000-2011, MetaQuotes Software Corp.
................................................................................................................ 1508CChartObjectVLine
........................................................................................................... 1509Create
........................................................................................................... 1510Type
................................................................................................................ 1511CChartObjectHLine
........................................................................................................... 1512Create
........................................................................................................... 1513Type
................................................................................................................ 1514CChartObjectTrend
........................................................................................................... 1515Create
........................................................................................................... 1516RayLeft
........................................................................................................... 1517RayRight
........................................................................................................... 1518Save
........................................................................................................... 1519Load
........................................................................................................... 1520Type
................................................................................................................ 1521CChartObjectTrendByAngle
........................................................................................................... 1522Create
........................................................................................................... 1523Angle
........................................................................................................... 1524Type
................................................................................................................ 1525CChartObjectCycles
........................................................................................................... 1526Create
........................................................................................................... 1527Type
......................................................................................................................... 1528Objects Channels
................................................................................................................ 1529CChartObjectChannel
........................................................................................................... 1530Create
........................................................................................................... 1531Type
................................................................................................................ 1532CChartObjectRegression
........................................................................................................... 1533Create
........................................................................................................... 1534Type
................................................................................................................ 1535CChartObjectStdDevChannel
........................................................................................................... 1536Create
........................................................................................................... 1537Deviations
........................................................................................................... 1538Save
........................................................................................................... 1539Load
........................................................................................................... 1540Type
................................................................................................................ 1541CChartObjectPitchfork
........................................................................................................... 1542Create
........................................................................................................... 1543Type
......................................................................................................................... 1544Gann Tools
................................................................................................................ 1545CChartObjectGannLine
........................................................................................................... 1546Create
........................................................................................................... 1547PipsPerBar
........................................................................................................... 1548Save
........................................................................................................... 1549Load
........................................................................................................... 1550Type
................................................................................................................ 1551CChartObjectGannFan
........................................................................................................... 1552Create
........................................................................................................... 1553PipsPerBar
........................................................................................................... 1554Downtrend
........................................................................................................... 1555Save
........................................................................................................... 1556Load
........................................................................................................... 1557Type
................................................................................................................ 1558CChartObjectGannGrid
........................................................................................................... 1559Create
........................................................................................................... 1560PipsPerBar
........................................................................................................... 1561Downtrend
........................................................................................................... 1562Save
........................................................................................................... 1563Load
........................................................................................................... 1564Type
......................................................................................................................... 1565Fibonacci Tools
Content18
2000-2011, MetaQuotes Software Corp.
................................................................................................................ 1566CChartObjectFibo
........................................................................................................... 1567Create
........................................................................................................... 1568Type
................................................................................................................ 1569CChartObjectFiboTimes
........................................................................................................... 1570Create
........................................................................................................... 1571Type
................................................................................................................ 1572CChartObjectFiboFan
........................................................................................................... 1573Create
........................................................................................................... 1574Type
................................................................................................................ 1575CChartObjectFiboArc
........................................................................................................... 1576Create
........................................................................................................... 1577Scale
........................................................................................................... 1578Ellipse
........................................................................................................... 1579Save
........................................................................................................... 1580Load
........................................................................................................... 1581Type
................................................................................................................ 1582CChartObjectFiboChannel
........................................................................................................... 1583Create
........................................................................................................... 1584Type
................................................................................................................ 1585CChartObjectFiboExpansion
........................................................................................................... 1586Create
........................................................................................................... 1587Type
......................................................................................................................... 1588Elliott Tools
................................................................................................................ 1589CChartObjectElliottWave3
........................................................................................................... 1590Create
........................................................................................................... 1591Degree
........................................................................................................... 1592Lines
........................................................................................................... 1593Save
........................................................................................................... 1594Load
........................................................................................................... 1595Type
................................................................................................................ 1596CChartObjectElliottWave5
........................................................................................................... 1597Create
........................................................................................................... 1599Type
......................................................................................................................... 1600Objects Shapes
................................................................................................................ 1601CChartObjectRectangle
........................................................................................................... 1602Create
........................................................................................................... 1603Type
................................................................................................................ 1604CChartObjectTriangle
........................................................................................................... 1605Create
........................................................................................................... 1606Type
................................................................................................................ 1607CChartObjectEllipse
........................................................................................................... 1608Create
........................................................................................................... 1609Type
......................................................................................................................... 1610Objects Arrows
................................................................................................................ 1611CChartObjectArrow
........................................................................................................... 1612Create
........................................................................................................... 1614ArrowCode
........................................................................................................... 1616Anchor
........................................................................................................... 1618Save
........................................................................................................... 1619Load
........................................................................................................... 1620Type
................................................................................................................ 1621Arrows with fixed code
........................................................................................................... 1623Create
........................................................................................................... 1625ArrowCode
........................................................................................................... 1626Type
......................................................................................................................... 1627Objects Controls
................................................................................................................ 1628CChartObjectText
........................................................................................................... 1629Create
Content19
2000-2011, MetaQuotes Software Corp.
........................................................................................................... 1630Angle
........................................................................................................... 1631Font
........................................................................................................... 1632FontSize
........................................................................................................... 1633Anchor
........................................................................................................... 1634Save
........................................................................................................... 1635Load
........................................................................................................... 1636Type
................................................................................................................ 1637CChartObjectLabel
........................................................................................................... 1638Create
........................................................................................................... 1639X_Distance
........................................................................................................... 1640Y_Distance
........................................................................................................... 1641X_Size
........................................................................................................... 1642Y_Size
........................................................................................................... 1643Corner
........................................................................................................... 1644Time
........................................................................................................... 1645Price
........................................................................................................... 1646Save
........................................................................................................... 1647Load
........................................................................................................... 1648Type
................................................................................................................ 1649CChartObjectEdit
........................................................................................................... 1650Create
........................................................................................................... 1651X_Size
........................................................................................................... 1652Y_Size
........................................................................................................... 1653BackColor
........................................................................................................... 1654Angle
........................................................................................................... 1655Save
........................................................................................................... 1656Load
........................................................................................................... 1657Type
................................................................................................................ 1658CChartObjectButton
........................................................................................................... 1659State
........................................................................................................... 1660Save
........................................................................................................... 1661Load
........................................................................................................... 1662Type
................................................................................................................ 1663CChartObjectSubChart
........................................................................................................... 1665Create
........................................................................................................... 1666X_Distance
........................................................................................................... 1667Y_Distance
........................................................................................................... 1668Corner
........................................................................................................... 1669X_Size
........................................................................................................... 1670Y_Size
........................................................................................................... 1671Symbol
........................................................................................................... 1672Period
........................................................................................................... 1673Scale
........................................................................................................... 1674DateScale
........................................................................................................... 1675PriceScale
........................................................................................................... 1676Time
........................................................................................................... 1677Price
........................................................................................................... 1678Save
........................................................................................................... 1679Load
........................................................................................................... 1680Type
................................................................................................................ 1681CChartObjectBitmap
........................................................................................................... 1682Create
........................................................................................................... 1683BmpFile
........................................................................................................... 1684X_Offset
........................................................................................................... 1685Y_Offset
........................................................................................................... 1686Save
........................................................................................................... 1687Load
........................................................................................................... 1688Type
Content20
2000-2011, MetaQuotes Software Corp.
................................................................................................................ 1689CChartObjectBmpLabel
........................................................................................................... 1691Create
........................................................................................................... 1692X_Distance
........................................................................................................... 1693Y_Distance
........................................................................................................... 1694X_Offset
........................................................................................................... 1695Y_Offset
........................................................................................................... 1696Corner
........................................................................................................... 1697X_Size
........................................................................................................... 1698Y_Size
........................................................................................................... 1699BmpFileOn
........................................................................................................... 1700BmpFileOff
........................................................................................................... 1701State
........................................................................................................... 1702Time
........................................................................................................... 1703Price
........................................................................................................... 1704Save
........................................................................................................... 1705Load
........................................................................................................... 1706Type
................................................................................................................ 1707CChartObjectRectLabel
........................................................................................................... 1708Create
........................................................................................................... 1709X_Size
........................................................................................................... 1710Y_Size
........................................................................................................... 1711BackColor
........................................................................................................... 1712Angle
........................................................................................................... 1713BorderType
........................................................................................................... 1714Save
........................................................................................................... 1715Load
........................................................................................................... 1716Type
............................................................................................................................1717
Class for working with chart
......................................................................................................................... 1722ChartID
......................................................................................................................... 1723Mode
......................................................................................................................... 1724Foreground
......................................................................................................................... 1725Shift
......................................................................................................................... 1726ShiftSize
......................................................................................................................... 1727AutoScroll
......................................................................................................................... 1728Scale
......................................................................................................................... 1729ScaleFix
......................................................................................................................... 1730ScaleFix_11
......................................................................................................................... 1731FixedMax
......................................................................................................................... 1732FixedMin
......................................................................................................................... 1733PointsPerBar
......................................................................................................................... 1734ScalePPB
......................................................................................................................... 1735ShowOHLC
......................................................................................................................... 1736ShowLineBid
......................................................................................................................... 1737ShowLineAsk
......................................................................................................................... 1738ShowLastLine
......................................................................................................................... 1739ShowPeriodSep
......................................................................................................................... 1740ShowGrid
......................................................................................................................... 1741ShowVolumes
......................................................................................................................... 1742ShowObjectDescr
......................................................................................................................... 1743ShowDateScale
......................................................................................................................... 1744ShowPriceScale
......................................................................................................................... 1745ColorBackground
......................................................................................................................... 1746ColorForeground
......................................................................................................................... 1747ColorGrid
......................................................................................................................... 1748ColorBarUp
......................................................................................................................... 1749ColorBarDown
......................................................................................................................... 1750ColorCandleBull
......................................................................................................................... 1751ColorCandleBear
剩余2815页未读,继续阅读
2021-09-28 上传
2020-11-07 上传
2020-03-16 上传
2020-04-07 上传
YankeeQ
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 全国江河水系图层shp文件包下载
- 点云二值化测试数据集的详细解读
- JDiskCat:跨平台开源磁盘目录工具
- 加密FS模块:实现动态文件加密的Node.js包
- 宠物小精灵记忆配对游戏:强化你的命名记忆
- React入门教程:创建React应用与脚本使用指南
- Linux和Unix文件标记解决方案:贝岭的matlab代码
- Unity射击游戏UI套件:支持C#与多种屏幕布局
- MapboxGL Draw自定义模式:高效切割多边形方法
- C语言课程设计:计算机程序编辑语言的应用与优势
- 吴恩达课程手写实现Python优化器和网络模型
- PFT_2019项目:ft_printf测试器的新版测试规范
- MySQL数据库备份Shell脚本使用指南
- Ohbug扩展实现屏幕录像功能
- Ember CLI 插件:ember-cli-i18n-lazy-lookup 实现高效国际化
- Wireshark网络调试工具:中文支持的网口发包与分析
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功