explaingit

yevchyk/dancing_gorizon

Analysis updated 2026-05-18

1PythonAudience · developerLicense

TLDR

A Python trading system that trains machine learning models to predict the probability a trade will be profitable over any time horizon, acting only on its highest confidence signals.

Mindmap

mindmap
  root((Dancing Horizon))
    What it does
      Trading signal ML
      Probability over horizon
    Tech stack
      Python
      CatBoost
      OKX and Binance
    Use cases
      Signal research
      Shadow-mode scoring
    Audience
      Traders
      ML researchers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Score live crypto or stock market data to see the model's probability-of-profit signals.

USE CASE 2

Study a horizon-conditioned approach to ML trading signal generation and calibration.

USE CASE 3

Run the pipeline in shadow mode to log trading signals without placing real orders.

What is it built with?

PythonCatBoostOKX APIBinance API

How does it compare?

yevchyk/dancing_gorizon0xustaz/streamgatea-bissell/unleash-lite
Stars111
LanguagePythonPythonPython
Setup difficultyhardhard
Complexity4/54/5
Audiencedeveloperdeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

In plain English

Dancing Horizon is a machine learning system for generating trading signals on crypto and tokenized stocks like MU or PLTR. Instead of predicting a simple up or down at one fixed time, it answers a more specific question: if you opened a trade right now and closed it in some number of minutes, what is the probability it would end up profitable after fees. It answers that question for many possible time windows at once, producing a curve of probability over time rather than a single guess. Underneath, the system watches roughly 200 to 300 assets every 5 minutes, turns each asset's recent price and volume history into a set of around 300 numbers, and feeds those into two machine learning models built with a library called CatBoost, one predicting upward moves and one predicting downward moves. These models are described as symbol blind, meaning they look only at price and volume patterns rather than which specific asset it is, which is why models trained on crypto data are said to also work reasonably well on stocks they were never trained on. The project author is upfront that what matters is not how good the model looks in a backtest, but whether its stated probabilities actually match reality. So every prediction is checked against a calibration table showing the real historical win rate for that confidence level. The system only acts on the highest confidence predictions, described as the tail of the probability distribution, and does nothing on days where no such high confidence signal appears. The full pipeline includes fetching live market data from OKX and Binance, building features, training the models, running backtests, and optionally executing real trades, defaulting to a shadow mode that only logs signals without placing real orders. The author openly describes the code itself as messy, written quickly across many late night sessions, though the results reported are said to hold up regardless. The project is written in Python and released under the MIT license.

Copy-paste prompts

Prompt 1
Help me run the bundled model in shadow mode against live market data.
Prompt 2
Explain how the horizon-conditioned CatBoost models produce a probability curve over time.
Prompt 3
What does the calibration table in this project actually measure?
Prompt 4
Walk me through the difference between shadow mode and live execution here.

Frequently asked questions

What is dancing_gorizon?

A Python trading system that trains machine learning models to predict the probability a trade will be profitable over any time horizon, acting only on its highest confidence signals.

What language is dancing_gorizon written in?

Mainly Python. The stack also includes Python, CatBoost, OKX API.

Who is dancing_gorizon for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.