帮忙看些代码怎么修改
想用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 string ea名字 = "实时补仓"; double 买上止损 = 200; double 卖下止损 = 200; string NameFileSound = "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运行效果图圈 2019-05-05
圈主:admin 帖子:1