下载MetaTrader 5
要添加评论,请登录注册
注册为卖方开始盈利吧!
teststudy
7
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
enbo lu
版主
1894
enbo lu 2013.12.20 02:40  

extern double Lots = 0.1;

->

extern double Lots = 0.01;

你最好用Marketinfo在代码里增加效验,检查平台允许的最小交易手数是多少。

在增加或减少交易量是也要增加效验,确保交易量符合平台规范,如变化步长。

teststudy
7
teststudy 2013.12.20 02:59  
谢谢!我的平台支持0.01的。请问怎样效验呢?
/
要添加评论,请登录注册