【交流请教】修改的EA不下单?帮忙修改下
参考别的EA删除修改得来的,但是为什么不会自动下单?请帮忙看下。 /+------------------------------------------------------------------+ //| 做多补仓EA.mq4 | //| ZZ | //| | //+------------------------------------------------------------------+ #property copyright "ZZ" #property link "" //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ extern double 总单数 = 50; extern double 下单手 = 0.1; extern double 止盈 = 98; extern double 止损 = 15; extern int 滑点 = 0; string ea名字 = "BUY"; //| 以上都是自定义 | //+------------------------------------------------------------------+ int init() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { for(int i=OrdersTotal();i0)) { OrderSend(Symbol(),OP_BUYSTOP,(下单手),OrderOpenPrice(),(滑点),(OrderOpenPrice()-止损),(OrderOpenPrice()+止损),(ea名字),0,0,NULL); Print("BUY STOP"); return;} } if((OrderSymbol()==Symbol()) && (OrderProfit() |
打赏
最新创建圈子
- 新闻EA运行效果图圈 2019-05-05
圈主:admin 帖子:1