stock-position-calc 1.1

Creator: bradpython12

Last updated:

0 purchases

stock-position-calc 1.1 Image
stock-position-calc 1.1 Images

Languages

Categories

Add to Cart

Description:

stockpositioncalc 1.1

Stock Position Calculator




A simple program to manage risk and calculate the right amount of shares to buy.
Install with pip
To install:
$ pip install stock-position-calc

To upgrade:
$ pip install stock-position-calc --upgrade

For some Linux distributions you will need to install the tkinter package:
$ sudo apt update
$ sudo apt install python3-tk

Launch program:
$ stock-position-calc

Or create a file to run the program
Windows:
$ git clone https://github.com/zaironjacobs/stock-position-calc
$ cd stock-position-calc
$ pipenv install --dev
$ pipenv run pyinstaller stock_position_calc/app.py --onefile --windowed

Linux:
$ git clone https://github.com/zaironjacobs/stock-position-calc
$ cd stock-position-calc
$ pipenv install --dev
$ pipenv run pyinstaller stock_position_calc/app.py --onefile --windowed
$ sudo chmod +x dist/app

The output file can be found in the dist folder.
Usage
Fixed Cash Amount:
Will calculate the number of shares solely based on the amount you want to invest in a trade.
Example: You have 10,000toinvestinastockandyouwouldliketobuysharesofthatstockwhenthepricefallsdownto20.
The amount of shares you will buy will be 500 (10,000/20).
Fixed Risk:
Will calculate the number of shares based on how much you are willing to risk.
Example: You have an account size of 10,000andyouwouldliketobuysharesofastockwhenthepricefallsdownto20.
You decide on a stop loss of 15% (17)andyouwanttoriskonly1100) of your account size.
The amount of shares you will buy will be 33 (100/(20 - $17)).

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.