Skip to content
All library documents

EMA Crossover Trading with an SMA Trend Filter and Session Controls

Article Strategy library · Author: Khanhtq26

Summary

This script describes a moving-average crossover strategy intended for a Vietnamese index futures contract. It generates a long signal when a fast EMA crosses above a slower EMA and a short signal when it crosses below. An optional SMA direction filter permits longs when the SMA is rising and shorts when it is falling. The visible inputs also include trade direction, point-based stop-loss and take-profit settings, and a configurable trading session.

The available document is truncated partway through the signal and execution logic, so it does not show how all filters, orders, exits, or time controls are implemented. It states that signals are confirmed at the signal bar’s close and orders are intended for the next bar’s open. No backtest settings, performance evidence, or caveat discussion are supplied. EMA crossovers can lag turning points, and the SMA filter and session restriction may alter both trade frequency and behavior; those effects are not evaluated here.

Key ideas

  • A fast and slow EMA crossover supplies the strategy’s initial long and short signals.
  • An optional rising or falling SMA filter gates signals by trend direction.
  • The script exposes configurable trade direction, stop-loss, take-profit, and session inputs.
  • Signals are described as confirmed at candle close for entry on the following candle’s open.
  • The source is truncated, and it provides no evidence about performance or the implementation of all controls.

Tags

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