Seykota Alt 42: Momentum-Gated Time adds units as price advances by a fraction of ATR, up to a set maximum. A three-tier time exit uses RSI: fading momentum closes early, a standard bar count closes unless RSI is strong, and a maximum hold forces an exit. An optional moving-average regime filter on another symbol can block trades. Signals, stops, and Donchian bands draw on the price chart.
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
Add every X * N
float
0.5
addStepN
Max units (incl. initial)
int
4
maxUnits
Risk % of equity PER UNIT
float
1.0
riskPct
Standard time exit (bars)
int
40
standardExitBars
Maximum hold time (bars)
int
60
maxExitBars
RSI length for momentum
int
14
rsiLen
RSI fade threshold (early exit)
float
50.0
rsiMomentumFade
Show all 23 settings
Setting
Type
Default
Variable
RSI strong threshold (extend hold)
float
65.0
rsiStrongMomentum
Use market regime filter?
bool
false
useMarket
Market symbol for regime
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("2010-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 overlays a trend moving average and Supertrend bands directly on the price chart while calculating Stochastic RSI values internally. Long positions trigger when price exceeds the moving average, Supertrend signals bullish momentum, and the StochR
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 trading strategy combines three Exponential Moving Averages (8, 14, and 50 periods by default) with Stochastic RSI and Average True Range (ATR). It enters a long position when EMA 1 is above EMA 2, EMA 2 is above EMA 3, and the Stochastic RSI %K line cros
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 exponential moving averages (EMA 9, 21, 50), RSI, MACD, and Supertrend indicators to enter long positions. It triggers trades using six dynamic setups based on momentum breakouts, EMA crossovers, and pullbacks. Position sizing is compute
This strategy identifies trend reversals through market structure changes (CHoCH) filtered by MACD momentum. It initiates long positions on bullish structure breaks when MACD is positive and above its signal line, and short positions on bearish breaks when MAC