Hello Forex Station members,
I’m SenFX . Thanks for having me here.
Today I’m sharing a small experimental indicator for MT4:
GeneticRSI_NoRepaint (MT4)
What it is
GeneticRSI_NoRepaint is a non-repainting RSI that uses a simple genetic algorithm to search for a good RSI “shape” on recent history.
The key concept is fixed history: once a bar is closed, the value is locked and will not change later.
How it works (in plain terms)
The indicator maintains multiple RSI candidates (“population”).
On each new bar only, it evaluates them over a defined lookback window and selects the best performer.
It then calculates the RSI value for bar 1 (the most recent closed bar) and writes it permanently into the buffer.
The current forming bar (bar 0) can be optionally shown, but that part can move with ticks.
Non-repaint policy
Confirmed bars (bar 1 and older): fixed / no repaint
Current bar (bar 0): optional display, and this can change intrabar (because price changes)
Display
LineBuffer: confirmed RSI line (fixed history)
DotBuffer: confirmed dots (fixed history, optional)
Main inputs
Population size: how many RSI candidates compete
Evaluation bars: how far back to score performance
Generations: evolution steps per new bar
Mutation rate: how often random mutations occur
Period range / Constant range: the search space for parameters
Show Live Current: show/hide bar 0 value
Backfill Bars: optionally fill some past bars once on startup (fixed values)
Notes / disclaimer
This is an experimental tool intended for research and exploration.
It is not a “holy grail” and it can overfit depending on settings. Please forward-test and use proper risk control.
If you try it, feedback is welcome (settings, symbols, timeframes, performance, etc.).
Thank you.
SenFX
Attachments forums
Genetic RSI (No Repaint) - Self-Evolving RSI with GA
SENFX, Wed Jan 21, 2026 12:33 am