This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community

what is meaning?


Back to topics list
avatar
9
dqj8848 2005.03.02 08:37 
// it is important to enter the market correctly,
// but it is more important to exit it correctly...
total=OrdersTotal();
for(cnt=0;cnt<total;cnt++)
{
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if(OrderType()==OP_SELL && // check for opened position
OrderSymbol()==Symbol())
{
if(OrderType()==OP_BUY) // long position is opened
{......

avatar
unknown 2005.03.02 10:34 
This is mistake on website page. Fixed. Thank you.
Back to topics list  
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets