Skip to content
All library documents

Pair Trading Concepts and a Single-Asset SMA Deviation Strategy

Article Strategy library · Author: ChaoZhang

Summary

The document introduces pair trading as a long-short approach that seeks to profit when two related assets’ prices move back toward their usual relationship. It discusses selecting correlated assets, using moving averages or other indicators to identify relative price deviations, and managing the risks that the relationship may weaken or fail to converge.

There is a notable mismatch between that explanation and the included Pine strategy. The code applies an SMA and standard-deviation bands to one asset’s closing price, entering long or short when price crosses the outer bands and closing on a cross of the average. It does not calculate a spread between two assets. The document reports no backtest results; its published settings specify a BTC futures market and a test period, but provide no performance evidence. The stated risks—divergence, changing correlation, and the need for risk controls—apply to pair strategies generally, while the supplied code’s behavior should be evaluated as a single-asset band strategy.

Key ideas

  • Pair trading holds opposing positions in two assets to seek gains from convergence in their relative prices.
  • The document names moving averages, Bollinger bands, and relative strength as possible signal approaches.
  • The included code trades one price series using an SMA and standard-deviation bands, rather than a two-asset spread.
  • The code enters on outer-band crossings and closes when price crosses the moving average.
  • Pair relationships can break down, and the document provides no reported evidence of profitability.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.