MQL4 - automated forex trading   /  

论坛

是代码函数的错误吗?

返回到主题页面 想要建立新主题, 请 登陆注册

avatar
11
womoon 2010.01.27 21:17 
在IBFX平台
MathFloor( double x)
MathCeil( double x)

这两个函数计算结果相同,

为什么啊?请专家帮忙解释一下,谢谢!

article

对于 Patrick Nouvion的访谈

"I was in Vegas for the Forex Traders Expo last week or so, and still a lot of people came to me and asked "What is automated trading?" and once I told them they still could not believe it was fully automated. A lot of gurus insist on execution and how it has to be fast, mechanical. They insist on how you have to respect your own rules, well an automated expert is the perfect solution for all this, but not enough people realize it is available yet."


avatar
56
Loong 2010.01.28 12:21 

The MathFloor function returns a numeric value representing the largest integer that is less than or equal to x.

The MathCeil function returns a numeric value representing the smallest integer that exceeds or equals to x.

你输入的x是整数吧?


avatar
11
womoon 2010.01.28 16:57 
Loong 写道 >>

The MathFloor function returns a numeric value representing the largest integer that is less than or equal to x.

The MathCeil function returns a numeric value representing the smallest integer that exceeds or equals to x.

你输入的x是整数吧?

womoon
写道
>>
在IBFX平台
MathFloor( double x)
MathCeil( double x)

这两个函数计算结果相同,

为什么啊?请专家帮忙解释一下,谢谢!

确实输入的是整数,知道我的错误了,感谢!


avatar
56
Loong 2010.01.28 18:23 

晕,这都被我猜到?


avatar
11
womoon 2010.02.02 06:18 
Loong 写道 >>

晕,这都被我猜到?

是啊!写EA时思考的问题很多,期间经常有错误出现,出错后脑筋没转过弯时,需要很长时间才能查出错误所在,往往错误是很简单的;我写了很多EA,回过头再去查看以前的EA时,有时都想不起来为什么这样写;我是自己边学边编写,没有规范的编写体系,应该总结一下了;编写出有效的好的EA确实不容易;有这样的交流平台,帮助很大,谢谢你的猜想。


avatar
1515
DxdCn 2010.02.02 10:01 

呵呵,高,连这都能被你猜到..............

返回到主题页面  

添加评论, 请 登陆注册