The Candlestick Chart App is a web application built using React and Chart.js. It allows users to visualize historical price movements of the BTC/USDT trading pair and generates buy/sell signals based on a simple moving average (SMA) crossover strategy.
- Fetches candlestick data from the Binance API.
- Calculates short-term and long-term SMAs.
- Generates buy and sell signals based on SMA crossovers.
- Displays candlestick chart with buy/sell annotations using Chart.js.
-
CandlestickChart.tsx
: React component responsible for fetching data, generating signals, and rendering the candlestick chart. -
handler.ts
: Contains functions to generate signals and calculate SMAs.