whittlem / pycryptobot

Python Crypto Bot (PyCryptoBot)
Apache License 2.0
1.97k stars 741 forks source link

Given the formula (c) in this documentation in the description it seems that the cumulative returns is missing… #620

Closed joa-rodrigues closed 2 years ago

joa-rodrigues commented 2 years ago

When i read a documentation of a cumulative return i see that there is a missing substraction of 1 at the end of the line.

https://www.allthesnippets.com/notes/finance/calculating_cumulative_returns_of_stocks_with_python_and_pandas.html#What-Is-a-Return?

Description

Just added the missing (-1)

Fixes # (issue)

Type of change

Please make your selection.

How Has This Been Tested?

Just run the bot. Check the correct values in Trading.py

Checklist:

whittlem commented 2 years ago

Thanks for the update. We raise our PR's against "beta" not "main". I changed that for you and merged it into "beta" for testing.