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 v5 Ultimate Prop Bot (MES 5m) overlays buy and sell signals directly on the price chart. The strategy runs two phases based on equity and recent profit factor. Phase 1 uses trend pullback entries with EMA and RSI filters plus MTF confirmation. Phase 2 activates after reaching the lock target and switches to aggressive regime detection. Position sizing scales from 2 contracts in phase 1 to 5 in phase 2 with cooldown logic after loss days. Entries follow session windows and range expansion filters while exits include trailing stops at 1R and break-even protection. The main settings control phase targets, trade limits, daily loss caps, and MTF timeframes.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Lock Target / Phase 2 ($)
float
3100
phase2ProfitUsd
Phase Sizing
bool
true
usePhaseSizing
Qty Phase 1 (Lock)
int
2
qtyPhase1
Qty Phase 2 (Payout)
int
5
qtyPhase2
Qty Cooldown (day after halt)
int
1
qtyCooldown
Phase 2 Min Recent PF
float
1.2
phase2ReqPF
Phase 2 PF Lookback Trades
int
10
phase2Lookback
Session Filter
bool
true
useSession
RTH Window
session
0830-1515
sessWindow
Flatten at Session End
bool
true
flattenEnd
Warmup (skip after open)
int
15
warmupMins
Use Power Windows
bool
true
useWindows
Show all 40 settings
Setting
Type
Default
Variable
Window 1 (Morning)
session
0845-1100
win1
Window 2 (Afternoon)
session
1330-1510
win2
Reversion Blackout (mins from open)
int
30
revBlackoutMins
Phase 1 Mode
string
Trend Pullback
phase1Mode
Phase 2 Mode
string
Auto (Regime)
phase2Mode
Phase 1 MTF
string
15m + 60m
mtfModeP1
Phase 2 MTF
string
15m Only
mtfModeP2
Direction
string
Both
tradeDir
Max Trades/Day (P1)
int
2
maxTradesP1
Max Trades/Day (P2)
int
4
maxTradesP2
Max Daily Loss $ (P1)
float
600
maxDailyLossP1
Max Daily Loss $ (P2)
float
1200
maxDailyLossP2
Max Weekly Loss $
float
1500
maxWeeklyLoss
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
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
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.
Mean Reversion Strategy is an overlay strategy that identifies pullbacks using a long-term EMA, RSI, and candlestick patterns. It generates long signals when a bullish engulfing candle forms below the EMA while RSI is oversold, and short signals when a bearish
This strategy combines a 7-period RSI with an ADX filter to trade market regimes on the price chart. When the ADX indicates ranging conditions below a set threshold, it triggers entries on RSI overbought or oversold extremes. By default, the entry logic is inv
This strategy enters long or short on the price chart when price is on the correct side of a 200-period EMA, MACD agrees, RSI is not at the opposing extreme, ADX exceeds a threshold, volume beats a 20-bar average, and close breaks the recent high or low. A tim
This strategy overlays the price chart to trade DAX futures during European market hours. It calculates exponential and simple moving averages, RSI, MACD, Bollinger Bands, ATR, and realized volatility to simulate VIX levels. Trades execute when session time fi
This strategy combines a Simple Moving Average (SMA) and the Relative Strength Index (RSI) to generate long trading signals. It enters a long position when price closes above the SMA filter while RSI drops below the oversold threshold. The strategy exits the p
This strategy combines higher-timeframe market bias filtering with an oscillator and ADX trend detection to generate trading signals. It calculates market bias using Heikin-Ashi values across custom timeframes and filters entries using dynamic or static ADX th