//— 取引操作を実行する可能性について通知する if(thisAccountTradeAllowed) Print(“Trade for this account is permitted”); else Print(“Trade for this account is prohibited!”);
//— この口座でエキスパートアドバイザーを使用しての取引が出来るかどうかをみる if(EATradeAllowed) Print(“Trade by Expert Advisors is permitted for this account”); else Print(“Trade by Expert Advisors is prohibited for this account!”);
//— 口座の種類を検出する switch(tradeMode) { case(ACCOUNT_TRADE_MODE_DEMO): Print(“This is a demo account”); break; case(ACCOUNT_TRADE_MODE_CONTEST): Print(“This is a competition account”); break; default:Print(“This is a real account!”); }
//— StopOut レベル設定モードを検出する switch(stopOutMode) { case(ACCOUNT_STOPOUT_MODE_PERCENT): Print(“The StopOut level is specified percentage”); break; default:Print(“The StopOut level is specified in monetary terms”); } }
voidOnStart() { //— AccountInfoString() 関数で使用可能な情報を全て表示する Print(“The name of the broker = “,AccountInfoString(ACCOUNT_COMPANY)); Print(“Deposit currency = “,AccountInfoString(ACCOUNT_CURRENCY)); Print(“Client name = “,AccountInfoString(ACCOUNT_NAME)); Print(“The name of the trade server = “,AccountInfoString(ACCOUNT_SERVER)); }