2楼
有高手没,帮忙写个啊
韬客社区www.talkfx.co
3楼
找到一个,但是不能交易,参数也不对,谁能帮忙改下啊,谢谢了!
//+------------------------------------------------------------------+
//| Macross.mq4 |
//| Copyright ?2010, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright ?2010, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
#define Magic 12345
extern int ma1=8;
extern int ma2=21;
extern int Slip=3;
int HoldingOrderType;
int start()
{
//----
int Cnt=GetHoldingOrderCnt();
if(Cnt<=0)//空仓
{
}else//持仓
{
}
//----
return(0);
}
//+------------------------------------------------------------------+
int GetHoldingOrderCnt()
{
int j=0;
for(int i=0;iMa2Data1 && Ma1DataMa2Data)
{
return(True);
}else return(false);
break;
}
//+-----
}
//+------------------------------------------------------------------+
韬客社区www.talkfx.co