Signals and Strategies

Brief

The section describes how to create signals and strategies

Details

Signal is an alert which appears when some condition built on the base of prices and/or indicators and/or any other information is satisfied. Strategy can also execute the orders.

There is no difference between signals and strategies in the SDK, so let's call both signals and strategies "a strategy" in future. The "signal" just means a strategy which does not trade but just shows alerts.

The IndicoreSDK allows you to write various strategies in Lua and then install and use these strategies in the Marketscope application.

The strategies look similar to the indicators. As for indicator, you have to "introduce" your strategy using the Init() function, then prepare strategy to be executed using Prepare() function, and, finally, every time when a new offer (bid or ask price) appears, the Update() function of the strategy will be called.

Unlike indicators, strategies are always applied on live (permanently updating) tick history of an instrument. However, your strategies can use the host table to get additional data, for example, for other instruments or other time frames.

Articles

The Structure of a Strategy Program

The section describes the structure of a strategy program written in the SDK.

Applying the strategy on candle data using the helper.

The section describes how to apply the strategy on candle data.

back