Skip to main content
Skip to content
Agentic Finance

Alpha158 Is Not 158 Profitable Strategies: A 2027 Feature Audit

Audit a few Alpha158 feature definitions on one fictional price bar. Learn what features describe, how ratios differ, and which predictive claims remain untested.

Small translucent teal measuring pieces sit in an open copper tray beside an unmarked ivory notebook.
Reading options: audio, text size & sections

What Matters: A named feature collection supplies ways to describe data. It does not supply an equal number of profitable trading rules. DN calculates a few Alpha158-style quantities on one invented bar, showing how shared inputs and denominator choices shape their meaning. Predictive usefulness still requires timed observations, a defined target, an evaluation method and a portfolio policy.

Evidence: Source definitions were checked on 28 November 2026. DN executed the scalar arithmetic on an invented OHLC bar and tested a flat-bar boundary. This 2027 edition does not report a Qlib run, a trained model, a complete Alpha158 replication or a finding of market predictability.

A feature is a description before it is evidence

Suppose a daily bar opens at 100 and closes at 104. “The close was four percent above the open” is a description of that bar. Turning it into a trading claim requires another statement: what future quantity is predicted, when the description becomes available, how the prediction is converted to a position and what costs apply. None of those choices follows automatically from calculating the percentage.

The word alpha is easy to overread in a project name. A collection of feature definitions can be useful research infrastructure even when no individual feature has been shown to produce an executable net return in the reader’s market. Feature count describes the representation. It does not count independent discoveries, licensed data sources or validated strategies.

Qlib’s example workflow places an Alpha158 data handler inside a broader configuration with a model, train/validation/test periods and a portfolio strategy. That separation is the useful starting point for this audit.

Read the expression, including its denominator

The pinned feature loader names several quantities derived from the same bar. KMID divides close minus open by open. KLEN divides high minus low by open. KMID2 divides the bar’s body by its high-low range with a small stabilizer. These expressions answer different descriptive questions despite sharing most of their inputs.

Our invented bar has open 100, high 106, low 98 and close 104. Its body is four price units and its range is eight. The earlier closing price at a separately chosen lookback is 100. These values are authored teaching inputs, not a downloaded candle.

Original calculations on one fictional bar
QuantityArithmeticResultMeaning here
KMID(104 − 100) / 1000.04Body relative to open
KLEN(106 − 98) / 1000.08Range relative to open
KMID24 / (8 + 10−12)Approximately 0.5Body relative to range
Earlier/current close100 / 1040.96153846Chosen earlier level relative to current level
Conventional simple return104 / 100 − 10.04, or 4%Change relative to the earlier close

Two ratios can describe the same change differently

The loader’s ROC expression uses the earlier close divided by the current close at the selected lookback. That yields about 0.9615 in our rising-price example. A conventional simple return from 100 to 104 is four percent. Treating the first expression as if it already were the second would reverse or distort the intended interpretation.

This is not evidence that the loader is wrong. It is evidence that a feature name is insufficient documentation. A model can use a ratio centered around one just as it can use a percentage change centered around zero. The relevant questions are whether the implementation matches its declared expression and whether downstream processing expects that representation.

The earlier price must also match the stated lookback. Choosing a price five bars earlier and describing it as yesterday’s close changes the feature. Session gaps, missing bars and data frequency affect what a window means. Our worksheet accepts one earlier close and does not infer a calendar or fetch the appropriate historical observation.

More columns do not mean more independent information

In the positive-range case, KMID divided by KLEN equals the body divided by the range, apart from the tiny stabilizer. Our values make that visible: 0.04 divided by 0.08 is 0.5. These columns are not three independent observations of the market. They are related transformations of the same four input prices.

That relationship does not make them automatically useless. A particular model may find one representation easier to use than another. But adding related columns should not be presented as multiplying the amount of independent evidence. Evaluate whether the representation changes a defined task under a fixed comparison, rather than celebrating the number of generated features.

A useful experiment can compare a small base representation with an expanded one while holding the target, data splits, model family and tuning allowance fixed. If the expanded representation receives a much larger search budget, an apparent improvement confounds additional information with additional attempts. Keep both changes visible in the research record.

The feature’s clock is part of its definition

A completed bar’s high, low and close are not all known at its opening. A strategy that uses the completed high-low range to claim an entry at the same bar’s open needs a separate timing explanation. The expression may be mathematically correct while its use in a backtest remains impossible at the stated decision time.

For each column, record when its last required input becomes available, which timestamp represents the decision and which later observations form the target. A feature table without that relationship can hide future information behind perfectly ordinary column names. The worksheet intentionally performs descriptive arithmetic only; it does not claim a valid entry timestamp.

Preprocessing creates another version of the feature

The raw ratio is not necessarily what a fitted model receives. A research pipeline may impute missing values, clip extremes, standardize columns or rank observations. Those transformations need their own training scope and saved configuration. Fitting a transformation using future evaluation observations can change the information available to the model even when the raw formula looks harmless.

