Skip to content
All library documents

EMA Alignment Entries and Repeated Orders in a Pine Strategy

Article FMZ forum · Author: CryptoLiu

Summary

This post presents a Pine strategy example built around three exponential moving averages. It defines a bullish condition when the shortest average is above the middle average and the middle is above the longest, and a bearish condition when that ordering is reversed. The strategy submits a long or short entry when the corresponding condition is true and plots all three averages. The author’s question is why the backtest appears to place an initial order but then does not continue trading.

The example is useful for understanding a basic trend-alignment signal and how entry conditions are expressed in a charting strategy. However, it does not include a response explaining the repeated-order behavior or provide a completed fix. It also lacks explicit exit rules, position-sizing logic, and a performance evaluation. As shown, the conditions describe persistent alignment rather than a crossover event, so actual order behavior depends on the platform’s strategy rules and position state. The post is therefore a limited implementation example, not evidence that the signal is profitable.

Key ideas

  • The example uses three exponential moving averages to define bullish and bearish alignment.
  • Long entries are triggered by ascending average order, while short entries use the reverse order.
  • The author reports that only an initial order appears during backtesting and asks how to continue trading.
  • The post does not resolve the issue or provide exits, sizing rules, or performance evidence.

Tags

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