自己用模板编了个QQE的EA,请高手看看
//+------------------------------------------------------------------+ //| QQE Sample.mq4 | //| Copyright ?2005, metaQuotes Software Corp. | //| http://www.metaquotes.net/ | //+------------------------------------------------------------------+ extern double StopLoss = 100; extern double TakeProfit = 100; extern double Lots = 0.1; extern double TrailingStop = 0; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int start() { double QQECurrent, QQEPrevious; int cnt, ticket, total; // initial data checks // it is important to make sure that the expert works with a normal // chart and the user did not make any mistakes setting external // variables (Lots, StopLoss, TakeProfit, // TrailingStop) in our case, we check TakeProfit // on a chart of less than 100 bars if(Bars(Ask+Point*TrailingStop)) || (OrderStopLoss()==0)) { OrderModify(OrderTicket(),OrderOpenPrice(),Ask+Point*TrailingStop,OrderTakeProfit(),0,Red); return(0); } } } } } } return(0); } // the end. |
打赏
最新创建圈子
- 新闻EA运行效果图圈 2019-05-05
圈主:admin 帖子:1