# Trading Profit Loss Diagram and Simple Trading Probabilities

## Part 1. Trader Performance

Quick and easy calculation for profit loss of your trades over time using Python. Track your performance in trading with these simple distributions and probabilities of your trades.

## Part 2. Stock Market Data

Some basic mean reversion problability calculations to get you started using the $SPY ETF. If and how you use it is up to you to figure out.

# Prerequisites

`pip3 install pandas`

pip3 install matplotlib

pip3 install yfinance

pip3 install numpy

pip3 install pandas

pip3 install scipy

pip3 install seaborn

# Part 1. Trader Performance

## The Data

For we use the trader’s data the input `report.csv`

format is as follows of all the trades made:

`CloseTime,Instrument,Profit/Loss`

DD/MM/YYYY,USA 500, 00000.00

DD/MM/YYYY,USA 500, -00000.00

## The Result

Results for profit_loss.py shows all the trades over time.

profit_loss_distributions.py shows a normal bell curve of all the trader’s trades. Most of my trades are immediately stopped out just below $0.