帮忙看些代码怎么修改
想用EA实现自动补单,在论坛找了一个网格EA修改了。因为很多函数的定义不了解。希望大家能帮我一起修改下。
//实时补仓
#include
//inputs esterni
extern double 买上获利目标 = 20;
extern double 卖下获利目标 = 20;
extern int DLong = 20;
extern int DShort = 20;
extern double Pct_Equity = 1;
extern double 倍数加码 = 2;
extern int 限制下单量 = 100;
extern int 滑点 = 3;
extern int 仓量 =100;
extern bool UseSound = false;
extern int 小仓 =2; //0.01=2
//variabili globali
stringea名字 = \"实时补仓\";
double买上止损 = 200;
double卖下止损 = 200;
stringNameFileSound= \"alert.wav\";
double注码 = 0.01;
double最高注码 = 2;
int 止损 = 20;
double判断买上=0,判断卖下=0,当前账户净值=9999999;
int c,j;
double 买上下注码,卖下下注码,Long,Short;
double LastB=0,LastS=1000;
//+------------------------------------------------------------------+
//| 以上都是自定义 |
//+------------------------------------------------------------------+
int init()
{
当前账户净值=AccountEquity();
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
double Price=iClose(NULL,0,0);
if (!ExistPositions()) {判断买上=0; 判断卖下=0;}
int T=0;
int B=0;
for(int i=0;i100) 卖下下注码=100;
if (T==0) { Long=1000;}
if (B==0) {Short=-1000;}
if ((T>0)||(B>0))
{
if ((判断买上==1)&&(Long>LastB)) Long=LastB;
if ((判断卖下==2)&&(Short 唉,悲催的外汇。。 我有个群,大家一起来讨论EA. i love you 我好想升级 一个子 没看懂 不错 不错比我强多了 偶真幸运哦... 最好的,我们一般很难遇到,否则全球通用了,那谁亏呢 我在顶贴~!~
页:
[1]
2