Skip to content

Framework for backtesting trading strategies in Python, based on the finta library.

License

Notifications You must be signed in to change notification settings

peerchemist/finta_backtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

finta_backtest

License: LGPL v3 Code style: black

Framework for backtesting trading strategies in Python, based on the finta library.

Why finta_backtest and not some other library?

I've decided to implement finta_backtest after trying out pretty much all of Python backtesting libraries I could find on github. Lockdown following COVID-19 pandemic probably had had some influence on my decisions as well. I've wanted to test out some trading strategies implemented using indicators found in finta library, and that required some modifications on libraries I could found. This however made me look at overly complex codebase of various libraries, and I was not in mood of modifying more than than 50 lines of code.

Finta_backtest is made to be ultra small, fast and very easy to modify. The first release has less than 250 lines of code.

Examples

See tests/test_unit.py.

Roadmap

Right now library is pretty much proof-of-concept. For the near future plan is to make it feature complete when compared to similar libs, after that focus will be on documentation and examples.

Contributing

  1. Fork it (https://github.com/peerchemist/finta_backtest/fork)
  2. Study how it's implemented.
  3. Create your feature branch (git checkout -b my-new-feature).
  4. Run black code formatter on the finta.py to ensure uniform code style.
  5. Commit your changes (git commit -am 'Add some feature').
  6. Push to the branch (git push origin my-new-feature).
  7. Create a new Pull Request.

About

Framework for backtesting trading strategies in Python, based on the finta library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages