您需要 登录 才可以下载或查看,没有帐号?注册
参考别的EA删除修改得来的,但是为什么不会自动下单?请帮忙看下。
/+------------------------------------------------------------------+
//| 做多补仓EA.mq4 |
//| ZZ |
//| |
//+------------------------------------------------------------------+
#property copyright ZZ
#property link
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
extern double 总单数 = 50;
extern double 下单手 = 0.1;
extern double 止盈 = 98;
extern double 止损 = 15;
extern int 滑点 = 0;
string ea名字 = BUY
//| 以上都是自定义 |
//+------------------------------------------------------------------+
int init()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
for(int i=OrdersTotal();i0))
{
OrderSend(Symbol(),OP_BUYSTOP,(下单手),OrderOpenPrice(),(滑点),(OrderOpenPrice()-止损),(OrderOpenPrice()+止损),(ea名字),0,0,NULL);
Print( BUY STOP
return;} }
if((OrderSymbol()==Symbol()) (OrderProfit()
外汇交易有很大的风险性,本站所有资源均来自网络,请选择使用,如若出现亏损,本站不承担任何责任!