Lua Editor

From FxCodeBaseWiki
Jump to: navigation, search

Lua Editor

The Lua Editor is located in the root SDK folder and called luaedit.exe. You can use a shortcut "Lua Edit" created in Start->Programs->IndicatorSDK.

Editing Code

Editor

The main intention of the editor is to create and modify the source code of the indicators and strategies.

  • The editor highlight all Lua key constructions such as comments, key words, constants.
  • You can cut, copy or paste the code using clipboard and the standard clipboard shortcuts (Ctrl-X, Ctrl-C, Ctrl-V)
  • You can undo the last operation.
  • You can search inside the code, using the regular text or Perl-Compatible Regular Expressions (PCRE documentation).

Not so much, but this is just a replacement for notepad rather than professional programmer's editor. The most of programmers have their own preferred programmers editor and there is no reason to compete with all these MultiEdit or UltraEdit.

Wizards

You can also create a template for the indicator or strategy using File->Indicator->New or File->Strategy->New commands. The form to edit the basic indicator (strategy) parameters appears. You can specify the basic things such as parameters, output streams and so on and the wizard will create all basic functions for you. Of course, all complex logic still has to be programmed in Lua language.

If you don't want to use wizard just click on "Cancel". An empty file will be created.

Configuration

The Lua Edit is only application which can be used to configure the common settings, such as folder locations or colors. Indicator Debugger and Strategy Debugger uses the same configuration file, so if you want to change it - just change the configuration in Lua Edit. For example, to change location of strategies folder or indicators folder use File->Preferences ("Options" dialog appears), then pick either "Strategies Folder" or "Indicators Folder" from group "Files and Folders", and fill the value.

This Article in Other Languages

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