public method strategy:type

Brief

Sets the type of the strategy.

Declaration
Lua
strategy:type (type)

Parameters
type

The type of the strategy to set. Can be one of the following values:

core.Signal

The strategy only shows signals, do not trade.

core.Strategy

The strategy only trades, do not show signals. Marketscope and some other hosts do not call the Update method in case the terminal is not ready to trade, for example when the global table refresh is being executed.

core.Both

The strategy trades and shows signals.

Details

Example [hide]

   function Init()
       strategy:type(core.Both);
       ...
   end

back