Skip to content
All library documents

Summed Price Deviations from an SMA for Short-Term Directional Signals

Article Strategy library · Author: ChaoZhang

Summary

This short-term strategy calculates the difference between closing price and a simple moving average, then sums that deviation over a recent window. A positive sum signals a long position and a negative sum signals a short position; the opposite sign indicates when to leave the position. The document also says to calculate a rate-of-change indicator, but the described signal and source logic do not use that value, making the role of ROC unclear. Published parameters specify a 170-period indicator length and an 18-period summation window.

The text presents no measured returns or comparative evidence. Its backtest settings cover BTC/USDT futures from October to November 2023, but give no outcome statistics. The source uses full equity sizing and exposes take-profit and stop-loss inputs that default to zero, while the active entry logic reverses or cancels orders based on the sum's sign. The write-up warns that frequent trading, parameter choices, reversal risk, slippage, and transaction costs may affect results, and suggests adding risk controls and testing parameter choices.

Key ideas

  • The signal sums the difference between closing price and a simple moving average over a lookback window.
  • A positive cumulative deviation signals long exposure, and a negative value signals short exposure.
  • The description mentions ROC, but the stated formula and source do not use it in the decision rule.
  • Take-profit and stop-loss inputs default to zero, and the active logic can reverse direction as the signal changes sign.
  • The document gives backtest settings but no performance results and notes costs and reversal risk.

Tags

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