您需要 登录 才可以下载或查看,没有帐号?注册
想每种货币对只开一仓,结果所有货币对只开一仓了: div >
//| 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
外汇交易有很大的风险性,本站所有资源均来自网络,请选择使用,如若出现亏损,本站不承担任何责任!