Momentum Moving Average Breakout Strategy
This strategy combines momentum indicators with moving average breakouts, entering trades when momentum aligns in a direction and price breaks the MA. The trading logic is: 1. Compute short-term momentum, such as…
Strategy Logic
This strategy combines momentum indicators with moving average breakouts, entering trades when momentum aligns in a direction and price breaks the MA.
The trading logic is:
Compute short-term momentum, such as 5-day momentum
A long signal triggers when current and prior 2 momentum bars are above 50
Go long when price breaks above 5-day MA
A short signal triggers when current and prior 2 momentum bars are below 50
Go short when price breaks below 5-day MA
Use fixed profit target and trailing stop loss
The strategy capitalizes on momentum strength for trend identification, combining it with MA breakouts for high-probability signals to capture short-term price swings.
Advantages
Momentum directionality strongly defines trend
MA breakout improves signal quality
Profit target and stop loss combined
Risks
Consecutive momentum can lag
Requires iterative parameter optimization
Profit targets and stops need prudence
Summary
This strategy synergizes momentum and MA breakout systems with prudent profit taking and risk controls. But parameter tuning and stop loss optimization are crucial for real-world effectiveness.
Source Pine Script
/*backtest
start: 2023-09-06 00:00:00
end: 2023-09-13 00:00:00
period: 30m
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=4
// strategy("BTC MOM EMA V1", overlay=true)
longCondition = ta.mom(close,5) > 50 and ta.mom(close[1],5) > 50 and ta.mom(close[2],5) > 50 and close > ta.ema(close,5)
if (longCondition)
strategy.entry("My Long Entry Id", strategy.long)
strategy.exit("My Long Entry Id", profit=1000,trail_points=60)
shortCondition = ta.mom(close,5) < 50 and ta.mom(close[1],5) < 50 and ta.mom(close[2],5) < 50 and close < ta.ema(close,5)
if (shortCondition)
strategy.entry("My Short Entry Id", strategy.short)
strategy.exit("My Short Entry Id", profit=1000,trail_points=60)Published by ChaoZhang on the FMZ strategy square · last modified 2023-09-14. Collected in the Quant Trading Vault. Unvalidated research: re-test with your own data and costs before trusting it.
Build this with AgenKit
A spec is not a trading system. Paste this into your coding agent and AgenKit runs a specialist team — architecture, test-first build, risk gates, review — with paper trading on by default.
/agenkit build a production-grade trading bot with a backtest engine, risk controls and paper trading by default from strategies/Momentum-Moving-Average-Breakout-Strategy.md- npx agenkit install engineering-kit in your project
- Paste the command into your agent and approve each phase
- Get tests, backtest, risk controls and a paper-trading switch
Understand it first
Before you run this, read the lesson behind the idea and how to backtest it honestly. Specs like this one are the survivors of an unknown number of trials; deflate their results accordingly.
Related specs
- Adaptive Multi Period Trading Strategy Based on Wave Trend Momentum BreakoutPine Script · Breakout · 2h
- BB Breakout StrategyPine Script · Breakout · 1d
- BMSB Breakout Strategy BMSBPine Script · Breakout · 1h
- Bollinger Band T3 Moving Average StrategyPine Script · Breakout · 10m
- Bollinger Bands Dual track Breakthrough StrategyPine Script · Breakout · 30m
- Bollinger Breakout StrategyPine Script · Breakout · 30m