有您的持续关注
我们会做得更好

EA平掉空单的函数模块



平掉空单的函数模块
void CloseSells(int MagicNumber, int Slippage)
{
for(int i = 0; i < OrdersTotal(); i++)
{
// already closed
if(OrderSelect(i, SELECT_BY_POS) == false) continue;
// not current symbol
if(OrderSymbol() != Symbol()) continue;
// order was opened in another way
if(OrderMagicNumber() != MagicNumber) continue;
if(OrderType() == OP_SELL)
{
if (OrderClose(OrderTicket(), OrderLots(), Ask, Slippage, Red))
{
i–;
}
RefreshRates();
}

如您喜欢此文章请点下面分享按钮↴峰汇在线 » EA平掉空单的函数模块
上一篇:
下一篇:
分享到:更多 ()

评论 抢沙发

评论前必须登录!