//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
//--- 사용 가능한 심볼 수를 가져옵니다.
int total = SymbolsTotal(false); // 서버에 있는 모든 심볼
int selected = SymbolsTotal(true); // 모든 심볼이 종합 시세창에 추가 되었습니다
//--- 얻은 데이터를 저널로 보냅니다.
PrintFormat("Number of available symbols on the server: %d\n"+
"Number of available symbols selected in MarketWatch: %d", total, selected);
/*
결과:
Number of available symbols on the server: 140
Number of available symbols selected in MarketWatch: 11
*/
}
|