Protecting Indicators and Strategies Source Code

From FxCodeBaseWiki
Jump to: navigation, search

Introduction

Indicators and strategies for Indicore SDK and Marketscope are saved as .lua files that can be opened in any text editor. If you decide to distribute your indicator or strategy, everyone will be able to see its source code. If you wish to protect your source code, you should save it as a binary file, which cannot be either viewed or changed.

What is Binary File?

A binary file is a non-text computer file that may contain any type of data, encoded in a binary form for computer storage and processing purposes.

How to Save Source Code as Binary File?

If Indicore SDK 2.1 is not installed on your computer, it should be downloaded and installed first.

Before the compilation, put your indicator in the folder where indicators are installed (by default it is C:\Gehtsoft\IndicoreSDK\indicators).

To create a compiled indicator, do the following:

  1. Run Lua Indicator Debugger. To do that, click Start, point to Programs, then to Indicore SDK, and click Lua Indicator Debugger.
  2. On the Tools menu, click Compile.
    Step11.jpg
  3. The Choose Indicator dialog box will appear. It shows the indicators located in the Indicators folder.
    Step2.jpg
  4. Select the file containing the source code of the indicator.
  5. Click OK. The Save As dialog box will appear.
  6. In the File name field, enter the indicator name.
  7. Click Save.

To create a compiled strategy, do the following:

  1. Run Lua Strategy Debugger. To do that, click Start, point to Programs, then to Indicore SDK, and click Lua Strategy Debugger.
  2. On the File menu, click Install Custom Strategy.
    SDK1.png
  3. In the Open dialog box, choose the strategy that you would like to compile.
  4. On the Tools menu, click Compile.
    SDK2.png
  5. In the Choose Strategy dialog box, select your strategy, and click OK.
    SDK3.png
  6. In the Save As dialog box, choose the folder to save your compiled strategy, and click Save.


This Article in Other Languages

Language: English  • español