当前位置:网站首页>MT4/MQL4入门到精通EA课程第二课-常用的功能函数
MT4/MQL4入门到精通EA课程第二课-常用的功能函数
2022-08-09 01:58:00 【EA开发-青衫码客】
AccountBalance(); // 返回当前账户的余额。
AccountEquity(); // 返回当前账户的净值。
AccountFreeMargin(); // 返回当前账户可用预付款。
AccountMargin(); // 返回当前账户已用预付款。
Hour(); //返回当前服务器的时
Minute(); //返回服务器时间的分
Seconds(); //返回服务器时间的秒
iOpen(); //返回K线柱的开盘价
iClose(); //返回K线柱的收市价
iLow(); //返回K线柱的最低价
iHigh(); //返回K线柱的最高价
iTime(); //返回K线柱的时间
iVolume(); //返回K线柱的成交量
IsConnected(); //是否连接服务器
IsDemo(); //是否是模拟帐户
IsDllsAllowed(); //是否允许加载DLL文件
IsExpertEnabled(); //是否允许自动交易
IsStopped(); //EA是否中断执行
IsTradeAllowed(); //是否允许交易
IsTradeContextBusy(); //是否交易繁忙
OrderClose(); //订单平仓函数
OrderClosePrice(); //返回订单平仓价格
OrderCloseTime(); //返回订单平仓时间
OrderComment(); //返回订单注释
OrderDelete(); //取消挂单
OrderLots(); //返回订单手数
OrderMagicNumber(); //返回订单标识数
OrderModify(); //订单修改函数
OrderOpenPrice(); //返回订单开仓价
OrderOpenTime(); //返回订单开仓时间
OrderProfit(); //返回订单盈亏
OrderSelect(); //订单识别
OrderSend(); //新开订单
OrdersHistoryTotal(); //返回历史订单统计
OrderStopLoss(); //返回订单止损价
OrdersTotal(); //返回当前所有订单、挂单总数
OrderSymbol(); //返回订单品种
OrderTakeProfit(); //返回订单止盈价
OrderTicket(); //返回订单号
OrderType(); //返回订单类型
Print(); //打印日志
printf(); //打印日志,带格式
Sleep(); //休眠函数
StringAdd(); //字符串相接,返回新的字符串
StringCompare(); //字符串比较,相等返回0
StringGetChar(); //字符串读取字符
StringSetChar(); //字符串中添加字符
StringToCharArray(); //字符串变字符数组
CharArrayToString();//字符数字变字符串
StringToDouble(); //字符串变双精度
DoubleToString(); //双精度变字符串
StringToInteger(); //字符串变整型
StringToTime(); //字符串表时间类型
TimeToString(); //时间类变字符串
Symbol(); //返回当前图表品种
TimeCurrent(); //返回服务器当前时间
TimeDayOfWeek();//返回当前时间星期几
TimeGMT(); //返回GTM时间
TimeGMTOffset(); //返回时间差
TimeLocal(); //返回电脑上的时间
TimeHour(); //返回时间中的小时
TimeMinute(); //返回时间中的分
TimeSeconds(); //返回时间中的
TimeDay(); //返回当前时间日期
TimeMonth(); //返回时间中的月
TimeYear(); //返回时间中的年
边栏推荐
猜你喜欢

【元胞自动机】基于元胞自动机模拟社会力因素下的灾害人员疏散应急仿真附matlab代码

How to install ngrok in Synology system (Synology 6.X version)

HCIP-R&S By Wakin自用笔记(2)OSPF之OSPF回顾、虚连接

seaborn 笔记: 绘制分类数据

力扣刷题记录2.1-----27. 移除元素

LeetCode每日两题02:第一个错误的版本 (均1200道)方法:二分查找

The server quit without updating PID file (/usr/local/mysql/data/localhost.pid).

Codeforces Round #809 (Div. 2)A~D1

力扣刷题记录6.1-----203. 移除链表元素

在树莓派上使用cpolar(番外篇2)
随机推荐
LeetCode每日两题01:二分查找 (均1200道)
JDBC technology (1) - a simple JDBC test
力扣刷题记录2.1-----27. 移除元素
VS中如何添加依赖的库
方法参数
LVGL简介(基于v8.1-8.2)
力扣刷题记录6.1-----203. 移除链表元素
德语翻译-德语在线批量翻译软件
Docker redis master-slave replication setup, the container cannot be started?
Observer pattern
Z-Game on grid(牛客多校赛)
虹科技术|如何阻止供应链攻击?
Dapr学习(4)之eShopOnDapr部署(Rancher2.63&k3s)
Go-8-Gin framework
makefile文件编译
Loadrunner结合Fiddler实现脚本的录制
Difference between KQL and Lucene
2022PMP项目管理认证考试报考指南(1)
2022 PMP Project Management Certification Exam Registration Guide (1)
配置文件的读取-TOML