1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.
Source Code
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
Lucid 100K Prop Bot (MES 5m) supports trend pullback and VWAP reversion regimes with entry confirmation on breakout of prior high or low prices. Position management features a break-even stop loss triggered at 1R profit, automatic end-of-session flattening, and session warmup periods. Configurable risk rules enforce daily and weekly loss limits, maximum trades per day, consecutive loss halts, and performance-gated position sizing.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Algo Mode
string
Auto (Regime)
mode
MTF Filters
string
15m + 60m
mtfMode
Direction
string
Both
tradeDir
Session Filter
bool
true
useSession
RTH Window
session
0830-1515
sessWindow
Flatten at Session End
bool
true
flattenEnd
Warmup Minutes (skip after open)
int
15
warmupMins
Reversion Blackout (mins from open/close)
int
30
revBlackout
Phase Sizing
bool
true
usePhaseSizing
Qty Phase 1
int
2
qtyPhase1
Qty Phase 2
int
5
qtyPhase2
Qty Cooldown (day after halt)
int
1
qtyCooldown
Show all 38 settings
Setting
Type
Default
Variable
Phase 2 Profit Threshold ($)
float
3100
phase2ProfitUsd
Phase 2 Min Profit Factor (recent)
float
1.2
phase2ReqPF
Phase 2 PF Lookback Trades
int
10
phase2LookbackN
Max Trades/Day
int
3
maxTradesPerDay
Max Daily Loss ($)
float
600
maxDailyLossUsd
Max Weekly Loss ($)
float
1500
maxWeeklyLossUsd
Max Consecutive Losses
int
2
maxConsecLosses
Fast EMA
int
9
fastLen
Slow EMA
int
21
slowLen
Trend EMA
int
200
trendLen
RSI
int
14
rsiLen
ATR
int
14
atrLen
Use ADX
bool
true
useAdx
ADX Len
int
14
adxLen
ADX Min (Trend)
float
16.0
adxMin
Use Volume
bool
true
useVol
Vol MA
int
20
volLen
Vol Mult
float
1.0
volMult
Reversion Dist (ATR)
float
1.4
revDistATR
Reversion RSI Low
int
35
revRsiLow
Reversion RSI High
int
65
revRsiHigh
Stop ATR Mult
float
1.5
slATR
Target ATR Mult
float
2.5
tpATR
Break-Even after 1R
bool
true
useBE
Lucid MLL ($)
float
4000
lucidMLL
Lucid Lock Profit ($)
float
3100
lucidLockProf
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 executes short positions during the end-of-day session (14:29–15:00) when the price is below the 200-day simple moving average. If price moves higher against the initial short trade, it scales into the position by submitting a second short order
This mean-reversion strategy plots Bollinger Bands and a long-term moving average directly on the price chart. It enters trades when price candles penetrate the outer Bollinger Bands beyond a user-defined body percentage, anticipating a price reversal. Entries
Donald - Test Logic Futures is an overlay strategy designed for intraday futures trading. It combines kernel regression functions with exponential moving averages to evaluate price retracements and entry timing. Trades are filtered by session execution windows
This strategy generates buy and sell signals based on Bollinger Band crossovers combined with a simple moving average trend filter. It enters a long position when price crosses above the lower band while trading above the SMA filter line, and enters a short po
This strategy identifies long entry opportunities based on short-term price pullbacks below a major trend filter. It enters long when three consecutive lower closes occur below the 200-period simple moving average, followed by the current bar closing back abov
This strategy trades Nikkei 225 futures during a configurable overnight session, defaulting to 19:00–03:00 ET. It builds long and short trend conditions from an 8/21 EMA pair and a 200-period SMA, with RSI, momentum, an ATR-scaled breakout range, and a volume