[分析咖]盈利保护的Script不好用了,求帮助
以前好用的,现在MT4升级后,就不管用了,请帮助,谢谢!
extern int Profitprotect=20;
extern bool Apips=true;
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//----
if(Apips==true)
Profitprotect=Profitprotect*10;
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
for(int i=0;iProfitprotect*Point)
OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice(),OrderTakeProfit(),0,Blue);
break;
case OP_SELL:
if((OrderOpenPrice()-OrderClosePrice())>Profitprotect*Point)
OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice(),OrderTakeProfit(),0,Blue);
break;
default:
break;
}
}
//----
return(0);
}
//+------------------------------------------------------------------+
3楼
自己搞错了,
韬客社区www.talkfx.co
发表于:2014-07-07 03:23只看该作者
4楼
韬客社区www.talkfx.co