Experts/TM/Test-Account.mq4
super.admin da793cc2e1 convert
2025-05-30 14:54:10 +02:00

40 lines
1.9 KiB
MQL4

//+------------------------------------------------------------------+
//| Test-Account.mq5 |
//| Thorsten Fischer Copyright 2020 |
//| https://mql5.tfsystem.de |
//+------------------------------------------------------------------+
#property copyright "Thorsten Fischer Copyright 2020"
#property link "https://mql5.tfsystem.de"
#property version "1.00"
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//---
printf("Accountinfo Broker = %s | Konto = %s | Modus = %s | ServerVerbindung = %s | AutoKonto = %s | AutoExpert = %s",
AccountInfoString(ACCOUNT_COMPANY),
(string)AccountInfoInteger(ACCOUNT_LOGIN),
EnumToString((ENUM_ACCOUNT_TRADE_MODE)AccountInfoInteger(ACCOUNT_TRADE_MODE)),
(IsConnected())? "enabled" : "disabled",
(AccountInfoInteger(ACCOUNT_TRADE_ALLOWED))? "enabled" : "disabled",
(AccountInfoInteger(ACCOUNT_TRADE_EXPERT)) ? "enabled" : "disabled"
);
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Expert deinitialization function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
//---
}
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick()
{
//---
}
//+------------------------------------------------------------------+