Licensing Integration
FXNook Developer Guide
Licensing Integration Guide
This guide explains how vendors must integrate the FXNook licensing system into their product (EA or Indicator). Follow these steps exactly to avoid rejection.
What Is FXNook Licensing?
FXNook licensing protects your product from piracy and ensures only valid customers can use it. All paid products must use this system.
Step 1: Place the Licensing DLL
- Copy LicenseFx.dll into the /Libraries folder
- Restart MetaTrader terminal
- Confirm DLL imports are enabled
Step 2: Add Licensing Code
Add the following code at the top of your source file:
#import "LicenseFx.dll"
void StartLicenseChecker_Filepath(const uchar &account[], const uchar &key[], const uchar &filepath[]);
bool IsLicenseValid();
void GetLicenseMessage(char &outMsg[], int maxLen);
#import
Step 3: Initialize Licensing
Call the licensing system inside OnInit():
extern string key = "PASTE_LICENSE_KEY";int OnInit()
{
string acc = IntegerToString(AccountNumber());
uchar acc_arr[], key_arr[], fp_arr[];StringToCharArray(acc, acc_arr);
StringToCharArray(key, key_arr);
StringToCharArray(WindowExpertName(), fp_arr);StartLicenseChecker_Filepath(acc_arr, key_arr, fp_arr);
return(INIT_SUCCEEDED);
}
Step 4: Validate License
Always block functionality if the license is invalid:
void OnTick()
{
if(!IsLicenseValid())
{
Comment("License Invalid");
return;
}
// Your product logic here
}
Required Behavior
If the license is invalid, the product must NOT trade, calculate, or display signals.
Common Mistakes (Avoid These)
- Running logic before license validation
- Hardcoding account numbers
- Using external licensing systems
- Removing or hiding license checks
Zero Tolerance
Any attempt to bypass FXNook licensing results in permanent delisting and vendor ban.
© FXNook Marketplace
Licensing integration · Last updated 2025