Discussing the article: "Association Rules and Probability Theory in Forex: A Signal Filter Without Neural Networks or Magic"

Check out the new article: Association Rules and Probability Theory in Forex: A Signal Filter Without Neural Networks or Magic.

We explore an alternative to neural network signal filters: association rules and basic probability theory in MQL5, without Python or external libraries. This guide demonstrates how to discretize market conditions (RSI, EMA, ATR, momentum, session), compile statistics on support, confidence, lift, and edge using Laplace smoothing, and apply the result as a transparent entry filter before placing a trade.

In previous versions, we enhanced the trading system with a neural network filter: the network analyzed market features and determined whether its forecast matched the direction of the proposed entry. But there is another way — one that is simpler, more transparent, and very convenient for MQL5. This approach uses association rules and basic probability theory.

Here is the idea: instead of forcing the model to "think" like a neural network, we collect statistics on recurring market conditions. If the market frequently behaves in a certain way after a combination of features occurs, the system records this as a rule. For example: if the RSI is in the oversold zone, the price is below the EMA, volatility is high, and it is during the European trading session, then after N bars, the price is more likely to rise than to fall. This is not a prediction of the future in a mystical sense. This is a careful statistical estimate of what typically happened under similar conditions in historical data.

This approach works well for trading bots because it doesn't require Python, weight files, external libraries, or extensive training. Everything can be done right inside the Expert Advisor: collect features, discretize them into events, calculate frequencies, estimate probabilities, and use the result as a final filter before entry.


Author: Yevgeniy Koshtenko