Preserve both a raw-feature example and the transformed value for a small audit slice. If two implementations disagree, that separation helps locate the difference: raw prices, adjustment convention, window alignment, operator semantics or preprocessing. Comparing only a final model metric usually cannot identify which layer changed.

A flat bar exposes a boundary

Set open, high, low and close to 100. The body and range are both zero. KMID and KLEN are zero, while the stabilized KMID2 expression also returns zero. This defined output prevents division by zero in the small calculation. It does not imply the observation contains evidence of a profitable signal.

A missing bar is a different case from a flat bar. Replacing absent data with an invented constant bar changes the evidence. The worksheet rejects blank or nonfinite prices and checks that high and low contain the open and close. Those checks protect this input contract, but they do not verify venue quality or corporate-action adjustments.

Inspect the definitions yourself

A few Alpha158-style feature definitions

Inspect one invented OHLC bar and an earlier closing price. These scalar formulas are a small explanation, not a full Alpha158 dataset or predictive model.

Works in your browser with your inputs. No account, data subscription or broker connection is required.

These features describe the supplied bar. No future-return relationship has been tested.

KMID: body / open
0.04000000
KLEN: range / open
0.08000000
KMID2: body / stabilized range
0.50000000
Earlier close / current close
0.96153846
Conventional simple return
4.0000%

The earlier-close ratio is the documented ROC expression for a chosen lookback, not the conventional percentage-return formula.

The full feature collection has additional windows, operators and preprocessing. This worksheet does not run Qlib.

The initial result is a worked example. Changing an input changes the stated scenario, not an exchange account or a verified market result.

Start with the example and change only one input. Raise the high while holding the open and close fixed: the body stays the same, the range grows and the body-to-range ratio falls. Then double every price, including the earlier close. The ratios remain effectively unchanged because their units cancel, aside from the negligible stabilizer effect. Neither experiment involves a forecast.

What each research stage can support
StageSupported statementStill missing
Formula inspectionThis expression describes these inputsCorrect computation on edge cases
Hand-checked examplesThe implementation matches these casesGeneral timing and data integrity
Held-out prediction evaluationThis declared model met this metric on these observationsPortfolio conversion and executable costs
Portfolio simulationThis policy produced this simulated result under its assumptionsReal-world execution and future usefulness

Data conventions can change every feature at once

Before comparing two feature implementations, confirm that they received the same prices. One file may use adjusted historical prices while another uses unadjusted observations. A split, redenomination or other adjustment can change ratios across the chosen lookback. That difference can arise before any feature code runs. The appropriate treatment depends on the research question and must be recorded, rather than inferred from similar column names.

Also preserve the row that was actually available at the decision cutoff. A later vendor correction can change a high, low or close and therefore several related features together. Recomputing from the latest file answers what the expression produces now, not necessarily what the earlier model saw. This article’s invented bar avoids those provenance questions only by declaring that it is synthetic. A real study needs the source version, retrieval record and adjustment policy alongside the feature dictionary. More precise arithmetic cannot compensate for an unidentified input version.

Methodology, limitations and the next useful record

DN’s Python script calculates the five displayed quantities using standard arithmetic. Independent browser checks confirm the 0.04 body ratio, the 100/104 ratio and the flat-bar boundary. Invalid OHLC relationships, missing inputs and nonfinite values are rejected. The full Alpha158 collection, rolling operators, normalization and model pipeline were not executed.

The next practical deliverable is a small feature dictionary: expression, units, lookback, availability time, missing-value policy and one hand-verified row. Keep it alongside the data in the Research Desk. Use the Trading Tool Lab to inspect arithmetic before making a separate, testable prediction claim.

Download the dated source and scenario record (JSON) · Download the reproducible calculation pack (ZIP).

Frequently asked questions

Is this a full implementation of Alpha158?

No. It calculates a few selected scalar expressions on one bar. The complete collection includes additional operators and lookbacks, and a research pipeline can apply further preprocessing.

Why is the earlier/current-close ratio below one when price rose?

Because the earlier value is the numerator. With earlier close 100 and current close 104, the ratio is 100/104. A conventional simple return instead uses 104/100 minus one. Read the expression before interpreting its name.

Does a zero feature mean missing data?

No. A correctly observed flat bar can produce zero for some features. Missing observations require an explicit missing-data policy; silently replacing them with flat bars changes the input evidence.

Primary sources and evidence

Editorial disclosure: This research explains documented capabilities and original worked examples. Inclusion does not imply endorsement, a commercial relationship or verified trading performance. No placement in this article was purchased.

Corrections and updates: Send source-backed corrections to press@decentralised.news. This 2027 edition was checked on 28 November 2026; documentation, permissions and product availability can change.

Get the most talked about stories directly in your inbox

Join the Decentralised News briefing for independent crypto, DeFi and AI analysis. No spam, unsubscribe anytime.