Skip to content
All library documents

Price-Differential Reversals with Weighted-Average Confirmation

Article Strategy library · Author: ChaoZhang

Summary

This reversal strategy calculates daily close-to-close price changes and sums them over a rolling 30-day period. It also tracks 15-day and 30-day weighted moving averages of that sum. The written description says a long signal occurs when the sum crosses from negative to positive and its shorter weighted average confirms the change; a short signal uses the reverse conditions. Trades are assigned take-profit and stop-loss levels.

The source code does not fully match that description: its bullish and bearish conditions compare the sum with the shorter weighted average and impose an absolute-value threshold, while the displayed implementation enters long and closes on a bearish condition. It does not show a corresponding short entry. Published test settings cover a brief BTC/USDT futures interval, but no performance results are reported. The document warns that failed reversals, frequent trades, and transaction costs can undermine the approach, and suggests volume, trend, or trailing-stop filters.

Key ideas

  • The strategy sums recent close-to-close changes and monitors weighted averages of that sum.
  • The written rules use sign reversals in the sum and shorter-average confirmation to signal long or short trades.
  • The provided code uses additional comparison and magnitude conditions, and its execution logic is not fully consistent with the prose.
  • Take-profit and stop-loss levels are included, but the document reports no backtest performance results.
  • Range-bound markets, parameter choices, and trading costs are identified as risks.

Tags

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