同时挂两个对冲单子的模块

楼主  收藏   举报   帖子创建时间:  2019-05-05 05:08 回复:0 关注量:11
同时挂两个对冲单子的模块
extern double Lots = 0.1;
extern int ChasStart = 10;
extern int ChasStop = 22;
extern int Step = 15;
extern int TP = 200;
if (TimeHour(TimeCurrent())==ChasStart && TimeMinute(TimeCurrent())==0)
{
OrderSend(Symbol(),OP_BUYSTOP,Lots,Ask+Step*Point,3,0,Ask+(Step+TP)*Point,””,12321,0,
Green);
OrderSend(Symbol(),OP_SELLSTOP,Lots,Bid-Step*Point,3,0,Bid-(Step+TP)*Point,””,12321,0,R
ed);
}

打赏