Seykota. It generates long and short entries when price breaks above or below Donchian channels of specified length. Each entry adds a unit sized to risk a fixed percentage of current equity using ATR-based stops. Profits are scaled out in stages at target distances of 1.5N, 3N, 5N, 7N and 10N. A Chandelier exit trail closes remaining positions. Optional market regime filter and volume minimum can be enabled. Plots buy/sell signals, stops and Donchian bands directly on the price chart. Settings control entry lookback, ATR length, stop and target multiples, maximum units, and pyramiding behavior. It draws exclusively on the price chart and supports both long and short sides.
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 lookback
int
55
entryLen
N = ATR length
int
20
nLen
Initial stop (in N)
float
2.0
stopN
Chandelier trail lookback
int
22
trailLen
Chandelier trail (in N)
float
3.0
trailN
Add every X * N
float
0.5
addStepN
Max units (for 6-stage scaling)
int
6
maxUnits
Risk % per unit (smaller for more units)
float
0.75
riskPct
Use multi-stage targets?
bool
true
useTargets
Target 1 (in N) - Close unit 1
float
1.5
target1N
Show all 26 settings
Setting
Type
Default
Variable
Target 2 (in N) - Close unit 2
float
3.0
target2N
Target 3 (in N) - Close unit 3
float
5.0
target3N
Target 4 (in N) - Close unit 4
float
7.0
target4N
Target 5 (in N) - Close unit 5
float
10.0
target5N
Use market regime filter?
bool
false
useMarket
Market symbol for regime (if used)
symbol
SPY
marketSym
Regime timeframe (if used)
timeframe
D
marketTF
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 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
This strategy uses multiple VWAP anchors and a custom Lull indicator to generate buy and sell signals on the Nasdaq price chart. It plots the VWAP trend line and three VWAP anchors with customizable colors and mitigation methods. The Lull indicator produces si
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
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 strategy combines moving averages, ATR volatility bands and ADX trend strength on the price chart. It calculates ADX from price data and adjusts the ATR multiplier dynamically based on whether ADX is rising or falling. Long and short entries are controlle
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