Skip to content

AarDG10/Trading-Stra-Backtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ˆ Trading Strategy Backtest

This is a simple web application that allows users to upload historical stock price data (CSV), run a trading strategy backtest, and visualize the results.


πŸ› οΈ Tech Stack

  • Frontend: HTML, JavaScript, Chart.js
  • Backend: Python, FastAPI, Pandas
  • Server: Uvicorn (ASGI server for FastAPI)

πŸš€ Features

  • πŸ“€ Upload historical stock data as CSV
  • βš™οΈ Run backtest with a simple strategy (Close > 5-day SMA)
  • πŸ“Š Display results in a clean table
  • πŸ“ˆ Plot stock prices with buy signals using Chart.js
  • πŸ’Ή Display:
    • Total return

Setup & Demonstration

  • CD Backend
  • In Terminal Run, uvicorn main:app --reload
  • Run the Live Server of the index.html file located in Frontend dir.
  • Upload CSV
  • Run Testing Strategies

About

Developing a Trading Strategy Backtest API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published