Skip to content
All library documents

Prior-Open Directional Entries with a Trailing Stop

Article Strategy library · Author: SeaSide420

Summary

This short script enters long when the current candle opens above the previous candle’s open, and enters short when it opens below. It applies a trailing exit with an adjustable distance and specifies percent-of-equity sizing and a commission assumption in the strategy settings. The accompanying description says it was presented on a daily BTC-USDT chart and claims an unusually large profit, but provides no complete performance report or analysis to support that claim.

The comments make this most useful as an example of why simple backtests need careful scrutiny. A commenter reports that the trailing stop behaved incorrectly, and the author later acknowledges that the exit implementation failed and would need to be rewritten. The stated profit should therefore not be treated as evidence of a viable strategy. The rules also give no market rationale, broader validation, or discussion of robustness across assets and timeframes; costs and order behavior can materially affect a high-turnover rule of this kind.

Key ideas

  • The entry rule compares consecutive candle opening prices to choose long or short direction.
  • The script attempts to close positions with an adjustable trailing stop.
  • Its settings specify equity-based sizing and a commission assumption.
  • The published profit claim is unsupported by a full performance analysis.
  • Comments report problems with the trailing exit, which the author acknowledges needs correction.

Tags

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