Messtone LLC Manages(Props):

Program Properties Running MQL5 Program Properties Example: ENUM_PROGRAM_TYPE mql_program=(ENUM_PROGRAM_TYPE)MQLInfoInteger(MQL_PROGRAM_TYPE);switch(mql_program){case PROGRAM_SCRIPT:{Print(__FILE__+” is script”);break;}case PROGRAM_EXPERT:{Print(__FILE__+” is expert Advisor”);break;}case PROGRAM_INDICATOR:{Print(__FILE__+” is custom indicator”);break;}default:Print(“MQL5 type value is “,mql_program);//—Print(MQLInfoInteger(MQL_MEMORY_LIMIT)=”,MQLInfoInteger(MQL_MEMORY_LIMIT),”MB”);Print(MQLInfoInteger(MQL_MEMORY_USED)=”,MQLInfoInteger(MQL_MEMORY_USED),”MB”);Print(“MQLInfoInteger(MQL_HANDLES_USED)=”,MQLInfoInteger(MQL_HANDLES_USED),”handles”);Client Terminal Properties Calculation://–Creating a 1.5 inch wide button on a screen int screen_dpi=TerminalInfoInteger(TERMINAL_SCREEN_DPI);//FIND DPI of the userrharper@messtone.com monitor int base_width=144; //The basic width in the screen points for standard monitors with DPI=96 int width =(button_width *screen_dpi) / 96; //Calculate the button width for the userrharper@messtone.com monitor (for the specific DPI)…//–Calculating the scaling factor as a percentage int scale_factor=(TerminalInfoInteger(TERMINAL_SCREEN_DPI) *100) / 96;//—Use of the scaling factor width=(base_width * scale_factor) / 100;The Client Terminal,installed on Messtone computer,the terminal path://+—————————+ // | Check_TerminalPaths.mq5 | // | Copyright 2009,MetaQuotes Software Corp. | // | https://www.mql5.com | //+——————————–+ #propery copyright “2009, MetaQuotes Software Corp. ” #property link https://www.mql5.com ” #property version “1.00” //+——————————+ // | Script program start function | //+———————————-+ void OnStart( ){//—Print(TERMINAL_PATH =”,TerminalInfoString(TERMINAL_PATH));Print(TERMINAL_DATA_PATH = “,TerminalInfoString(TERMINAL_DATA_PATH));Print(“TERMINAL_COMMONDATA_PATH = “,TerminalInfoString(TERMINAL_COMMONDATA_PATH));

Leave a comment