Trading the Breaking

Trading the Breaking

Research

[WITH CODE] Model: FURIA algorithm

Build rules that breathe with the market, not break under pressure

Quant Beckman's avatar
Quant Beckman
Apr 16, 2025
∙ Paid

Table of contents:

  1. Introduction.

  2. Assessing limitations.

  3. Embracing fuzzy logic as a strategic catalyst.

  4. Theoretical framework of fuzzy rule induction.

    1. Purity and certainty in fuzzy rule evaluation.

  5. The FURIA algorithm.


Before you begin, remember that you have an index with the newsletter content organized by clicking on “Read full story” in this image.


Introduction

Let’s be real—markets are messy, volatile beasts. For years, algo strategies have leaned on these crisp, binary rules: If X crosses threshold Y, execute Z. But anyone who’s spent time on a trading floor knows markets don’t play by tidy rules. Take a classic momentum signal—say, a ‘buy’ trigger when price breaches a moving average. The second that threshold gets crossed, you’re supposed to act. But here’s the rub: markets don’t flip a switch. That ‘buy’ signal might fire while the broader context—liquidity, volatility, order flow—is still in this murky transition. It’s like slapping a ‘storm warning’ on a radar blip that’s still just a ripple.

So now you’re stuck with this quant dilemma: How do you teach machines to navigate ambiguity when their entire framework is built on yes/no logic? Standing there, staring at screens drowning in noise, it hits you—forcing binary decisions on markets is like trying to track a hurricane with a light switch. You’re either ‘on’ or ‘off,’ while the storm rages in gradients.

Assessing limitations

To build a robust trading system, we must confront several risks imposed by conventional rule-based systems:

  • Loss of nuance: Traditional classifiers that enforce hard decision boundaries provide no margin for error, often leading to frequent rebalancing and overtrading as market conditions oscillate around a fixed threshold.

  • Systematic biases: Ordered rule lists, common in methods like RIPPER, tend to privilege one class—often the default or majority class. In trading, this bias can result in a persistent overexposure to certain market conditions.

  • Inflexible adaptation: The inability to deal with uncovered instances—i.e., those market conditions that do not neatly satisfy any crisp rule—forces traders to rely on default actions that may be suboptimal.

  • Inadequate risk management: Abrupt transitions can lead to higher transaction costs, slippage, and adverse selection. All these factors compound to worsen the overall trading performance.

These risks are paralleled in any system that fails to model uncertainty. Markets do not respond in binary fashion; they rather exhibit a continuum of responses based on partially observable factors, leading to the conclusion that a more nuanced approach is needed.

If you're curious, don't miss this article in which I develop the RIDRA algorithm:

Embracing fuzzy logic as a strategic catalyst

The pivotal moment comes with the realization that fuzzy logic offers the perfect antidote to the rigidity of crisp rule-based models. Fuzzy logic introduces the concept of graded membership, in which data points can belong to a set to a certain degree rather than in an absolute manner.

Imagine a trader no longer making decisions solely on whether a price is above or below a specific value, but rather, assessing the degree to which the price aligns with a bullish or bearish condition. This is analogous to a spectrum rather than a binary state. By replacing sharp decision boundaries with soft fuzzy intervals, we can simulate the gradual transitions common in the market data.

The Fuzzy Unordered Rule Induction Algorithm (FURIA) is built on this very philosophy. It modifies the state-of-the-art RIPPER algorithm by:

  • Learning fuzzy rules: FURIA replaces conventional crisp rules with fuzzy rules that have gradual membership functions.

  • Unordered rule sets: Instead of imposing an order that may bias the model, FURIA learns rules for each class independently in a one-vs.-rest manner.

  • Rule stretching: To manage uncovered examples—market states that lie in-between preset conditions—FURIA utilizes a rule stretching mechanism that generalizes rules in a local, data-driven way.

This breakthrough is the catalyst for a new class of algorithmic trading systems—one that can adapt to the fluid, ambiguous nature of financial markets.

If you want to check it out in more depth, check out this paper:

Furia algorithm
259KB ∙ PDF file
Download
Download

Theoretical framework of fuzzy rule induction

Before diving into implementation details, we must first establish a firm mathematical foundation. Fuzzy logic extends classical set theory by allowing partial membership. Instead of an element belonging fully to a set or not at all, fuzzy sets enable degrees of membership. A common representation is the trapezoidal membership function. Consider a financial indicator x—for instance, a normalized momentum score. A fuzzy set IF​ representing “bullish momentum” may be defined by a trapezoidal function with four parameters:

\(I_F = (\phi_{s,L},\; \phi_{c,L},\; \phi_{c,U},\; \phi_{s,U}) \)

The corresponding membership function is given by:

\(\mu_{I_F}(x)= \begin{cases} 0, & x \le \phi_{s,L} \,\, \text{or}\,\, x \ge \phi_{s,U}\\[1mm] \frac{x-\phi_{s,L}}{\phi_{c,L}-\phi_{s,L}}, & \phi_{s,L} < x < \phi_{c,L}\\[1mm] 1, & \phi_{c,L} \le x \le \phi_{c,U}\\[1mm] \frac{\phi_{s,U}-x}{\phi_{s,U}-\phi_{c,U}}, & \phi_{c,U} < x < \phi_{s,U} \end{cases}\)

Here, ϕc,L​ and ϕc,U define the core—complete membership region—and ϕs,L​ and ϕc,U​ define the support—the transition zones. In trading, this gradual transition is analogous to assessing the degree of bullishness of a market condition rather than a binary yes/no.

Furthermore, for a fuzzy rule composed of k conditions—for different market indicators—the overall degree of coverage of an instance x—a vector of market data—is given by the product of the individual memberships:

\(\mu_{r_F}(x) = \prod_{i=1}^{k} \mu_{I_{F_i}}(x_i).\)

This multiplicative aggregation reflects the joint likelihood that the market condition x is consistent with a given rule. Higher values indicate a stronger match.

Purity and certainty in fuzzy rule evaluation

To fine-tune fuzzy rules, FURIA uses the concept of purity. For a given rule, let:

  • p be the weighted sum of positive—target—instances,

  • n be the weighted sum of negative instances, with weights given by the fuzzy membership of each instance. The purity is then expressed as:

\(\text{purity} = \frac{p}{p+n}.\)

This metric is later used to choose the best candidate support boundaries during fuzzification.

The certainty factor for a rule—a value that adjusts the contribution of the rule in classification—is computed using a modified Laplace estimate:

\(CF(r) = \frac{p+1}{p+n+2},\)

where p and n are defined as before. This factor weighs each rule’s impact and is particularly crucial when multiple fuzzy rules are aggregated for decision making.

The FURIA algorithm

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2026 Quant Beckman · Publisher Privacy ∙ Publisher Terms
Substack · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture