XCODE - crossover signals and trend filter (MT4)
XCODE combines a trend filter with crossover style signals. It colors the bias, paints arrows or histogram flips, and can alert on entries and exits so you catch continuations and early reversals on MetaTrader 4.
What it shows
- Bias: green or positive - bullish, red or negative - bearish.
- Signal arrows: appear when the fast part crosses the slow or when color flips.
- Zero or midline logic: staying on the confirming side helps avoid chop.
- Divergence: price prints HH or LL while XCODE stalls - possible reversal.
Trade ideas
- Trend pullback: trade with the trend when XCODE retests midline and the arrow appears with confirming bias.
- Breakout validation: only take breakouts if XCODE stays aligned and strengthens after the break.
- Reversal with divergence: add zero or signal cross as the trigger.
- Multi TF: higher TF for context, lower TF triggers when price and XCODE flip together.
Inputs that matter
- Fast and slow lengths.
- Smoothing method and applied price.
- Levels or zero line for filters.
- Alerts for arrows, flips and crosses.
Suggested usage
- M5-M15: intraday timing and tight risk.
- M30-H4: swing continuation and breakout checks.
- Daily+: regime bias and trailing.
Installation (MT4)
- Open MetaTrader 4 - File - Open Data Folder.
- Copy
XCODE.ex4
to MQL4/Indicators. - Restart MT4 or refresh Navigator and attach XCODE.
- Adjust inputs - OK.
FAQ
Does it repaint? No on closed bars.
Arrows vs flips? Arrows mark entries while flips maintain the regime. Use both for confirmation.
Use in EAs? Yes, via iCustom
.
Disclaimer: Always test on a demo first - risk management matters.