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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for turtle_trading-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaaa0c495c6f341c5de01647ac955dcdac51f9ef406c311c4156acd313615edf |
|
MD5 | b1d922a291f920209e15574e68e535ea |
|
BLAKE2b-256 | fbc43b458c23599cdc2cf24b97eaa461e5daf4905d98328610f0ee3a80251203 |