Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature currently requires accessing the site using the built-in Safari browser.
//+------------------------------------------------------------------+
//| Определение количества валютных пар из открытых ордеров |
//+------------------------------------------------------------------+
int SymbolsCount()
{
int count = 0;
string symbols[];
for(int i = 0; i < OrdersTotal(); i++)
{
if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES))
{
if(OrderType() <= OP_SELL)
{
bool is_elem = false;
for(int j = 0; j < ArraySize(symbols); j++)
{
if(OrderSymbol() == symbols[j])
{
is_elem = true;
}
}
if(!is_elem || ArraySize(symbols) == 0)
{
ArrayResize(symbols,i + 1);
symbols[i] = OrderSymbol();
count++;
}
}
}
}
return(count);
}
Заменил в функции тип переменной countСогласен. Копировал элементы кода, имя переменной изменил, а тип не исправил.