关于每种货币对只开一仓的问题
想每种货币对只开一仓,结果所有货币对只开一仓了:<div class="blockcode"><div id="code_MQc"><ol>//+------------------------------------------------------------------+ //| MACD Sample.mq4 | //| Copyright ?2005, metaQuotes Software Corp. | //| http://www.metaquotes.net/ | //+------------------------------------------------------------------+ extern double Lots = 0.01; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int start() { double ma2_0,ma2_1; int cnt, ticket, total; if(Bars0 && ma2_010000) {ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,10,0,0,"YY_V100",16384,0,Red); if(ticket>0) { if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES)) Print("SELL order opened : ",OrderOpenPrice()); } else Print("Error opening SELL order : ",GetLastError()); return(0); } return(0); } for(cnt=0;cnt |
打赏
最新创建圈子
- 新闻EA运行效果图圈 2019-05-05
圈主:admin 帖子:1