(‘mt5’, ‘MQL5’)口座情報MQL5
AccountInfoString口座の文字列の情報を調べる(MQL5)
MQL5で、口座通貨・業者名など文字列で表される口座情報を調べる。
1書式
string AccountInfoString( ENUM_ACCOUNT_INFO_STRING prop_id );
MQL4のAccountCurrency()・AccountCompany()等に相当。
2引数
| 引数 | 内容 |
|---|---|
| prop_id | ACCOUNT_CURRENCY・ACCOUNT_COMPANY等 |
3戻り値
調べた項目の文字列。
4使用例
string cur = AccountInfoString(ACCOUNT_CURRENCY); string company = AccountInfoString(ACCOUNT_COMPANY); Print(cur, " / ", company);
MetaEditorでコンパイル0エラー・0警告を確認済み。