Rejoignez notre page de fans
- Vues:
- 11
- Publié:
-
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance
Invictus Trading - Adaptive Kalman Trend
Overview
A trend-following indicator based on Kalman filtering theory, which recursively estimates the position and velocity of price, with process noise that adapts to current market volatility.
Main Features
- Kalman filter using a constant-velocity model (2-state)
- Process noise (Q) dynamically scaled by the current ATR / average ATR ratio
- Trend line color-coded by the sign of the estimated velocity
- Exposed velocity buffer for use in EAs/scripts
How It Works
On each bar, the indicator predicts the next position from the previous state, computes a volatility ratio (ATR(14) / average ATR over 100 bars, bounded between 0.25 and 4), scales Q accordingly, then updates the estimate using the observed closing price.
Input Parameters
- InpAtrPeriod (14) — ATR period for instantaneous volatility
- InpAtrNormPeriod (100) — reference period for normalization
- InpBaseProcessNoise (0.0025) — base Q
- InpMeasurementNoise (0.35) — R, controls overall smoothing
- InpMinVolRatio / InpMaxVolRatio (0.25 / 4.0) — safety bounds for the ratio
How to Use
Attach to the chart. Adjust InpMeasurementNoise for more or less smoothing depending on trading style (scalping vs. swing).
Use Cases
Trend following on H1/H4, confirmation filter combined with another signal, base for a trend-following EA.
Important Notes
This indicator does not guarantee any trading result. It is a statistical estimation tool, not a standalone buy/sell signal.
Version Information
v1.00, initial release.
D. Keywords and Category
- Primary: kalman filter, adaptive trend, trend indicator MT5
- Secondary: volatility adjusted, ATR scaling, signal processing, DSP indicator
- Suggested category: Trend Indicators
- Tags: kalman, trend, adaptive, volatility, filter
E. Screenshot Guide
Screenshot 1 — Objective: show the line during a strong trend vs. a range
Caption: "Adaptive response to volatility: faster tracking in trends, smoother in ranges."
Screenshot 2 — Objective: show the input parameters panel.
Caption: "Fully configurable Kalman parameters."
F. Usage Example
Scenario: EURUSD H4 trader. Configuration: default parameters. Expected Behavior: the blue line (positive velocity) tracks bullish phases, turns orange as soon as estimated velocity goes negative, with stronger smoothing in ranging conditions than an equivalent-period EMA.
G. Changelog
Version 1.00 — Initial release. Adaptive Kalman filtering with ATR-scaled process noise. Color-coded trend line.
9. Strategic Evaluation
| Criterion | Score /10 |
|---|---|
| Usefulness for traders | 7 |
| Conceptual originality | 6 (Kalman filtering is common, but ATR-based adaptation is a genuine differentiator) |
| Technical level | 7 |
| Ease of understanding | 8 |
| Visibility potential | 6 |
| Value for the Invictus profile | 7 |
SMC Entry Using structure
Market Structure & Smart Trade Tracker (MT5) An advanced all-in-one Smart Money Concepts (SMC) indicator that combines automated market structure mapping, momentum heatmap candles, and institutional trade execution tracking.
Adaptive_MACD
Adaptive MACD is a dynamic momentum indicator that adjusts its smoothing based on market conditions. It calculates a Pearson correlation coefficient between price and bar index over a user-defined period, then uses the resulting R² to blend two different MACD coefficient sets. This makes the MACD line more responsive during strong trends and smoother in sideways markets. The indicator plots a color-coded histogram (strong/weak bullish/bearish) and an optional auto-contrast MACD line that adapts to the chart background. Inputs allow customization of the R² period, fast/slow lengths, signal period, and colors. Suitable for trend-following and detecting momentum shifts.
Relative Moving Average Indicator
Une adaptation fidèle en MQL5 du framework « Relative Moving Average » de Daniel Bloch. Elle classe le cours de clôture actuel au sein de la distribution de sa propre fenêtre sur une échelle [0, 1] comparable d'un symbole à l'autre, et publie les fractiles, la classification par régime et la cohérence directionnelle sous forme de tampons lisibles.
Trading Panel EA
Pro Manager est un assistant de trading MT5 tout-en-un conçu pour les sociétés de trading pour compte propre et les traders professionnels. Exécutez vos transactions plus rapidement, gérez vos positions de manière plus intelligente, maîtrisez efficacement les risques et automatisez vos tâches quotidiennes de trading grâce à des outils puissants tels que le « Break-even », le « Average TP », la gestion des « Magic Numbers » et l’« Auto Grid ».

