Giter Site home page Giter Site logo

jrmeier / fast-trade Goto Github PK

View Code? Open in Web Editor NEW
353.0 353.0 34.0 7.04 MB

low code backtesting library utilizing pandas and technical analysis indicators

Home Page: https://jrmeier.github.io/fast-trade/

License: GNU Affero General Public License v3.0

Python 100.00%
algotrading backtesting charting-library cryptocurrency finance technical-analysis technical-indicators

fast-trade's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m working at FieldSync
  • ๐Ÿ’ฌ Talk to me about: Python, JavaScript, or algorithmic trading
  • ๐Ÿ“ซ How to reach me: [email protected]

fast-trade's People

Contributors

dependabot[bot] avatar jrmeier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fast-trade's Issues

Error when run_backtest

print(validate_backtest(strategy_object))
datafile_path = "./archive/BTCUSDT1.csv"
result = run_backtest(strategy_object, datafile_path)

File "blablab\venv\lib\site-packages\fast_trade\build_data_frame.py", line 246, in standardize_df
new_df.open = pd.to_numeric(new_df.open)

AttributeError: 'DataFrame' object has no attribute 'open'

I cant run_backtest on my computer

AutoML Support?

Is there a way to churn out multiple strategies without breaking a sweat by testing possible variations? It has been said that XGBoost and algorithms like them are useful for trading algorithms.
A secondary thought would be to get TA-Lib to churn out all their indicators based on the time frame provided in multiple granularity (similar to what is done with MA), and deciding on the Boolean output criteria (e.g. whether the performance after X days exceed y%).
Would there be a way to use fast-trade to accelerate the search?

#### Better run summary

Return a better run summary, try to match backtesting.py

Start 2004-08-19 00:00:00
End 2013-03-01 00:00:00
Duration 3116 days 00:00:00
Exposure [%] 94.29
Equity Final [$] 69665.12
Equity Peak [$] 69722.15
Return [%] 596.65
Buy & Hold Return [%] 703.46
Max. Drawdown [%] -33.61
Avg. Drawdown [%] -5.68
Max. Drawdown Duration 689 days 00:00:00
Avg. Drawdown Duration 41 days 00:00:00
numTrades 93
Win Rate [%] 53.76
Best Trade [%] 56.98
Worst Trade [%] -17.03
Avg. Trade [%] 2.44
Max. Trade len 121 days 00:00:00
Avg. Trade len 32 days 00:00:00

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.