dingmaotu / mql4-lib

MQL4/5 Foundation Library For Professional Developers
Apache License 2.0
544 stars 251 forks source link

hi. got a problem in the example. TestOrderPool.mq4 #42

Closed chhcuo closed 6 years ago

chhcuo commented 6 years ago

// for simplicity, I will not use the Lang/Script class void OnStart() { LinkedList<Order*> list; (OrderList error) int total= OrdersTotal();//TradingPool::total();(here.. i dont know, just use the mql offical....) for(int i=0; i<total; i++) { if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)) (here.. i dont know, just use the mql offical....) { OrderPrint(); // to compare with Order.toString list.push(new Order()); } }

PrintFormat("There are %d orders. ",list.size());

=============== plz update TradingPool() in ur convience. thx lots.

dingmaotu commented 6 years ago

See the latest README. The commit used to close this issue has some problems.

chhcuo commented 6 years ago

thank u. digmaotu.