Kalman Filter EA

Kalman Filter EA 

📈 Core Concept

This EA is a strict combining Kalman filtering, Rate of Change (ROC), Stochastic oscillator, and Triple Exponential Moving Average (TEMA) to generate high‑confidence entry signals. It works exclusively on closed candles and manages each trade independently with fixed Stop Loss and Take Profit.

🔍 How It Works (Step‑by‑Step)

  1. Kalman Filter – Smooths price data to reduce market noise, producing a filtered series ( kfilt ) and its velocity.

  2. Rate of Change (ROC) – Calculates the percentage change of the Kalman‑filtered price over 9 periods.

  3. Stochastic (%K / %D) – Measures the current price position relative to the 14‑period high/low range; %K is smoothed with a 3‑period SMA to get %D.

  4. Blended Line – Averages the ROC and the Stochastic %D to create a composite oscillator.

  5. TEMA Smoothing – Applies a Triple Exponential Moving Average (period 20) to the blended line to further reduce lag and false signals.

  6. Signal Generation – A buy (sell order) is triggered when the TEMA crosses above its previous value, and a sell (buy order) when it crosses below. The cross is evaluated strictly at the bar close.

Note: The EA does not close positions on opposite signals. Trades are only exited by the fixed Stop Loss or Take Profit.

⚡ Key Advantages

Advantage Description
Noise Reduction Kalman filter adaptively smooths price, distinguishing genuine trends from random fluctuations.
Multi‑Factor Signal Combines momentum (ROC) and mean‑reversion (Stochastic) for a balanced view of market conditions.
TEMA Smoothing Triple EMA further filters the signal to avoid whipsaws common in noisy oscillators.
Strict Bar‑Close Execution Evaluates only fully formed candles, avoiding intra‑bar noise and premature entries.
Fixed Risk per Trade Hardcoded Stop Loss and Take Profit (in points) ensure predictable risk/reward on every position.
Spread Protection Blocks trading when spread exceeds a user‑defined threshold.
Independent Trade Management No conflicting logic; each trade runs its own SL/TP without interference from new signals.

⚙️ Input Parameters

Parameter Default Description
InpLotSize 0.01 Fixed position size (in lots) for every trade.
InpTakeProfitPts 300 Take Profit distance in points (e.g., 300 points = 30 pips for 5‑digit brokers).
InpStopLossPts 600 Stop Loss distance in points. Fixed SL ensures a consistent risk per trade.
InpMaxSpreadPts 30 Maximum allowable spread in points. Trades are cancelled if spread exceeds this value.

Fixed Internal Parameters (not user‑adjustable, as per the original strategy):

Parameter Value Purpose
Kalman Sharpness 25.0 Controls the filter’s responsiveness to price changes.
Kalman K 1.0 Gain factor for velocity updates.
ROC Length 9 Period used for the Rate of Change calculation.
Stoch %K Period 14 Lookback for Stochastic high/low range.
Stoch %D Smooth 3 Smoothing period for the Stochastic signal line.
TEMA Smooth Length 20 Smoothing period for the Triple EMA applied to the blended line.

🧠 Strategy Philosophy

  • No Martingale or Grid – Each trade is a one‑off decision with fixed risk.

  • Mean‑Reversion & Momentum Fusion – ROC captures momentum, Stochastic captures overbought/oversold extremes; their average creates a more robust indicator.

  • Crossover Logic – Entry is triggered only when the smoothed blend changes direction, aiming to catch the beginning of a new move.

💡 Best Use Cases

  • Timeframe: Works well on any timeframe, but the original logic was designed for 1‑hour or 4‑hour charts.

  • Instruments: Suitable for major forex pairs, indices, or commodities with moderate volatility.

  • Market Conditions: Performs best in trending markets where filter and ROC can capture sustained moves; range‑bound markets may produce fewer signals.

⚠️ Important Notes

  • No Position Management – The EA does not track open positions; it simply sends new orders when conditions are met. Manual intervention is not required unless you wish to modify the fixed SL/TP.

  • PineScript Accuracy – Every calculation has been meticulously translated from the original PineScript code to preserve the exact logic and performance.

  • Historical Calculation – On initialization, the EA back‑fills its internal arrays to ensure the Kalman filter converges properly before the first live signal.


Altri dall’autore
Quant MAR
Robert Davis Waweru Mugure
I have been using this product for a while and although martingale strategies pose great risk this product shows great results with proper discipline and strict rules. 1. use sent account min deposit 1000 usd which translates to 100000 cents.  2. if you dont have a cent account recommeded broker link.   https://one.justmarkets.link/a/ljruy08oml&nbsp ; 3. use 1:3000 leverage. 4. be free to share results and comments 
Prop firms Destroyer
Robert Davis Waweru Mugure
PROP FIRM DESTROYER    EA – Built for Prop Firm Challenges & Consistent Profits A simple, rule-based scalping robot that trades any Forex pair or Gold (XAUUSD) with zero guesswork. It uses a proven 5-indicator filter system and never uses dangerous methods like martingale, grid, or trailing stops. Why Traders Love It 100% Mechanical – No emotions, no manual decisions. Every trade follows exact rules. Ultra-Strict Filters – Only trades during good market hours, low spread, and when you actually h
Gold sculper
Robert Davis Waweru Mugure
GoldScalper is a simple, reliable Expert Advisor (EA) for MetaTrader. It is a Pure Price Action Mean-Reversion Scalper made especially for XAUUSD on the M1 timeframe , but it works safely on any symbol. Advantages (Why traders love it) Pure price action only – no lagging indicators, no complicated settings. It reads the previous candle and waits for a clean pullback. Exact $2 risk & $2 profit every trade – fixed dollar risk/reward (1:1). You always know exactly how much you can lose or win. Supe
Hidden Markov Model
Robert Davis Waweru Mugure
Markov Inbuilt Scalper EA - Product Overview Core Concept This Expert Advisor combines   Markov Chain probability analysis   with   ATR-based risk management   to identify high-probability trading opportunities. It uses historical price patterns to predict market direction and executes trades with built-in protection mechanisms. Key Advantages 1.   Intelligent Market Prediction Uses a   Markov Transition Matrix   to analyze price patterns over a rolling window Calculates the probability of
RSI Trendline Breakouts EA
Robert Davis Waweru Mugure
RSI Trendline Breakout EA  This EA is a   highly specialized breakout strategy   that ignores price levels entirely—it draws and trades   trendlines directly on the RSI oscillator , detecting breakouts before they happen on the price chart. Core Concept Instead of standard support/resistance on price, this EA: Identifies   pivot highs   and   pivot lows   on the RSI line. Connects   consecutive lower highs   to form a   descending resistance   line. Connects   consecutive higher lows   to for
Filtro:
Nessuna recensione
Rispondi alla recensione