编码帮助 - 页 299 1...292293294295296297298299300301302303304305306...786 新评论 AZRUL FYZEE AZMI 2014.06.27 22:38 #2981 mladen: AZRUL将此: static datetime lastUpdated = 0; if ((TimeCurrent()-lastUpdated) < PERIOD_M5*60) return(0); lastUpdated=TimeCurrent() 。 作为启动程序的第一行,启动程序的其余代码将被执行,两个连续的执行之间至少有5分钟的延迟。 亲爱的MLADEN先生。 我将尝试把这些代码放在ONLY....。 非常感谢您的时间和专业知识,.... 第5个学分 你真正的 AZRUL... ccjjaa 2014.06.28 02:43 #2982 如果我在编译这段代码时使用 "strict",我会得到"数组超出范围"。 if (RSI4 > RSI1 && RSI4 < RSI1) drawArrow(i,Aqua,233,false); if (RSI4 RSI1) drawArrow(i,Tomato,234,true); [/PHP] This works with no errors but of course there are arrows on every candle if (RSI4 > RSI1 ) drawArrow(i,Aqua,233,false); if (RSI4 < RSI1 ) drawArrow(i,Tomato,234,true); This appears to be the problem as soon as the +1 is added. [PHP]RSI4 > RSI1 有什么办法可以解决这个问题吗? Coding help Any one know the reversing EA is unwantingly Mladen Rakic 2014.06.28 04:57 #2983 cja: 如果我在编译这段代码时使用 "strict",我会得到 "数组超出范围"。 if (RSI4 > RSI1 && RSI4 < RSI1) drawArrow(i,Aqua,233,false); if (RSI4 RSI1) drawArrow(i,Tomato,234,true); [/PHP] This works with no errors but of course there are arrows on every candle if (RSI4 > RSI1 ) drawArrow(i,Aqua,233,false); if (RSI4 < RSI1 ) drawArrow(i,Tomato,234,true); [/PHP] This appears to be the problem as soon as the +1 is added. [PHP]RSI4 > RSI1 Is there a fix for this? cja 试着像这样。 [PHP]if(i<(Bars-1)) { 如果(RSI4 > RSI1 && RSI4 < RSI1) drawArrow(i,Aqua,233,false); 如果(RSI4 RSI1) drawArrow(i,Tomato,234,true); } 它应该可以工作 dany84 2014.06.29 17:00 #2984 你好,我有一个指标斐波那契的问题,我想把它用在同一个图上,到1440和2280,就像这个图片一样。 (这就是我手动创建的原因) 问题是,我创建了第二个版本的指标到2天,但当我把它插入同一个图形上,我有1440版本的指标自动不再看到1440的线。我希望能在您的帮助下解决这个问题。 附加的文件: fibo_v9.mq4 5 kb c5177940d2d8dc619d65e0556bd5c68d.png 56 kb Mladen Rakic 2014.06.29 17:40 #2985 dany84: 你好,我有一个指标fibonacci的问题,我想把它用在同一个图形上,到1440和2280,如图所示。 (这就是为什么我手动创建) 问题是,我创建了第二个版本的指标到2天,但当我把它插入我有指标的1440版本的同一图形上时,自动不再看到1440的线条。我希望能在您的帮助下解决这个问题。 dany84 现在就试试吧:fibo_v9_1.mq4 将UniqueID参数设置为该指标每个新实例的唯一值,然后你就可以拥有你想要的众多实例了。 附加的文件: fibo_v9_1.mq4 6 kb dany84 2014.06.29 18:50 #2986 mladen: dany84现在试试吧:fibo_v9_1.mq4 为指标的每个新实例设置UniqueID参数为唯一值,然后你就可以有任意多的实例了。 谢谢你,Mladen!!现在工作正常了 sunshineh 2014.06.30 06:04 #2987 奇怪的错误!!! I have the following string: " 99.40 " double TakeProfit = StrToDouble("99.40"); Print("TakeProfit =", TakeProfit); Print("or TakeProfit = ", NormalizeDouble(TakeProfit,2); 这就是输出。 TakeProfit =99.40000000000001 或TakeProfit =99.40000000000001 谁能给我解释一下这个奇怪的错误,我应该怎么做? 谢谢你! Mladen Rakic 2014.06.30 06:44 #2988 sunshineh: 奇怪的错误!!! I have the following string: " 99.40 " double TakeProfit = StrToDouble("99.40"); Print("TakeProfit =", TakeProfit); Print("or TakeProfit = ", NormalizeDouble(TakeProfit,2); 而这是输出。 TakeProfit =99.40000000000001 或者TakeProfit = 99.40000000000001 谁能给我解释一下这个奇怪的错误,我应该怎么做? 谢谢你! sunshineh 你是如何通过打印得到 "00000000001 "部分的? 我在使用该代码时得到了这个结果。 附加的文件: pribt.gif 21 kb sunshineh 2014.06.30 07:44 #2989 你好。 这是两个不同的metatrader账户的打印信息。 附加的文件: 20140630_metatrader_4.jpg 10 kb Mladen Rakic 2014.06.30 07:45 #2990 sunshineh: 你好。这是两个不同的metatrader账户的打印信息。 可能是构建 我使用build 660来测试这个问题 1...292293294295296297298299300301302303304305306...786 新评论 您错过了交易机会: 免费交易应用程序 8,000+信号可供复制 探索金融市场的经济新闻 注册 登录 拉丁字符(不带空格) 密码将被发送至该邮箱 发生错误 使用 Google 登录 您同意网站政策和使用条款 如果您没有帐号,请注册 可以使用cookies登录MQL5.com网站。 请在您的浏览器中启用必要的设置,否则您将无法登录。 忘记您的登录名/密码? 使用 Google 登录
AZRUL
将此:
static datetime lastUpdated = 0; if ((TimeCurrent()-lastUpdated) < PERIOD_M5*60) return(0); lastUpdated=TimeCurrent() 。
作为启动程序的第一行,启动程序的其余代码将被执行,两个连续的执行之间至少有5分钟的延迟。亲爱的MLADEN先生。
我将尝试把这些代码放在ONLY....。
非常感谢您的时间和专业知识,....
第5个学分
你真正的
AZRUL...
如果我在编译这段代码时使用 "strict",我会得到"数组超出范围"。
if (RSI4 > RSI1 && RSI4 < RSI1) drawArrow(i,Aqua,233,false);
if (RSI4 RSI1) drawArrow(i,Tomato,234,true);
[/PHP]
This works with no errors but of course there are arrows on every candle
if (RSI4 > RSI1 ) drawArrow(i,Aqua,233,false);
if (RSI4 < RSI1 ) drawArrow(i,Tomato,234,true);
This appears to be the problem as soon as the +1 is added.
[PHP]RSI4 > RSI1有什么办法可以解决这个问题吗?
如果我在编译这段代码时使用 "strict",我会得到 "数组超出范围"。
if (RSI4 > RSI1 && RSI4 < RSI1) drawArrow(i,Aqua,233,false);
if (RSI4 RSI1) drawArrow(i,Tomato,234,true);
[/PHP]
This works with no errors but of course there are arrows on every candle
if (RSI4 > RSI1 ) drawArrow(i,Aqua,233,false);
if (RSI4 < RSI1 ) drawArrow(i,Tomato,234,true);
[/PHP]
This appears to be the problem as soon as the +1 is added.
[PHP]RSI4 > RSI1cja
试着像这样。
[PHP]if(i<(Bars-1))
{
如果(RSI4 > RSI1 && RSI4 < RSI1) drawArrow(i,Aqua,233,false);
如果(RSI4 RSI1) drawArrow(i,Tomato,234,true);
}它应该可以工作
你好,我有一个指标斐波那契的问题,我想把它用在同一个图上,到1440和2280,就像这个图片一样。
(这就是我手动创建的原因)
问题是,我创建了第二个版本的指标到2天,但当我把它插入同一个图形上,我有1440版本的指标自动不再看到1440的线。我希望能在您的帮助下解决这个问题。
你好,我有一个指标fibonacci的问题,我想把它用在同一个图形上,到1440和2280,如图所示。
(这就是为什么我手动创建)
问题是,我创建了第二个版本的指标到2天,但当我把它插入我有指标的1440版本的同一图形上时,自动不再看到1440的线条。我希望能在您的帮助下解决这个问题。dany84
现在就试试吧:fibo_v9_1.mq4
将UniqueID参数设置为该指标每个新实例的唯一值,然后你就可以拥有你想要的众多实例了。
dany84
现在试试吧:fibo_v9_1.mq4
为指标的每个新实例设置UniqueID参数为唯一值,然后你就可以有任意多的实例了。谢谢你,Mladen!!现在工作正常了![](https://c.mql5.com/forextsd/smiles/regular_smile.png)
奇怪的错误!!!
I have the following string: " 99.40 "
double TakeProfit = StrToDouble("99.40");
Print("TakeProfit =", TakeProfit);
Print("or TakeProfit = ", NormalizeDouble(TakeProfit,2);
这就是输出。
TakeProfit =99.40000000000001
或TakeProfit =99.40000000000001
谁能给我解释一下这个奇怪的错误,我应该怎么做?
谢谢你!
奇怪的错误!!!
I have the following string: " 99.40 "
double TakeProfit = StrToDouble("99.40");
Print("TakeProfit =", TakeProfit);
Print("or TakeProfit = ", NormalizeDouble(TakeProfit,2);
而这是输出。
TakeProfit =99.40000000000001
或者TakeProfit = 99.40000000000001
谁能给我解释一下这个奇怪的错误,我应该怎么做?
谢谢你!sunshineh
你是如何通过打印得到 "00000000001 "部分的?
我在使用该代码时得到了这个结果。
你好。
这是两个不同的metatrader账户的打印信息。
你好。
这是两个不同的metatrader账户的打印信息。
可能是构建
我使用build 660来测试这个问题