Strategy · Pine Script v6 · On the chart

Lucid 100K Prop Bot (MES 5m)

by DexWilder

This strategy executes trades on 5-minute index futures using Exponential Moving Averages, RSI, ADX, and volume filters across multiple timeframes.

View on GitHub

GitHub stars4on the repository
Pine versionv6current
Lines of code438
Settings38inputs
LicenceNone stated
Last updateyesterday27 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

DexWilder on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Trend, Mean reversion, Sessions & time, Moving averages

Markets

Indices

Timeframes

M15-H1

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Algo ModestringAuto (Regime)mode
MTF Filtersstring15m + 60mmtfMode
DirectionstringBothtradeDir
Session FilterbooltrueuseSession
RTH Windowsession0830-1515sessWindow
Flatten at Session EndbooltrueflattenEnd
Warmup Minutes (skip after open)int15warmupMins
Reversion Blackout (mins from open/close)int30revBlackout
Phase SizingbooltrueusePhaseSizing
Qty Phase 1int2qtyPhase1
Qty Phase 2int5qtyPhase2
Qty Cooldown (day after halt)int1qtyCooldown
Show all 38 settings
SettingTypeDefaultVariable
Phase 2 Profit Threshold ($)float3100phase2ProfitUsd
Phase 2 Min Profit Factor (recent)float1.2phase2ReqPF
Phase 2 PF Lookback Tradesint10phase2LookbackN
Max Trades/Dayint3maxTradesPerDay
Max Daily Loss ($)float600maxDailyLossUsd
Max Weekly Loss ($)float1500maxWeeklyLossUsd
Max Consecutive Lossesint2maxConsecLosses
Fast EMAint9fastLen
Slow EMAint21slowLen
Trend EMAint200trendLen
RSIint14rsiLen
ATRint14atrLen
Use ADXbooltrueuseAdx
ADX Lenint14adxLen
ADX Min (Trend)float16.0adxMin
Use VolumebooltrueuseVol
Vol MAint20volLen
Vol Multfloat1.0volMult
Reversion Dist (ATR)float1.4revDistATR
Reversion RSI Lowint35revRsiLow
Reversion RSI Highint65revRsiHigh
Stop ATR Multfloat1.5slATR
Target ATR Multfloat2.5tpATR
Break-Even after 1RbooltrueuseBE
Lucid MLL ($)float4000lucidMLL
Lucid Lock Profit ($)float3100lucidLockProf
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.

Similar Pine Scripts

8 Whittle Down

by hasnocool
106 stars

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

Strategy v4 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 8 Whittle Down

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

Strategy v5 Mean reversionVolatility & bands
Updated 2 months ago · None stated GitHub repository of Bollinger Bands Winner PRO [Alorse]
257 stars

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

Strategy v5 TrendMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of Donald - Test Logic Futures

Bollinger Bands Strategy

by cklose2000
105 stars

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

Strategy v5 Volatility & bandsMoving averages
Updated 1 year ago · None stated GitHub repository of Bollinger Bands Strategy
53 stars

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

Strategy v6 TrendMoving averages
Updated 2 months ago · MPL-2.0 GitHub repository of Ivan Scherman Pattern - TP/SL

More strategys

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers