Skip to Content
LuxAlgoConfluence

Confluence

The Pine script decides buy/sell purely on the Supertrend, then draws its other overlays independently. LuxAlgo keeps the Supertrend crossover as the trigger and adds the overlays as a directional gate — each ported faithfully and individually toggleable (mirroring the script’s own input bools).

Overlay direction rules

Overlayfile.txtDirection ruleDefault
Range Filter202–325fdir == 1 (upward)on
SuperIchi328–380tenkan > kijunon
TBO382–429fastEMA(20) > mediumEMA(40)on
Smart Trail431–501Trend == 1on
HA Market Bias148–200c2 > o2off
MACD color680–738macd > 0 and hist > 0off
PSAR66, 78psar < ocAvgoff

Env toggles: USE_RANGE_FILTER, USE_SUPERICHI, USE_TBO, USE_SMART_TRAIL, USE_HA_BIAS, USE_MACD_COLOR, USE_PSAR.

CONFLUENCE_MODE

ModeBehavior
unanimous (default)Every enabled overlay must confirm the trigger direction
thresholdAt least CONFLUENCE_THRESHOLD enabled overlays confirm (0 = all)
offNo gating — reproduces the raw Pine ▲/▼ decision exactly
Supertrend crossover (trigger) ┌───────────────────────┐ │ enabled overlays gate │ ◀── CONFLUENCE_MODE └───────────────────────┘ vetoes (optional) ──▶ submit or skip

Counter-trend vetoes (off by default)

The exhaustion/reversal markers are ported and can veto an entry. They do not open trades — mt5-trader executes entries with broker-side SL/TP and has no close-position endpoint, so these act as entry filters, not active exits:

VariableEffect
VETO_TP_POINTSA major TP Point (lele, lines 87–146) against the trade blocks it
VETO_REVERSALSAn RSI Reversal (lines 503–517) against the trade blocks it

Strategy and confluence settings (SUPERTREND_*, CONFLUENCE_MODE, overlay toggles, etc.) remain profile-level and are shared across all instruments in a SYMBOLS_FILE manifest.

Last updated on