//+------------------------------------------------------------------+
//| スクリプトプログラム開始関数 |
//+------------------------------------------------------------------+
void OnStart()
{
//--- 利用可能なシンボルの数を取得する
int total = SymbolsTotal(false); // all symbols on the server
int selected = SymbolsTotal(true); // all symbols added to the Market Watch window
//--- 取得したデータを操作ログに送信する
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
*/
}
|