Skip to content

quochuydev/leadchart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crypto and AI Agent

index.html — BTC vs XAU Lead-Lag Chart

A single-file dashboard deployed on GitHub Pages that visualizes the lead-lag relationship between Bitcoin (BTC) and Gold (XAU/PAXG).

Concept: BTC is believed to lead gold by N days. By showing BTC's older price movement alongside XAU's recent movement — both normalized to % change from their start — you can visually test whether BTC's pattern preceded XAU's.

How it works:

  • BTC: fetches 200 daily candles, displays the oldest N (configurable)
  • XAU: fetches 100 daily candles, displays all 100 (the recent period)
  • Both lines start at 0% — y-axis shows % change from each line's first candle
  • Adjust BTC lead days input (default 100) to shift how many BTC candles are shown

Data source: Binance public API (BTCUSDT, PAXGUSDT daily klines)

About

Interactive BTC vs XAU (Gold) price comparison chart with configurable lead-days offset — powered by Binance public API.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages