1 / 21
文档名称:

MetaTrader - MQL4 Appendix 2.pdf

格式:pdf   页数:21页
下载后只包含 1 个 PDF 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

MetaTrader - MQL4 Appendix 2.pdf

上传人:bolee65 2014/4/18 文件大小:0 KB

下载得到文件列表

MetaTrader - MQL4 Appendix 2.pdf

文档介绍

文档介绍:MQL4 COURSE
By Coders’ guru


(Appendix 2)
Trading Functions
--------------------
In this appendix you will find the description of the 25 MQL4 trading functions.
I decided to write this appendix before writing the third part of “Your First Expert
Advisor” lesson because you have to know these important functions before cracking
the remaining of the code.


OrderSend:

Syntax:

int OrderSend( string symbol, int cmd, double volume, double price, int slippage,
double stoploss, double takeprofit, ment=NULL, int magic=0, datetime
expiration=0, color arrow_color=CLR_NONE)

Description:

The OrderSend function used to open a sell/buy order or to set a pending order.
It returns the ticket number of the order if eeded and -1 in failure.
Use GetLastError function to get more details about the error.

Note: The ticket number is a unique number returned by OrderSend function which
you can use later as a reference of the opened or pending order (for example you can
use the ticket number with OrderClose function to close that specific order).

Note: GetLastError function returns a predefined number of the last error occurred
after an operation (for example when you call GetLastError after OrderSend
operation you will get the error number occurred while executing OrderSend).

Calling GetLastError will reset the last error number to 0.

You can find a full list of MQL4 errors numbers in file.
And you can get the error description for a specific error number by using
ErrorDescription function which defined at file.
Parameters:

This function takes 11 parameters:

string symbol:
The symbol name of the currency pair you trading (Ex: EURUSD and USDJPY).

Note: Use Symbol() function to get currently used symbol and OrderSymbol function
to get the symbol of current selected order.

int cmd:
An integer number indicates the type of the operation you want to

最近更新

展厅部门接待流程及销售思路及异议处理总结 36页

尿液生成的影响因素 19页

小麦田主要杂草图片认识 54页

小学语文课程标准解读 29页

小学英语名词所有格 9页

分裂相关基因表达分析-洞察阐释 41页

生物地球合作中的生态修复-洞察阐释 43页

基于机器学习的维护成本预测模型研究-洞察阐释.. 40页

项目风险管理与控制研究-洞察阐释 43页

疾病预测模型优化-洞察阐释 47页

基于网络切片的非屏蔽双绞线网络安全防护方法.. 48页

旅行打包神器! 巧用收纳袋和压缩袋,让你的行.. 4页

校长在2025年春季学期开学典礼上的致辞:承千.. 4页

潮汕清明节习俗是什么 3页

第2课《诸侯纷争与变法运动》知识点总结 4页

东方甄选跨境直播的关税计算工具 28页

小学作文人物描写的基本方法 18页

小学三年级数学求平均数 13页

小学《网络安全教育主题班会课件》 18页

小儿咳嗽糖浆产品介绍 27页

地下停车场手机信号覆盖增强 45页

2022年中国人保招聘在线测评考试真题及答案(.. 42页

二零二五年度食品包装安全质量标准合同 7页

二零二五年度药品包装设计规范合同 7页

一班第一学期班级计划 6页

二零二五年度校园安全知识与心理健康培训合同.. 7页

二零二五年度智能停车场报警器电路改造项目合.. 7页

二零二五年度报社记者旅游与生活方式报道合同.. 7页

二零二五年度宝石精英珠宝店员工团队协作与绩.. 6页

二零二五年度安全生产信息化安全保障责任协议.. 7页