勘误:
//平仓持有的买单
void CloseBuy()
{
if (OrdersTotal( ) > 0 )
{
for(i=OrdersTotal()-1;i<0;i++) 改为 for(i=OrdersTotal()-1;i>=0;i--)
{
//平仓持有的卖单
void CloseSell()
{
if (OrdersTotal( ) > 0 )
{
for(i=OrdersTotal()-1;i<0;i++) 改为 for(i=OrdersTotal()-1;i>=0;i--)
{
Fixed. Which time frame your expert adviser works on?
It is only a example of EA framework for learning EA programming, can be
used a EA course.
MetaTrader编程入门(1)--智能交易系统基础