Skype Control Library for MetaTrader
Info
The Skype Control Library for MetaTrader is a Library for MetaTrader 4 that this library allows for sending text messages with necessary information via skype in automatic trading. It works with Skype through the skype4com library, an ActiveX component that provides access to program management.
Usage
This tool is typically used for enhancing chart analysis and decision making.
Platform
This Library works exclusively on MetaTrader 4 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL4/Libraries folder via File ? Open Data Folder in MetaTrader 4.
How to Install and Use Skype Control Library for MetaTrader
1. Storage: Place library files in the MQL/Libraries directory to ensure they are accessible to your projects.
2. Implementation: Include the library in your code using the #import directive, ensuring you match the exact function names and parameters.
3. Compilation: Ensure the library is present in the directory before you compile your main EA or script, as the compiler links them during this phase.
4. Management: Keep libraries organized in sub-folders if you manage many custom functions to maintain a clean project structure.
Frequently Asked Questions
Q: What is a library file used for? A: Libraries store reusable code modules, allowing you to centralize common logic used by multiple EAs or indicators.
Q: Is a library executable? A: No, libraries are non-executable files containing functions; they must be imported into an EA, indicator, or script to function.
Q: Can I update a library while the platform is running? A: You should compile your EA or script after updating a library to ensure the latest code changes are integrated.
What this tool does
This library allows for sending text messages with necessary information via Skype in automatic trading.
Typical Use Case
This Library excels in automated trading and technical analysis on MetaTrader 4.
Compatible Platform & Setup
This Library works on MetaTrader 4. Place the file in the MQL4/Libraries folder and restart the terminal.
Description & Settings
Related: Automated MT4/MT5 Backtester Control - another powerful library for MetaTrader 4 traders.
This library allows for sending text messages with necessary information via Skype in automatic trading. It works with Skype through the skype4com library, an ActiveX component that provides access to program management. The skype4com.dll file must be downloaded from the official website of developers and installed and registered. For an operating system x86, copy the file to the %systemroot%\system32 folder and run %systemroot%\system32\regsvr32.exe %systemroot%\system32\skype4com.dll in the command line. For an operating system x64, copy the file to the %systemroot%\syswow64 folder and run %systemroot%\syswow64\regsvr32.exe %systemroot%\syswow64\skype4com.dll in the command line. The skypemql.dll library file must be installed in the folder: [terminal directory]\mql5\libraries.Also recommended: trading signals function - similar library with strong performance on MetaTrader 4.
The library provides two main functions: sending instant messages and sending SMS messages. The function for sending instant messages is skypesendinstantmessagew and skypesendinstantmessagea for MetaTrader 4. There are several tests before sending an instant message, including checking if the user name is not empty or starts with a number, if the user is in the contact list, if the message is not an empty string, and if the network status of the recipient matches the specified value. The list of network status constants includes status_offline, status_online, status_away, and status_dont_disturb. The maximum length of an instant message is ~8000 ANSI symbols or ~4000 Unicode symbols.
The function for sending SMS messages is skypesendsmsmessagew and skypesendsmsmessagea for MetaTrader 4. The service to send SMS messages is fee-paid. There are several tests before sending an SMS message, including checking if the telephone number is in the international format, if the length of the string is at least 7 symbols and starts with a '+' sign, and if the text message is not an empty string. The SMS message is limited to 116 ANSI symbols or 58 Unicode symbols.
The library also provides return values that can be analyzed if necessary. The constant names and values include error_unknown, error_no_errors, error_attach, error_authorized, error_status, error_timeouts, error_running, error_sending, error_value, and error_access.
At the first launch, a pop-up window appears that enables program management access. After confirming access to Skype, the requesting process enters the list stored in the program settings: tools - options - advanced - manage other programs' access to Skype.
Runtime errors may occur due to unknown reasons, and the work with the library compiled for MetaTrader 5 x64 may end with a 'stack overflow' error. If it is connected with skype4com, then you have to wait for new messages where this error will be corrected.
You may also like: math utils (mt4) - excellent alternative for library users on MetaTrader 4.
Source Code
#property copyright "robotfx"
#property link "https://robotfx.org"
#property show_inputs
#define status_offline 1
#define status_online 2
#define status_away 4
#define status_dont_disturb 16
#define error_unknown -1
#define error_no_errors 0
#define error_attach 1
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.