Initial commit: MQL5 Scripts Collection (MetaTrader 5)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# 🚀 Unlock the Power of Trading!
|
||||
|
||||
Welcome to this open-source trading project. Here you will find powerful tools to enhance your trading journey. If you find this project useful, please consider starring ⭐, sharing, or donating to support further development!
|
||||
|
||||
---
|
||||
|
||||
**Support the project:**
|
||||
- Star this repository on GitHub
|
||||
- Share it with your trading friends
|
||||
- [Donate here](https://www.paypal.com/donate/?hosted_button_id=YOUR_BUTTON_ID) to help us grow!
|
||||
|
||||
---
|
||||

|
||||

|
||||
|
||||
## Source Files
|
||||
- `licence_create.mq5`
|
||||
|
||||
---
|
||||
> Made with ❤️ for the trading community.
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 2.6 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
+50
@@ -0,0 +1,50 @@
|
||||
//+------------------------------------------------------------------+
|
||||
//| Traders Toolbox Licence Create.mq5 |
|
||||
//| Copyright 2020, MetaQuotes Software Corp. |
|
||||
//| https://www.mql5.com |
|
||||
//+------------------------------------------------------------------+
|
||||
#property copyright "Copyright 2020, MetaQuotes Software Corp."
|
||||
#property link "https://www.mql5.com"
|
||||
#property version "1.00"
|
||||
#property script_show_inputs
|
||||
|
||||
#include </CLicence.mqh>
|
||||
|
||||
//--- input parameters
|
||||
input string EncyptionKey; // Encryption Key
|
||||
input string BrServer; // Broker Server
|
||||
input string AccountNo; // Account Number
|
||||
input string FileName; // File Name
|
||||
input bool CommonFolder = true; // Put in Common Folder
|
||||
|
||||
|
||||
//+------------------------------------------------------------------+
|
||||
//| Script program start function |
|
||||
//+------------------------------------------------------------------+
|
||||
void OnStart()
|
||||
{
|
||||
//---
|
||||
string KeyStr = "This is the Master Key";
|
||||
string AccountStr = IntegerToString(AccountInfoInteger(ACCOUNT_LOGIN));
|
||||
string BrokerServStr = AccountInfoString(ACCOUNT_SERVER);
|
||||
string FileStr = "EAIndicator.lic";
|
||||
|
||||
// if no input was specified defaults to Setttings above...
|
||||
if(EncyptionKey != "")
|
||||
KeyStr = EncyptionKey;
|
||||
if(AccountNo != "")
|
||||
AccountStr = AccountNo;
|
||||
if(BrServer != "")
|
||||
BrokerServStr = BrServer;
|
||||
if(FileName != "")
|
||||
FileStr = FileName;
|
||||
|
||||
CLicence *CEALicence;
|
||||
CEALicence = new CLicence(FileStr,KeyStr, true); // true if file must be placed in common folder...
|
||||
if(CEALicence.m_Write(AccountStr, BrokerServStr))
|
||||
{
|
||||
Alert("Licence Created...");
|
||||
};
|
||||
delete CEALicence;
|
||||
}
|
||||
//+------------------------------------------------------------------+
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
Reference in New Issue
Block a user