What Matters: A model can be newly available while its age clock already includes the time spent training it. FreqAI’s inspected code preserves a pre-training reference timestamp. DN’s original three-job schedule shows models aged fourteen, ten and three minutes when the queue finishes, despite the last model having just become ready. Retraining frequency and model availability need separate measurements.
Evidence: Checked 28 November 2026 for this 2027 edition. DN inspected FreqAI documentation and source pinned to commit e7408a6, then executed an independent serial-queue calculation with invented durations. No FreqAI model was trained, no hardware speed was measured and no prediction or trading performance was tested.
What does FreqAI model expiration measure?
A model-age setting needs two times: the reference from which age is measured and the moment when the system checks it. The age is the difference between them. A completion timestamp would produce one answer; the end of the selected training window can produce another.
That distinction matters when training takes appreciable time. If a job begins from a reference at midnight and becomes ready four minutes later, its age is already four minutes under the first-reference convention. Under a completion-age convention it is zero. Neither number is meaningful until the reference is named.
In the inspected FreqAI interface, the saved trained_timestamp comes from the training-window stop selected before training. Completing the training call does not replace it with completion time. That source reference also does not prove the timestamp of the newest usable candle in the data.
Four clocks make the workflow easier to understand
| Clock | Question it answers | What it cannot establish alone |
|---|---|---|
| Newest usable observation | How recent is the available input? | When a training job began or ended |
| Selected training-window reference | Which boundary anchors this model’s age? | That every input up to the boundary is present |
| Training completion | When did this job finish? | How recent its information was |
| Prediction or decision time | When was the model actually consulted? | That the resulting action was appropriate |
A dashboard showing only “last completed” can hide the gap between the model’s reference and its availability. Conversely, an old reference does not by itself measure prediction quality. The record needs enough context to distinguish an availability decision from an accuracy claim.
The queue is part of the freshness requirement
The FreqAI running guide describes an internal pair queue and explains that pair models can have different ages. Training work takes place separately from the main trading activity, but that does not mean every pair receives a simultaneously completed replacement model.
For planning purposes, imagine one worker serving several jobs in sequence. While it works on B, the previously completed model for A keeps ageing. While it works on C, both A and B age further. Reducing a requested waiting interval cannot remove the work already required to process the queue.
This is a general capacity problem that a small example can expose without choosing a machine-learning algorithm. The relevant inputs are the declared job durations, the reference convention, queue order and the point at which availability is evaluated.
DN’s three-job schedule
Our original scenario starts at an arbitrary time zero with no prior queue wait. Each model’s reference equals the start of its own job. One worker takes four minutes to complete A, seven to complete B and three to complete C. These durations are invented to make the timing visible.
| Model | Reference and job start | Declared duration | Completion |
|---|---|---|---|
| A | Minute 0 | 4 minutes | Minute 4 |
| B | Minute 4 | 7 minutes | Minute 11 |
| C | Minute 11 | 3 minutes | Minute 14 |
At minute fourteen, subtracting each reference gives ages of fourteen, ten and three minutes. Subtracting each completion time instead gives ten, three and zero. Both calculations describe the authored schedule, but only the former follows the age-reference convention being illustrated.
| Model | Age from reference | Time since completion |
|---|---|---|
| A | 14 minutes | 10 minutes |
| B | 10 minutes | 3 minutes |
| C | 3 minutes | 0 minutes |
The table explains how “just finished” and “already three minutes old” can both be true. They refer to different clocks. A report that substitutes one for the other changes the rule being evaluated.
Exact threshold equality changes one result
DN applies an illustrative positive expiry of ten minutes. The inspected data-kitchen check uses a strict greater-than comparison: age must exceed the positive limit. At fourteen minutes, A is expired; B is exactly at the threshold and is not yet expired; C is below it.
One second later, B is ten minutes and one second old and crosses the threshold. This small boundary case is useful because changing > to >= would alter the reported state at exact equality. A test should state which comparison it implements instead of allowing the word “expired” to conceal that choice.
The ten-minute setting is a teaching threshold in the independent worksheet. FreqAI’s named configuration parameters use hours; the example is not a ready-to-paste configuration or a recommendation for a particular production threshold.
Expiration and retraining have different jobs
The official parameter table identifies live_retrain_hours as the dry/live retraining interval and expiration_hours as the model-age limit. A zero retraining interval requests retraining as often as the workflow allows. A zero expiry disables this age-based expiry rule.
The selected training-window length is another setting: it describes how much history is used. Making that historical window longer does not mean the completed model has become newer. Similarly, keeping more old model files on disk changes retention, rather than erasing the elapsed time of the currently used model.
| Question | Relevant concept |
|---|---|
| When is another training job eligible? | Retraining interval and queue availability |
| Is the available model too old under this rule? | Age reference and positive expiry limit |
| How much historical information is included? | Training-window length |
| How many prior models are retained? | Storage and retention policy |
Use the parameter name expiration_hours when examining this setting. The running guide’s opening prose contains a different spelling, while its detailed example, parameter table and inspected implementation use this name. Recording exact configuration keys prevents a prose description from becoming an accidental configuration contract.
A model can expire before it becomes ready
The separate completion-boundary case uses one four-minute job and a three-minute positive expiry. Because age begins at the declared pre-training reference, the model is four minutes old at completion. It is already beyond the three-minute limit.
This result does not demonstrate a slow algorithm or an unsuitable computer. The duration was supplied as an assumption. It demonstrates an incompatibility between the chosen duration, the age convention and the expiry requirement. A real operating decision would replace the assumed duration with observed records under the relevant workload.
There are several different changes a researcher could test: a smaller workload, fewer pairs, another training procedure or a different age policy. Each changes a different part of the specification. Increasing the expiry threshold merely permits older models; it does not make the data newer or the training faster.
Expiry is not a complete trading policy
In the inspected interface’s ordinary subsequent-return expiry branch, prediction labels are set to zero and do_predict is set to 2. The source also has an initial return-initialization branch before that expiry branch. The finding is therefore a specific code-path observation, not a guarantee that every possible initial prediction is blocked.
A strategy still needs a defined response to unavailable or unacceptable model output. The model-age check alone does not establish that open positions close, pending orders are cancelled or an account has no exposure. Those behaviours require their own policy and observed events.
For example, a research specification may say that an expired prediction cannot initiate a new decision. That still leaves separate questions about existing positions and orders already in flight. Keeping these questions explicit makes the system easier to review than treating one age flag as a universal stop command.
What an actual timing study should collect
For each attempt, record the pair, model identifier, selected reference, latest usable input timestamp, training start, completion and outcome. Preserve the prediction-use time too. This permits separate calculations of input freshness, elapsed processing time, waiting time and model age.
Measure a representative range of attempts instead of choosing the fastest completion. A workload plan built from one unusually short job can omit the longer jobs that delay later pairs. Preserve the conditions of each measurement, including the declared dataset and competing work, so that a later comparison does not attribute every timing difference to the algorithm.
Failures and restarts belong in the record. A failed job may consume capacity without producing a replacement. A restart may use saved state and a queue order different from the simple A–B–C sequence. Omitting those events can make a retrospective timetable look more regular than the actual service experienced.
DN’s example deliberately excludes startup recovery, scan delays, download time, failures and concurrent workers. The stated duration covers the declared job until it is ready. The record should not be relabelled a FreqAI engine simulation merely because it follows one inspected timestamp convention.
Use the model-age planner
Inspect the reference and completion columns before the expiry result. Change the durations or positive expiry assumption and compare the resulting ages. Test exact equality and a moment just beyond it. Then disable expiry and observe that disabling the rule does not alter any model’s age.
The useful output is a timing specification under entered assumptions. It can help frame a real measurement plan, but cannot predict how long a model will take on a particular device. Nor can it determine whether a younger model will produce a better prediction than an older one.
Freshness, leakage and accuracy require separate evidence
A schedule can be timely while using information that would not have been available at the decision time. It can also be correctly dated while producing poor predictions. A freshness calculation addresses neither issue by itself.
Our guide to training without historical-data leakage addresses information availability. The stale-data article addresses input freshness. This planner adds the queue and age reference between data selection and model use.
Methodology and next action
The executed schedule uses durations of 240, 420 and 180 seconds. At second 840, the reference ages are 840, 600 and 180 seconds. Against a positive 600-second expiry, the flags are true, false and false; at second 841 the middle model also expires. The zero-expiry case disables expiry, and the four-minute job exceeds a three-minute limit on completion.
These are original arithmetic results with no hardware, feed, model-quality or investment benchmark. For a real workflow, replace assumptions with measured attempt records and keep the timestamp definitions unchanged during comparison. A mismatch then becomes a specific workload or policy question that can be tested.
The DN Research Desk can scope a review of a defined training workflow, its timing evidence and its declared operating requirements. The useful deliverable is an inspectable schedule and a next-test plan, with the capacity assumptions visible before decisions about additional infrastructure are made.
Download the dated source and scenario record (JSON) · Download the reproducible calculation pack (ZIP).
Frequently asked questions
What does expiration_hours control in FreqAI?
The inspected parameter table describes an age limit for model predictions. The pinned expiry function applies the check when the limit is positive and uses a strict age-greater-than-limit comparison. Zero disables this model-age expiry rule.
Does a completed FreqAI model have age zero?
Not under the inspected timestamp convention. The interface retains the selected training-window stop reference from before training. Time spent training therefore contributes to that age. This timestamp also does not prove the latest usable input candle’s time.
Does live_retrain_hours=0 mean all models are continuously fresh?
No. The documented meaning is to retrain as often as the workflow allows. Queue capacity and the time required to finish jobs still matter. DN’s planner uses declared durations; it does not measure actual training speed.
Does model expiry automatically close positions?
That does not follow from the inspected model-age check. The ordinary subsequent-return expiry branch produces zero labels and do_predict=2, with an initial-return caveat. The strategy must define its response; position and order handling require separate evidence.
Is the three-job example a measured FreqAI benchmark?
No. The four-, seven- and three-minute durations are invented. The calculation demonstrates reference-based age and threshold boundaries without running FreqAI, fetching a feed or evaluating prediction quality.
Is exact equality with the expiry limit expired?
The pinned function uses a strict greater-than comparison for a positive expiry. In DN’s 600-second example, age 600 is not expired, while age 601 is. The precise convention should be retained with any report.
Continue your research
Primary sources and evidence
- FreqAI running guide. Training queue and differing model ages; general operation context. Checked 2026-11-28.
- FreqAI parameter table. Named retraining, expiry, window and retention parameters; zero-value meanings. Checked 2026-11-28.
- Pinned FreqAI data kitchen. Strict age comparisons and creation of the pre-training window reference. Checked 2026-11-28.
- Pinned FreqAI interface. Training-reference timestamp retention and the bounded expiry-return path, including initial-return caveat. Checked 2026-11-28.
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.




