Strategy · Pine Script v6 · On the chart

Lucid 100K — Prop Bot Optimizer Harness (MES 5m)

by DexWilder

This strategy overlays trade setups directly on the price chart using fast, slow, and trend EMAs alongside RSI, ATR, ADX, and volume moving averages.

View on GitHub

GitHub stars4on the repository
Pine versionv6current
Lines of code229
Settings31inputs
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 Optimizer Harness (MES 5m) generates long and short signals through trend-pullback or mean-reversion logic, filtered across multiple timeframes and trading sessions. Risk controls include ATR-based stop losses, profit targets, optional trailing stops, and mandatory end-of-session flattening. Position sizing expands across profit milestones, while daily loss limits and consecutive loss thresholds restrict execution. Trading halts once daily limits are breached.

Details

Published by

DexWilder on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Trend, Mean reversion, Sessions & time, Scalping

Markets

Indices

Timeframes

M1-M5

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 Window (Exchange TZ)session0830-1515sessWindow
Flatten EndbooltrueflattenEnd
Phase SizingbooltrueusePhaseSizing
Qty Phase 1int2qtyPhase1
Qty Phase 2int5qtyPhase2
Switch to Phase 2 after Profit ($)float3100phase2ProfitUsd
Max Trades/Dayint3maxTradesPerDay
Max Daily Loss ($)float600maxDailyLossUsd
Show all 31 settings
SettingTypeDefaultVariable
Max Consecutive Lossesint2maxConsecLosses
Fast EMAint9fastLen
Slow EMAint21slowLen
Trend EMAint200trendLen
RSIint14rsiLen
ATRint14atrLen
Use ADXbooltrueuseAdx
ADX Lenint14adxLen
ADX Minfloat16.0adxMin
Use VolumebooltrueuseVol
Vol MAint20volLen
Vol Multfloat1.0volMult
Reversion Dist (ATR)float1.4revDistATR
Reversion RSI Lowint35revRsiLow
Reversion RSI Highint65revRsiHigh
Stop ATRfloat1.5slATR
Target ATRfloat2.2tpATR
Use TrailbooltrueuseTrail
Trail ATRfloat1.0trailATR
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

Andean Scalping

by hasnocool
106 stars

Andean Scalping is a Pine Script v5 strategy template designed for backtesting trading signals. It features session and date-range filtering, directional trade toggles for long and short entries, and optional trend filtering tools including higher-timeframe EM

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Andean Scalping

ATOM 1m scalp HK

by dearvn
43 stars

This overlay strategy targets one-minute ATOM scalps. It tracks pivot highs and lows as resistance and support, compares a three-period EMA with a multi-stage smoothed close, and flags long or short when price crosses that curve in the matching direction. Dail

Strategy v5 ScalpingSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of ATOM 1m scalp HK

1-Min Gold Taylor Technique

by eddiebelaval
7 stars

This intraday strategy implements session-based trading rules tailored for gold on short timeframes. It tracks the Asian session price range, VWAP, 20-period EMA, and previous day high and low levels to identify liquidity sweeps during London and New York trad

Strategy v6 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of 1-Min Gold Taylor Technique
2 stars

This strategy identifies price consolidation ranges during Asia session hours and trades mean-reversion reclaims following liquidity sweeps. It marks an initial range box, measures sweep depths past box boundaries using ATR multiples, and enters trades when pr

Strategy v6 Sessions & timeDivergence
Updated 4 weeks ago · Custom licence GitHub repository of MP Asia Range Sweep & Reclaim

QQQ 5min Pure Runner

by yalili8521
2 stars

This strategy identifies trend continuation and accumulation setups on 5-minute charts. It enters long or short positions based on an aligned moving average stack, rising or falling price grinds within a lookback period, and a maximum bar size threshold to avo

Strategy v6 TrendMoving averages
Updated 7 days ago · None stated GitHub repository of QQQ 5min Pure Runner
1 stars

This strategy enters long positions every Monday at 00:00 UTC on the 15-minute chart. It computes quantity as 10 percent of current equity divided by the bar close, rounded to three decimal places for stability. Market orders open the position and it flattens

Strategy v6 TrendMean reversion
Updated 5 days ago · Apache-2.0 GitHub repository of Parity probe 05 - small equity fraction

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