14 12
发新话题
打印

[指标EA编写讨论] 我想请教一个MT开发的问题

本主题由 xfxyldj 于 2007-12-5 15:41 分类
没错,是用GlobalVariableSet,它会保留4星期,如果期间被人读取或写入过,那时间从新计算。

TOP

回复 11楼 的帖子

我没试过。
如果MT4关闭在重新开启。
那么这个变量还是否存在?

TOP

从mql4的文档里看到的,我没有实验过:
Global variables of the client terminal should not be mixed up with variables declared in the global scope of the MQL4 program.

Global variables are kept in the client terminal within 4 weeks since the last access, then they will be deleted automatically. An access to a global variable is not only setting of a new value, but reading of the global variable value, as well.

Global variables of the client terminal are accessible simultaneously from all MQL4 programs launched in the client terminal.

这里把Global variables跟程序里的全局变量区分开来,提到它是存放在客户端的。

TOP

回复 13楼 的帖子

这个我以前看了。
我想客户端关闭了那么这个变量应该消失了。
有空写段代码看看!

TOP

 14 12
发新话题