打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
MT42


定义常数
#define identifier_value
常数可以是任何类型的,常数在程序中不可更改。
示例:

#define ABC 100
#define PI 0.314
#define COMPANY_NAME "MetaQuotes Software Corp."


编译参数定义
#property identifier_value
示例:

#property link "http://www.metaquotes.net"
#property copyright "MetaQuotes Software Corp."
#property stacksize 1024

以下是所有的参数名称:

参数名称

类型

说明

link

string

设置一个链接到公司网站

copyright

string

公司名称

stacksize

int

堆栈大小

indicator_chart_window

void

显示在走势图窗口

indicator_separate_window

void

显示在新区块

indicator_buffers

int

显示缓存最高8

indicator_minimum

int

图形区间最低点

indicator_maximum

int

图形区间最高点

indicator_colorN

color

第N根线的颜色,最高8根线

indicator_levelN

double

predefined level N for separate window custom indicator

show_confirm

void

当程序执行之前是否经过确认

show_inputs

void

before script run its property sheet appears; disables show_confirm property


嵌入文件
#include <file_name>
示例:

#include <win32.h>

#include "file_name"
示例:

#include "mylib.h"


引入函数或其他模块
#import "file_name"
func1();
func2();
#import

示例:

#import "user32.dll"
int MessageBoxA(int hWnd,string lpText,string lpCaption,
int uType);
int MessageBoxExA(int hWnd,string lpText,string lpCaption,
int uType,int wLanguageId);
#import "melib.ex4"
#import "gdi32.dll"
int GetDC(int hWnd);
int ReleaseDC(int hWnd,int hDC);
#import


本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
MT5入门到精通之五:MQL5初级语法
VBA 编程基础
MSDN中回调函数的讲解及其C#例子:用委托实现回调函数
VB实用代码,收藏!!
使用mql5创建你自己的图形化操作面板2[译文] ? 7号交易员
Volume-成交量指标
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服