Rejoignez notre page de fans
- Vues:
- 46
- Publié:
- Mise à jour:
-
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.
Market Replay Tool
Market Replay Tool is an MT5 utility that seamlessly merges a Market Replay simulator with interactive TradingView-style Long & Short drawing tools. It allows traders to backtest strategies on historical data with adjustable playback speeds, while effortlessly mapping out risk-to-reward setups using dynamic, draggable entry, stop-loss, and take-profit visual boxes directly on the chart.
SpreadAudit - le spread réel du courtier d'après l'historique M1
Le script récupère le spread réel de votre courtier à partir du champ « spread » des barres M1 et affiche la médiane, les 90e et 99e centiles en unités de prix, en points et en fractions d’ATR, et exporte dans un fichier CSV le spread moyen et maximal pour chaque heure de la journée. Il est utile pour tester des stratégies en fonction des coûts réels de votre compte, et non par rapport à un spread « type » estimé de mémoire.
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 ».

