Adding Licensing to an Indicator
Licensing an indicator and shipping the FXNook Agent with it.
MetaTrader does not let indicators connect to the internet, so indicator licensing works through a small companion EA, the FXNook Agent.
Step by step
- Make sure the product type is set to Indicator.
- In EA Licensing, download the licensing file. The page only asks about OnInit, and Old-style code for MT4.
- Add the include line as the first line of your indicator and compile.
- From the same page, download the FXNook Agent and compile it once.
- Put your compiled indicator and the compiled Agent in the product ZIP you upload.
How it works for the customer
- The customer runs the Agent on any one chart with their key.
- The Agent checks the licence every 15 minutes and saves FXNook’s signed answer.
- Your indicator reads it about once a minute and checks the signature itself with your secret.
The same Agent works for every FXNook indicator, holds no secret, and never trades.
Was this guide helpful?
Thank you - that helps us improve these guides.
Need help?
Most questions are answered by the guides above. If yours is not, our team will help.
Open Support Ticket