mt4中 智能ea交易参数的详细参数及意思 懂的来

extern double tp1 = 50; extern double sl1 = 50; extern int p1 = 10; extern int x12 = 100; extern int x22 = 100; extern int x32 = 100; extern int x42 = 100; extern double tp2 = 50; extern double sl2 = 50; extern int p2 = 20; extern int x13 = 100; extern int x23 = 100; extern int x33 = 100; extern int x43 = 100; extern double tp3 = 50; extern double sl3 = 50; extern int p3 = 20; extern int x14 = 100; extern int x24 = 100; extern int x34 = 100; extern int x44 = 100; extern int p4 = 20; extern int pass = 1; extern double lots = 0.01; extern int mn = 888; static int prevtime = 0; static double sl = 10; static double tp = 10;

extern double tp1 = 50; extern double TakeProfit = 50; 盈利目标点数 我这有MT的教程 我发给你 MT里面的语言与C语言较不多的 如果函数的声明中带有关键字extern,仅仅是暗示这个函数可能在别的源文件里定义,没有其它作用。即下述两个函数声明没有明显的区别: extern int f(); 和int f(); 当然,这样的用处还是有的,就是在程序中取代include “*.h”来声明函数,在一些复杂的项目中,习惯在所有的函数声明前添加extern修饰。
温馨提示:答案为网友推荐,仅供参考
相似回答