Skip to main content

tsa (method)

Using a time series analysis, this method attempts to forecast the close price of the next period. This information is combined with xtrend and smacross to indicate the strength of an expected price move.

To refine this method, other indicators are available to be used as confirmation for both buying and selling. For example you could have Gunbot buy when the forecasted price crosses up ask and RSI is 30 or lower.

How to work with it

Buy method conditions

A buy order is allowed when ask price crosses under the forecasted price.

Sell method conditions

A sell order is allowed when the bid price crosses up the forecasted price.

Strategy settings for TSA

Buy settings

LabelConfig ParameterDefault ValueDetailed Description
Buy enabledBUY_ENABLEDtrueThis setting allows you to enable or disable buy or long orders. When enabled, the strategy will place buy orders according to other specified parameters.

Sell settings

LabelConfig ParameterDefault ValueDetailed Description
Sell enabledSELL_ENABLEDtrueThis setting allows you to enable or disable sell or short orders. When enabled, the strategy will place sell orders according to other specified parameters.
GainGAIN1This setting specifies the gain target above break-even as a percentage. The default value is set at 1%, but you can adjust it between 0.1% and 5% based on your trading strategy's risk appetite and objectives.
Count sellCOUNT_SELL9999This setting determines the number of sell orders after which a trading pair is disabled. The default setting allows for virtually unlimited sell orders (up to 9999), but you can set this to a lower number if you wish to limit exposure after a set number of sells.

Indicators

LabelConfig ParameterDefault ValueDetailed Description
PeriodPERIOD15The period setting specifies the duration, in minutes, of the candlesticks used for indicator calculations. Ensure that you select a period supported by your exchange to optimize the effectiveness of your strategy. The default value is set at 15 minutes.

Overview of effects on different order types

Config ParameterAffected Order TypesNot Affected Order Types
Buy EnabledStrategy buy, DCA buy, RT buy, RT buybackStrategy sell, Stop limit, Close, RT sell
Sell EnabledStrategy sell, Stop limit, RT sellStrategy buy, RT buy, RT buyback, Close, DCA buy
GainStrategy sellStrategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit
PeriodStrategy sell, Strategy buy, DCA buy (trigger)RT buy, RT buyback, RT sell, Close, Stop limit