请教一下高手这个EA怎么修改才能交易0.01手? 新评论 teststudy 2013.12.19 13:47 我把extern bool IncreasingLot = TRUE 改成extern bool IncreasingLot = FALSE,把extern double Lots = 0.1改成extern double Lots = 0.01。交易的时候却提示“invalid lots amount for OrderSend function” 代码: #property copyright "www.fxproadvisor.com" #property link "www.fxproadvisor.com" extern double Lots = 0.1; extern int LotsMax = 10; extern bool IncreasingLot = TRUE; extern int LotsPercent = 5; extern int DropDown = 95; extern int SinFastPeriod = 55; extern int SinSlowPeriod = 89; extern bool UseFilter = TRUE; extern bool InfoComment = TRUE; double gd_116; double gd_124; string gs_132 = ""; ...... 附加的文件: 56a.mq4 15 kb 请各位老大或者高手帮帮忙,改一下 Ojala EA [存档]任何菜鸟问题,为了不使论坛变得杂乱无章。专业人士,不要路过。没有你就无处可去 - 3. enbo lu 2013.12.20 02:40 #1 extern double Lots = 0.1; -> extern double Lots = 0.01; 你最好用Marketinfo在代码里增加效验,检查平台允许的最小交易手数是多少。 在增加或减少交易量是也要增加效验,确保交易量符合平台规范,如变化步长。 teststudy 2013.12.20 02:59 #2 谢谢!我的平台支持0.01的。请问怎样效验呢? 新评论 您错过了交易机会: 免费交易应用程序 8,000+信号可供复制 探索金融市场的经济新闻 注册 登录 拉丁字符(不带空格) 密码将被发送至该邮箱 发生错误 使用 Google 登录 您同意网站政策和使用条款 如果您没有帐号,请注册 可以使用cookies登录MQL5.com网站。 请在您的浏览器中启用必要的设置,否则您将无法登录。 忘记您的登录名/密码? 使用 Google 登录
我把extern bool IncreasingLot = TRUE 改成extern bool IncreasingLot = FALSE,把extern double Lots = 0.1改成extern double Lots = 0.01。交易的时候却提示“invalid lots amount for OrderSend function”
#property copyright "www.fxproadvisor.com"
#property link "www.fxproadvisor.com"
extern double Lots = 0.1;
extern int LotsMax = 10;
extern bool IncreasingLot = TRUE;
extern int LotsPercent = 5;
extern int DropDown = 95;
extern int SinFastPeriod = 55;
extern int SinSlowPeriod = 89;
extern bool UseFilter = TRUE;
extern bool InfoComment = TRUE;
double gd_116;
double gd_124;
string gs_132 = "";
......