This trend-following strategy generates trades using Donchian channel breakouts combined with higher-timeframe trend filters and chart-timeframe momentum.
Seykota Alt 2: Dual-Timeframe confirms breakout entries against a higher-timeframe moving average and rate of change, while optionally filtering by a market regime benchmark. Trades are sized using Average True Range risk parameters with initial stops set at a multiple of N. It allows adding position units as price moves favorably up to a specified maximum. Exits occur when price breaks the opposite Donchian exit channel or hits stop losses. Plotted overlaying price.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Allow LONGs?
bool
true
allowLong
Allow SHORTs?
bool
true
allowShort
Donchian ENTRY (chart TF)
int
55
entryLen
Donchian EXIT (chart TF)
int
10
exitLen
Require HTF confirmation?
bool
true
htfEnabled
Higher timeframe
timeframe
W
htfTimeframe
HTF trend MA length
int
50
htfMaLen
HTF MA type
string
EMA
htfMaType
Chart TF momentum length
int
20
momentumLen
Momentum threshold
float
0
momentumThresh
N = ATR length
int
20
nLen
Initial stop (in N)
float
2.0
stopN
Show all 25 settings
Setting
Type
Default
Variable
Add every X * N
float
0.5
addStepN
Max units
int
4
maxUnits
Risk % per unit
float
1.0
riskPct
Use market regime filter?
bool
false
useMarket
Market symbol
symbol
SPY
marketSym
Regime timeframe
timeframe
D
marketTF
Market MA length
int
200
marketLen
Min 20-bar avg volume
int
0
minVol
Plot signals & stops?
bool
true
showSignals
Plot Donchian bands?
bool
true
plotDon
Backtest FROM
time
timestamp("2022-01-01T00:00:00")
fromDate
Backtest TO
time
timestamp("2099-12-31T23:59:59")
toDate
Force FLAT at range start?
bool
true
flatAtFrom
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This strategy runs on the price chart and enters long when a fast simple moving average crosses above a slow one, and short on the opposite cross, while closing the other side. Entries also need ATR above a filter, a pullback check, a minimum candle-body chang
This strategy trades long breakouts of a fast and a slow moving average on the price chart. It opens a long position when price crosses above either average, using a percentage of equity as size. It reduces the position by a set share when the high reaches the
This strategy combines channel breakout concepts with an ATR-ADX volatility trailing framework and multi-timeframe moving averages. It evaluates trend conditions using configurable moving average types, including SMA, EMA, Hull MA, and Tilson T3, paired with d
This strategy executes trend-following trades based on Bollinger Band breakouts confirmed by a long-term moving average filter. A long position opens when the price crosses above the upper Bollinger Band, provided the band spread meets a minimum threshold and
The Keltner Channel Strategy is a breakout system plotted directly on the main price chart. It calculates upper and lower channel bands around an exponential or simple moving average using ATR, True Range, or bar range multiplied by a specified factor. A long
This strategy combines Bollinger Bands and Bollinger Band Width to trigger breakout trades during periods of low volatility. It opens long positions when price crosses above the upper band while band width is below its 100-period moving average, and opens shor