Skip to main content

A collection of investment tools used by the Turtle Traders.

Project description

turtle-trading

A Python Package of a collection Turtle Trading investing tools. All code is based on the ideas presented in The Original Turtle Trading Rules.

The package, currently, contains only one working beta module: position_sizing.

Download using pip:

pip install turtle-trading

Examples:

from turtle_trading.position_sizing import units, adjusting_size

""" Create a Unit instance. """
unit = units.Unit(asset="AAPL", account_size=1_000_000)

""" Determine how many shares are in one unit. """
print(unit) # returns.. > AAPL: 20

""" See N, learn about this on page 12. """
print(unit.N) # returns.. > 2.19987

More will be published soon.

For issues, look here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

turtle_trading-1.0.0.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

turtle_trading-1.0.0-py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page