Skip to main content

Time Series Analysis Spot Trading Strategy

This method forecasts the next period’s close and combines that signal with xtrend and smacross to gauge the expected price move.

You can add confirming indicators for buys or sells. For example, buy when the forecasted price crosses above ask and RSI is 30 or lower.

How to work with it

Buy method conditions

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

Sell method conditions

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

Strategy settings for TSA

Buy settings

LabelConfig ParameterDefault ValueDetailed Description
Buy enabledBUY_ENABLEDtrueEnable or disable buy (long) orders for the strategy.

Sell settings

LabelConfig ParameterDefault ValueDetailed Description
Sell enabledSELL_ENABLEDtrueEnable or disable sell (short) orders for the strategy.
GainGAIN1Gain target above break-even, expressed as a percentage.
Count sellCOUNT_SELL9999Number of sell orders after which a trading pair is disabled.

Indicators

LabelConfig ParameterDefault ValueDetailed Description
PeriodPERIOD15Candlestick duration in minutes used for indicator calculations. Choose a value supported by your exchange.

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