Skip to content
All library documents

Two-Moving-Average Breakout Strategy with a Risk-Based Exit

Article SuperMind

Summary

This Chinese-language trading script describes a long-only breakout setup using an 8-period and a 40-period moving average. It waits for a sequence of candle conditions: an earlier close near the low, a subsequent close near the high, and the prior close above both averages. A new entry follows when price exceeds the recent two-bar high, provided there is trading volume and no position is open. Position size is calculated from a fixed currency amount and the current price, rounded to board-lot increments.

The exit is a profit target set at twice the distance between the entry price and a recent-low-based risk level. The document provides indicator logic but no backtest, market, timeframe, transaction-cost assumptions, or performance evidence. The script does not clearly explain stop-loss handling, parameter selection, or how its platform-specific position and price variables behave, so its practical risk and results cannot be assessed from the description alone.

Key ideas

  • The strategy uses short- and long-period moving averages as a directional filter.
  • It requires a two-candle sequence before entering on a break above a recent high.
  • Position size is based on a fixed currency allocation and rounded to lot increments.
  • The profit target is defined relative to a recent-low-based risk distance.
  • The document provides no performance evidence or testing assumptions.

Tags

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