//+------------------------------------------------------------------+ //| 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)), (TerminalInfoInteger(TERMINAL_CONNECTED))? "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() { //--- } //+------------------------------------------------------------------+