Fast and Slow EMA Cross Intraday Trading Strategy
This intraday strategy trades the crossover of a fast and slow EMA for high-frequency trading. It uses EMA crosses to judge short-term trends and capture market oscillation. Strategy Logic: 1. Set a fast and slow EMA…
This intraday strategy trades the crossover of a fast and slow EMA for high-frequency trading. It uses EMA crosses to judge short-term trends and capture market oscillation.
Strategy Logic:
Set a fast and slow EMA period, typically 110 and 40.
Go long when fast EMA crosses above slow EMA.
Go short when fast EMA crosses below slow EMA.
Set fixed point stop loss for risk control.
Use for high-frequency periods (1-min) to trade intraday.
Advantages:
Fast/slow EMA cross accurately judges short-term trends.
Breakout trading timely captures short spikes.
Fixed stop loss manages trade risk.
Risks:
High-frequency trading requires sufficient capacity to absorb trading costs.
Stop loss too tight causes excessive stops.
EMA crossover lags may delay signals.
In summary, this strategy trades fast/slow EMA crosses for short-term intraday oscillation. The high frequency requires trading cost control and reasonable stop loss calibration for steady returns.
Parameters
| Name | Default | What it controls |
|---|---|---|
| v_input_1 | 110 | fastLength |
| v_input_2 | 40 | slowLength |
Source Pine Script
/*backtest
start: 2023-08-12 00:00:00
end: 2023-09-11 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=2
strategy("Eli Strategy", overlay=true)
fastLength = input(110)
slowLength = input(40)
price = close
emafast = ema(price, fastLength)
emaslow = ema(price, slowLength)
if (crossover(emafast, emaslow))
strategy.entry("EMA2CrossLE", strategy.long, comment="long")
strategy.exit("Exit Long", from_entry = "EMA2CrossLE", loss = 500, comment= "Rshort")
if (crossunder(emafast, emaslow))
strategy.entry("EMA2CrossSE", strategy.short, comment="short")
strategy.exit("Exit short", from_entry = "EMA2CrossSE", loss = 500, comment= "RLong")
//plot(strategy.equity, title="equity", color=red, linewidth=2, style=areabr)Published by ChaoZhang on the FMZ strategy square · last modified 2023-09-12. 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/Fast-and-Slow-EMA-Cross-Intraday-Trading-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