Downloading Indicators and Strategies from Codebase

From FxCodeBaseWiki
Jump to: navigation, search

What is Codebase?

Codebase is the website you are visiting right now. On this website, there are three locations where Lua code can be found for further usage in the application Marketscope.

Downloading Codes for Codebase

Downloading Files

Lua Files

This method can be used if an indicator, a signal or a strategy is attached to a post.

Fxcdownload1.png

Right-click on the file name. In the pop-up menu select Save Target As (if you are using Internet Explorer) o Save Link As (if you are using Firefox):

IE:
Fxcdownload2.png
Firefox:
Fxcdownload3.png

The Save As window will appear. Choose a folder on your computer to save the code file and Save.

Fxcdownload4.png

Resource Files

Sometimes you can find a resource file attached to a post. For example, for the indicator named I.lua, the resource file will be named I.lua.rc.

In this case you must download both files into the same folder in order to have the indicator, signal, or strategy correctly installed later.

Please, do not change the name or extension of the files you download.

Bin Files

Sometimes an indicator is published in a compiled form. In this case, the file extension will be bin instead of lua.

Download such files exactly as you download regular Lua files. Please note that compiled indicators never require resource files.

Downloading Source Codes

Sometimes there is no file attached, but source code is published instead. To save the source code, click the SELECT ALL link:

Fxcdownload5.png

Right-click on the selected source code. In the pop-up menu, select Copy:

Fxcdownload6.png

Click the Start button and then click Run. In the Run window, enter notepad and click OK to open the Notepad application.

Fxcdownload7.png

In the Notepad application, click the Edit menu and then click Paste:

Fxcdownload8.png

The source code you have previously copied will appear. In the File menu, click Save As:

Fxcdownload9.png

The Save As window will appear. Choose the folder to save the file to and enter the file name.

  • Please make sure that the extension of the file is lua.
  • Please set Save as type to All files to avoid adding .txt extension to the file name.
Fxcdownload10.png

What to do Next?

This Article in Other Languages

Language: English  • español • français • русский • 中文 • 中文(繁體)‎