ninjatrader/strategies/engulfing/README.md

30 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

# Engulfing
A simple swing trading strategy based on the engulfing candle pattern.
It was inspired by the following video:
[![Inspiration](https://static.moshington.com/images/strategies/engulfing/inspiration.png)](https://www.youtube.com/watch?v=J6VRMhDnVrM)
Very similar also to the [Bearish Engulfing strategy](https://moshferatu.dev/moshferatu/ninjatrader/src/branch/main/strategies/bearish-engulfing).
## Rules
1. Define an engulfing candle as one where the high is higher than the previous candle's high and the close is lower than the previous candle's low.
2. If the asset (e.g., SPY) is above its 200-day moving average, enter a long trade.
3. If below the 200-day moving average, enter a short trade.
4. Exit the trade following any close in profit or when the close is higher than the previous high (for longs) or lower than the previous low (for shorts).
## Parameters
**Long-Term Trend Period**: The period of the long-term trend as measured using a simple moving average. (Default: 200)
## Backtest Results
### SPY
![SPY Analysis](https://static.moshington.com/images/strategies/engulfing/spy-analysis.png)
![SPY Summary](https://static.moshington.com/images/strategies/engulfing/spy-summary.png)
---