cTrader
Guide on how to integrate licensing library into indicators and cBots
Last updated
Was this helpful?
Guide on how to integrate licensing library into indicators and cBots
Last updated
Was this helpful?
After you have created an indicator or robot you will need to integrate to validate users' licenses and protect your product from unauthorized distribution.
Add as a reference using
Import namespace of the library by adding using PoshTrader.Licensing;
Add Item Attributes to the main class
Grant Full Access rights so licensing can communicate with our server
Declare ItemLicense
object
Create the license on startup
Check license status during runtime
To create the distribution file, please follow the steps below for creating an Algo file containing your indicators and/or robots.
Navigate to the Automate tab in the left sidebar
Select an indicator/robot you wish to export
Press Build
(Do NOT use Build with Source Code
which would make your code unprotected!)
See an example here: