请牛版解读一下这个ea 因为是新手还有很多看不懂! /+------------------------------------------------------------------+ //| 0073.mq4 | //+------------------------------------------------------------------+ extern int MagicNumber = 16384; 魔术号码 extern bool Stair = true;累加 extern double Lots = 0.01; extern double StairProfit = 1;利润达到多少开始累加 extern bool CloseProfit = false;关闭利润 extern double CPUp=20000;利润达到多少停止累加 extern double CPDown=-300;利润小于多少禁止累加 int start() 开始 { for (int i=0; i((((1+OrdersTotal()挂单总数 )*OrdersTotal()挂单总数 )/2)*StairProfit利润达到多少开始累加 )){ ticket=OrderSend(Symbol()当前货币对,OP_BUY买进,Lots 0.01,askprice,0,0,0,"Buy",MagicNumber,0,Green)开仓; } } } if (OrderType()==OP_SELL卖出) { double bidprice=Bid; if(Stair==true) { if (OrderProfit()>((((1+OrdersTotal())*OrdersTotal())/2)*StairProfit)){ ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,0,0,0,"Sell",MagicNumber,0,Red); } } } if(CloseProfit==true) { for(i=0;i=CPUp) { OrderClose(OrderTicket()订单号,OrderLots()订单手数,Bid,3,Red); 平仓 OrderClose(OrderTicket(),OrderLots(),Ask,3,Red); } if(AccountProfit() |
请牛版解读一下这个ea
回复:0 浏览:868
- 楼主admin 圈主
- 2019-05-05 15:27