Seykota Alt 4: Weekly Donchian allows long and short entries when price breaks the prior weekly channel and exits against the shorter weekly channel. Position size risks a set percent of equity per unit, with an ATR-based initial stop and optional adds at ATR intervals up to a unit cap. Optional filters include a higher-timeframe moving-average regime, minimum volume, and a backtest date window. It plots signals, stops, and weekly bands on the price chart. The script enables pyramiding.
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
Weekly ENTRY lookback (weeks)
int
26
wEntryLen
Weekly EXIT lookback (weeks)
int
13
wExitLen
N = ATR length (chart TF)
int
20
nLen
Initial stop (in N)
float
2.0
stopN
Add every X * N
float
0.5
addStepN
Max units (incl. initial)
int
4
maxUnits
Risk % of equity PER UNIT
float
1.0
riskPct
Use market regime filter?
bool
false
useMarket
Market symbol for regime (if used)
symbol
SPY
marketSym
Regime timeframe (if used)
timeframe
D
marketTF
Show all 19 settings
Setting
Type
Default
Variable
Market MA length (if used)
int
200
marketLen
Min 20-bar avg volume (chart TF)
int
0
minVol
Plot signals & stops?
bool
true
showSignals
Plot weekly Donchian bands?
bool
true
plotDon
Backtest FROM (yyyy-mm-dd)
time
timestamp("2022-01-01T00:00:00")
fromDate
Backtest TO (yyyy-mm-dd)
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 plots VWMA-based Bollinger bands on the 1-minute ES futures price chart for volatility analysis and potential breakout identification. It calculates dynamic long and short stop loss and take profit levels using percentage inputs relative to entry
Calculates upper and lower Donchian Channel bands over a customizable lookback length and plots them on the main price chart. At a specified exchange hour, the strategy places a long buy stop order at the upper Donchian Channel level. Unfilled pending orders a
This trend-following strategy executes a classic Donchian channel breakout system designed to cross-validate backtest results against external framework benchmarks. It triggers a long entry when the closing price breaks above the highest high of the prior entr
The Chained Linear Regression Reversal Strategy plots linear regression channels with upper and lower standard deviation bands directly on the price chart across a user-defined time window. When price breaks out of the static channel for a confirmed number of
This overlay strategy plots a two-timeframe Ichimoku setup on the price chart, with Tenkan, Kijun, Chikou, and Kumo from a base higher timeframe and an optional highest-timeframe cloud. It allows two entries in the same direction and uses ATR-based trailing st
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