Skip to content
All library documents

Double-EMA Turning Points for Directional Crypto Futures Trades

Article FMZ digest · Author: 发明者量化-小小梦

Summary

This beginner-oriented tutorial describes a directional futures strategy that looks for local turning points in two exponential moving averages. It opens long when both averages turn upward and short when both turn downward, closing an opposing position before reversing. A fixed profit-distance exit is also used. The example includes position lookup, order cancellation, charting, and tracking whether the strategy is idle, long, or short.

The article supplies commented strategy code and a sample backtest configuration for an ETH/USDT futures market, but the displayed images do not provide readable performance figures in the text. The author says results depend substantially on parameter choices and frames the material as a programming tutorial rather than a live-trading recommendation. The described exit logic includes a profit target but no explicit stop-loss rule, and the tutorial provides no evidence that the signal remains profitable after costs or across other markets and periods.

Key ideas

  • A long signal occurs when both EMAs form upward turning points, while matching downward turns trigger a short signal.
  • The strategy closes an opposing position before opening in the new direction.
  • Positions are also closed after price moves favorably by a fixed target distance.
  • The example demonstrates order handling and state tracking alongside indicator logic.
  • Its tutorial and sample backtest do not establish robust profitability or define an explicit stop loss.

Tags

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