(‘mt5’, ‘MQL5’)口座情報MQL5
AccountInfoInteger口座の整数値の情報を調べる(MQL5)
MQL5で、口座番号・レバレッジなど整数で表される口座情報を調べる。
1書式
long AccountInfoInteger( ENUM_ACCOUNT_INFO_INTEGER prop_id );
MQL4のAccountNumber()・AccountLeverage()等に相当。
2引数
| 引数 | 内容 |
|---|---|
| prop_id | ACCOUNT_LOGIN・ACCOUNT_LEVERAGE等 |
3戻り値
調べた項目の値。
4使用例
long login = AccountInfoInteger(ACCOUNT_LOGIN);
long leverage = AccountInfoInteger(ACCOUNT_LEVERAGE);
Print("口座番号: ", login, " レバレッジ: 1:", leverage);
MetaEditorでコンパイル0エラー・0警告を確認済み。