CoolFace
Datasetpublic

SavantCapital/MagSeven-ML-Ready-High-Frequency-Anomaly-Dataset-January-2026-sample

MagSeven High-Frequency Anomaly Dataset (Sample) This repository provides a public sample dataset extracted from a larger, production-ready financial time series dataset. The goal of this sample is to demonstrate: Data structure Feature engineering style Cleanliness and usability for modeling πŸ“¦ Dataset Overview This dataset contains normalized and relative time-series features derived from raw OHLCV market data. Instead of absolute prices, the data focuses on… See the full description on the dataset page: https://huggingface.co/datasets/SavantCapital/MagSeven-ML-Ready-High-Frequency-Anomaly-Dataset-January-2026-sample.

sourceHugging Facecc-by-4.0updated 7mo agoView on Hugging Face
0likes21downloads
Dataset Card

MagSeven High-Frequency Anomaly Dataset (Sample)

This repository provides a public sample dataset extracted from a larger, production-ready financial time series dataset.

The goal of this sample is to demonstrate:

  • β€”Data structure
  • β€”Feature engineering style
  • β€”Cleanliness and usability for modeling

πŸ“¦ Dataset Overview

This dataset contains normalized and relative time-series features derived from raw OHLCV market data.

Instead of absolute prices, the data focuses on relative movements anchored to an open price, making it more suitable for:

  • β€”Machine learning models
  • β€”Cross-asset generalization
  • β€”Regime-agnostic pattern discovery

πŸ“Š Event-Level Data Schema

Each JSON object corresponds to a single detected anomaly event and follows the schema below:

json
{
  "ticker": "AAPL",
  "timestamp_utc": "2026-01-06 14:30:00+00:00",
  "metrics": {
    "market_phase": "OPEN_AUCTION",
    "event_type": "MARKET_LIQUIDITY",
    "anomaly_strength": "Level_2",
    "volume_z_score": 6.32,
    "volatility_z_score": 2.15,
    "price_change_from_window_open": 0.003,
    "outcomes": {
      "future_return_30m": 0.0045,
      "max_upside_30m": 0.008,
      "max_drawdown_30m": -0.001,
      "label": "BULLISH"
    }
  },
  "data_1m": [ ... ],
  "data_5m": [ ... ]
}

🧱 Field Overview

Top-Level Fields
  • β€”ticker: Stock symbol associated with the anomaly event.
  • β€”timestamp_utc: UTC timestamp corresponding to the anchor (trigger) bar.
  • β€”metrics: Event-level summary statistics, detection logic outputs, and forward-looking outcome labels.
  • β€”data_1m: High-resolution 1-minute microstructure window centered around the anomaly event.
  • β€”data_5m: Lower-frequency 5-minute context window capturing short-term trend behavior.

πŸ›  Usage Notes

  • β€”All price-related fields are normalized to protect data source agreements and emphasize relative price action dynamics.
  • β€”Absolute price levels are intentionally excluded.
  • β€”The dataset is optimized for direct ingestion into ML pipelines without additional preprocessing.

πŸ§ͺ Example: Loading the Dataset in Python

python
import pandas as pd

# Load anomaly data for a single ticker
df = pd.read_json("AAPL_anomaly_package.jsonl", lines=True)

# Inspect event-level metrics
print(df.iloc[0]["metrics"])

# Convert the 1-minute window into a DataFrame
event_1m = pd.DataFrame(df.iloc[0]["data_1m"])
print(event_1m.head())

πŸ“š Feature Dictionary (data1m & data5m)

Both data1m (microstructure) and data5m (trend context) arrays share the same feature definitions.

FeatureDescription
DatetimeTimestamp of the bar (UTC).
is_anchorTrue if this bar corresponds to the triggered anomaly event; False for surrounding context bars.
Rel_Open / Rel_High / Rel_Low / Rel_ClosePrice relative to the open price of the first bar in the window.<br>RelPrice = (Price - WindowStartOpen) / WindowStart_Open
Price_VelocityPercentage change in Close price from the previous bar.
Price_AccelerationChange in Price Velocity (second derivative of price).
Log_ReturnLogarithmic return of the Close price.
Volume_RatioCurrent volume divided by the trailing moving average volume. Measures relative volume intensity.
Money_Flow_RatioCurrent money flow (Close Γ— Volume) divided by its trailing moving average.
Volume_MomentumFirst derivative of volume (change in volume from the previous bar).
Volatility_Z_ScoreStandardized score of the High–Low range relative to recent history.
Vol_Z_ChangeChange in Volatility Z-Score from the previous bar.
Bar_Intensity(Close - Open) / (High - Low). Measures directional conviction (range: -1.0 to 1.0).
Distance_to_MA20Percentage distance of the Close price from the 20-period moving average.

🧠 Intended Use Cases

This dataset format is suitable for:

  • β€”Time-series forecasting
  • β€”Anomaly detection
  • β€”Pattern discovery
  • β€”Quantitative research
  • β€”Feature engineering benchmarks
  • β€”ML / DL pipelines (LSTM, Transformer, etc.)

πŸ§ͺ About This Sample

This Hugging Face repository contains only a small subset of the full dataset.

It is intended for:

  • β€”Inspection
  • β€”Experimentation
  • β€”Pipeline testing

The full dataset includes:

  • β€”Larger time coverage
  • β€”Multiple instruments
  • β€”Extended metadata
  • β€”Ready-to-train splits

πŸ”— Full Dataset (Gumroad)

The complete dataset is available for purchase on Gumroad:

πŸ‘‰ [Get the full dataset on Gumroad](https://xiaoyaoblob.gumroad.com/l/rlnpv)


πŸ“„ License

This sample dataset is released under the CC-BY-4.0 License.

You are free to use it for research and experimentation, with attribution.


πŸ“¬ Contact

If you have questions, feedback, or custom data requests, feel free to reach out via Gumroad.


πŸ“¬ Contact & Support

If you have any questions about this dataset, licensing, or access to the full version, feel free to reach out:

πŸ“§ Email: quantalpha.global@gmail.com

Please note that this email is intended for dataset-related inquiries only. We aim to respond within 1–2 business days.