Code Monkey home page Code Monkey logo

poor-trader-py's Introduction

A study on security trading

Run tests:

python -m unittest discover

Run pycodestyle:

pycodestyle --ignore=E501 poor_trader/trading.py
pycodestyle --ignore=E501 poor_trader/pse.py

Sample Backtest Results

Config

Trading System ATR Channel Breakout
Starting Balance 1000000.0
Start Date 2010-01-04
End Date 2018-04-30
Total Risk Per Trade Running Equity * 0.02
Unit Risk Price * 0.2

Trades Table

Trades Table

Performance Table

Performance
Number of Trading Days 2033.0
Starting Capital 1000000.0
Ending Capital 4748459.72
Net Profit 3748459.72
Net Profit % 374.85
SQN 2.46
Annualized Gain 0.21
Max Profit 1449662.77
Max Loss -209497.1
Number of Trades 440.0
Winning Trades 102.0
Losing Trades 338.0
Winning Trades % 23.18
Avg Profit/Loss 8519.23
Avg Profit 99991.02
Avg Loss -19084.69
Avg Profit/Loss % 4.61
Avg Profit % 41.52
Avg Loss % -6.53
Avg Bars Held 39.3
Avg Winning Bars Held 111.06
Avg Losing Bars Held 17.65
Max System Drawdown -2879129.44
Max System % Drawdown -39.1
Max Peak 7362822.11
Recovery Factor 95868.53
Profit Factor 1.58
Payoff Ratio 5.24

Equity Curve

Equity Curve Chart

poor-trader-py's People

Contributors

maricrise avatar emaric avatar

Stargazers

 avatar

Watchers

John D. Pope avatar  avatar

Forkers

rntatsuya

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.