Skip to content
All library documents

Multi-EMA Trend Warnings and Position Signals

Article Strategy library · Author: ChaoZhang

Summary

This document describes an EMA-based trend indicator that plots several moving averages with different lookback periods. The accompanying code defines a bullish trend around the shortest EMA crossing above the longest and a bearish trend around the reverse crossover. It also includes an example strategy that opens a long position after a bullish signal and closes it after a bearish one, along with calculations intended to summarize time spent in trend states.

The written overview describes a different approach that uses RSI to time entries within an EMA-defined trend, but the supplied implementation contains no RSI calculation or RSI entry filter. The source comments caution against relying on the trend signal alone, and the text notes risks around reversals, parameter choice, repeated trades, and gaps. Published settings identify BTC_USDT futures and a four-hour chart with a fifteen-minute base period, but the document supplies no outcome statistics to establish profitability. The plotted trend structure can serve as context for a separate strategy, while the example orders should not be treated as validated evidence.

Key ideas

  • The indicator uses several EMAs to visualize trend structure across different lookback periods.
  • The supplied code uses a shortest-versus-longest EMA crossover to define bullish and bearish signals.
  • An example strategy opens a long position on a bullish signal and closes it on a bearish signal.
  • The prose discusses RSI timing, but the supplied code does not implement an RSI filter.
  • The source cautions that trend signals alone may be insufficient, and no performance results are provided.

Tags

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