This commit is contained in:
wvr committed 2026-11-22 02:05:29 -06:00
1 parent 6fba737dfb
commit bb84929e73
5 files changed
+57 -6

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
flex:
https://support.lucidtrading.com/en/articles/12945795-lucidflex-funded-account
https://support.lucidtrading.com/en/articles/12945796-lucidflex-payouts
https://support.lucidtrading.com/en/articles/12945808-lucidflex-scaling-plan
daily:
https://support.lucidtrading.com/en/articles/15996664-luciddaily-evaluation
https://support.lucidtrading.com/en/articles/15997244-luciddaily-funded-account
https://support.lucidtrading.com/en/articles/15997266-luciddaily-payouts
https://support.lucidtrading.com/en/articles/15998336-luciddaily-consistency
https://support.lucidtrading.com/en/articles/15998425-luciddaily-drawdown
https://support.lucidtrading.com/en/articles/16085900-luciddaily-daily-loss-limit
+18 -6
View File
@@ -1,5 +1,5 @@
//@version=6
// Bracket Morning Panel: all direction rules plus ATR sizing in one indicator (evaluations: 3 NQ / 3 gold / 2 crude / 1 NG / 1 euro).
// Bracket Morning Panel: all direction rules plus ATR sizing in one indicator (evaluations: 4 NQ / 3 gold / 2 crude / 1 NG; euro FX (6E) is a potential add, not on this panel).
// Gold (entry 8:21): silver % move minus gold % move from the 6:00 pm reopen to 8:19.
// Gap above the threshold -> LONG, otherwise SHORT.
// Crude (entry 9:01): yesterday's 2:30 pm settlement vs yesterday's 9:00 candle close.
@@ -20,7 +20,9 @@
// 2. Drive (9:33): the move from the 9:29 close to the 9:32 close is >= 5% of daily ATR(14) and price has
// given back <= 25% of the move from the 9:30-9:32 extreme -> follow the move.
// 3. Three candles (9:33): the 9:30, 9:31 and 9:32 candles all close the same way -> follow them.
// 4. Otherwise (9:33): the old rule. 9:30 close vs yesterday's 4:00 pm close: above -> SHORT, below -> LONG.
// 4. Otherwise (9:33): the old rule. 9:30 close vs the prior cash close: above -> SHORT, below -> LONG.
// Prior cash close = the last regular session's close: the 3:59 candle, or the 1:14 pm candle after an
// early-close day (e.g. the day after Thanksgiving). Holiday sessions that halt at 1:00 pm don't count.
// Sizing: contracts = round(stop $ / ($ per point x 0.20 x daily ATR(14))), min 1, max 4;
// stop pts = (stop $ - $20 x contracts) / (contracts x $ per point); target pts = (target $ + commission x contracts) / (contracts x $ per point).
// Small contracts when the stop $ is under 75% of one full contract's risk at the ATR stop distance:
@@ -145,12 +147,20 @@ openWindow(int o) =>
[done1, done3, disp, three, pre, c1, c3, hiX, loX]
nqSignal() =>
var float c16 = na // yesterday's 4:00 pm close (3:59 candle)
var float c16 = na // prior cash close (3:59 candle, or the last candle of an early-close day)
var float lastRth = na // close of the latest 9:30-3:59 candle this trading day
var int lastRthM = na // its start minute (ET)
var float ref = na // c16 as used today
var int cur = 0 // old rule's side
var float ratio = na // 8:30 candle volume / average 8:15-8:29 volume
var bool newsDone = false
if timeframe.change("D")
// finalize the previous day's cash close at the 6 pm reopen: full day (last candle 3:59) or early close (last candle 1:00-1:14 pm);
// a holiday session that halts at 1:00 pm (last candle 12:59) is not a cash session, so the older close is kept
if not na(lastRthM) and (lastRthM == 959 or (lastRthM >= 780 and lastRthM <= 794))
c16 := lastRth
lastRth := na
lastRthM := na
ref := na
cur := 0
ratio := na
@@ -168,8 +178,10 @@ nqSignal() =>
if mins(time_close) == 572 and not na(c16) // 9:31 candle forming: [1] is the final 9:30 candle
ref := c16
cur := close[1] > c16 ? -1 : 1
if endsAt(16, 1) // 4:00 candle: close[1] is the final 3:59 close (today's 4:00 pm close, used tomorrow)
c16 := close[1]
m0 = mins(time)
if m0 >= 570 and m0 <= 959 // regular-session candle: remember it (its final close is committed when the candle closes)
lastRth := close
lastRthM := m0
[newsDone, ratio, a1, a3, aDisp, aThree, aPre, aC3, aHi, aLo, b1, b3, bDisp, bThree, bPre, bC1, bC3, bHi, bLo, cur, ref]
clSignal() =>
@@ -271,7 +283,7 @@ hBranch = not nqDone1 ? "waiting for the 9:30 candle" : nqDisp != 0 ? "1. displa
not nqDone3 ? "no 9:30 displacement; waiting for the 9:32 candle" :
nqDrive != 0 ? "2. drive " + num(nqMv) + " pts from 9:29 (min " + num(0.05 * nqAtr) + "), gave back " + num(nqPull) + " -> follow" :
nqThree != 0 ? "3. three candles same way -> follow" :
"4. old rule: 9:30 close " + num(nqPx) + " vs prior 4:00 close " + num(nqRef)
"4. old rule: 9:30 close " + num(nqPx) + " vs prior cash close " + num(nqRef)
hEntry = nqDisp != 0 ? "9:31" : nqDone1 ? "9:33" : "9:31 / 9:33"
// news day (8:30 window)
+26
View File
@@ -0,0 +1,26 @@
# Math Concepts
## Bellman equation
??
## gamblers ruin
The fair game: gambler's ruin. If price moves like a fair random walk,
the chance of reaching a target before a floor is exactly
P(target first) = room ÷ (room + distance to target)
That's the 2,000 ÷ 5,000 = 40% for a day-1 evaluation, and it's why splitting
bets doesn't help.
## brownian motion w/ drift
With a small edge or cost per unit of movement (μ) and volatility σ, the probability becomes
P = (1 − e^(−2μ·room/σ²)) ÷ (1 − e^(−2μ·(room + target)/σ²)).
This is how costs and direction edges change the odds, and it shows when
bold play stops being optimal (only once μ turns clearly positive).