求解有关 PositoinsTotal() 函数的问题

```#include <Trade\Trade.mqh>

void OnStart()
{

Print("开仓完毕 仓位数量",PositionsTotal());

//Sleep(1000);
//Print("开仓完毕 仓位数量",PositionsTotal());

}```

Mage He:

{

Print(.........);

}

hbsbill #:

{

Print(.........);

}

```#include <Trade\Trade.mqh>
void OnStart()
{

{

Print("开仓完毕 仓位数量",PositionsTotal());

}

//Sleep(1000);
//Print("开仓完毕 仓位数量",PositionsTotal());
}```

Mage He #:

hbsbill #:

```void  OnTradeTransaction(
);```

`PositionsTotal()`

`SymbolInfoInteger() , SymbolInfoDouble() `

`iHighest() iHigh() OrderCalcMargin()`

hbsbill #:

```#include <Trade\Trade.mqh>
void OnStart()
{

{

Print("开仓完毕 仓位数量",PositionsTotal());

}

}```

Hung Wen Lin #:

```void OnTick()
{
Print("开仓完毕（OnTick） 仓位数量 ",PositionsTotal());
}```

```void OnTick()
{
}
{
{
}
}```

`从程序端或通过OrderSend()/OrderSendAsync()函数手动发送的交易请求可以在交易服务器生成几个连续的事务。但不保证这些交易在程序端的优先到达。因此，开发您的交易算法时，您不必指望交易会一组接一组地到达。此外，交易可能在从服务器传递到终端过程中会丢失。`

```申请客户账户交易事务后，它们始终置于程序端交易事务队列，从这里它们一直送到OnTradeTransaction入口点以便到达程序端。

```

//---

//---

NewTick#

In case when OnTick function for the previous quote is being processed when a new quote is received, the new quote will be ignored by an Expert Advisor, because the corresponding event will not enqueued.

All new quotes that are received while the program is running are ignored until the OnTick() is completed.