×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts

Changes

Jump to navigation Jump to search

MultiCharts Study DRM Server

101 bytes added, 18:15, 7 November 2022
no edit summary
== General Description of the Protection Mechanism ==
 
When protecting the study the source code is exported to an assembly (DLL), which is protected by any NET obfuscator. MC .NET Special Edition features the Confuser Ex obfuscator. User can also use any other obfuscator. When importing the protected study a class inherited from the encrypted assembly is created. The encrypted assembly is connected via references.
 
In case the Study is used on several computers at the same time, the last user disconnects all connected users in 5 minutes.
 
To integrate licensing system into your studies the following steps are required:
# Register with MultiCharts LLC as a developer;
# Distribute the licenses among the users.
<div style== Step by Step Instructions =="background-color: #E3FBE5;">'''NOTE:''' In case a study is used on several computers at the same time, the last user disconnects all connected users in 5 minutes.</div>
=== Step 1: Register as a Developer ===
To do this: Send send an e-mail to '''[mailto:tradingsupport@ampclearingmulticharts.com trading@ampclearing.com]''' <br>
Your e-mail address will be used as your login and the password for the DRM system will be sent to you via e-mail.
=== Step 2: Select a Name for the Study ===
After you receive your password you should log in to '''httphttps://mcauth1.com/MCAIServer/''' server using your login and password. <br>
Then, go to the '''Study Name''' section.
* Default license period.
=== Step 3: Add a DRM Call Code to Your Study == ===In MultiCharts (PowerLanguage)=== Add the [[VerifyLicense]] function to your study. For example: <syntaxhighlight>VerifyLicense("Moving Average", "Adam.Smith@gmail.com");</syntaxhighlight> ===In MultiCharts .NET===
Add the VerifyLicense function call to your study in constructor and set the registered study name and your login as parameters.
For example:
'''<syntaxhighlight>public MovingAverageIndiсator(object _ctx) : base(_ctx){''' <br> '''VerifyLicense("Moving Average", "Adam.Smith@gmail.com");'''<br> '''}'''</syntaxhighlight>
Study name and e-mail are not case-sensitive.
=== Step 4: Create Export a Protected Study == ===In MultiCharts (PowerLanguage)=== After the study is connected to DRM, it should be exported to a SEF (read-only) file: [[Importing_and_Exporting_Studies#Exporting_Studies_in_SEF_.28Read-only.29_Format|'''see how''']]. SEF study can be distributed to the users. ===In MultiCharts .NET===
After the study is connected to DRM, it should be exported to a PLN file with protection. <br>
Exported study can be distributed to the users.
 
<div style="background-color: #E3FBE5;">'''Note:'''
# You can protect the assembly using the built-in obfuscation tool or configure the application to use any other tool. The following obfuscators do not need additional configuration in PowerLanguage Editor: NET Reactor, Agile DOT NET, dotfuscator and Cli Secure.</div> <br>
=== Step 5: Managing Licenses ===
Go to the Licenses section to create a key.
After clicking the '''OK''' button the license is created and the key can be sent to the user.
 
[[Category:Help]]

Navigation menu