0

Currently the profit percentage calculation is based on the average daily profit multiplied by 365 divided by current balance * 100

This means it will show a reduced amount of annualised profit percent as the ongoing profits are added to the balance. To remedy this a starting balance figure has been added to the global variables, so if your starting balance was 5000 USD, then that figure is stored and the percentage profit calculation runs against that instead of current balance.

This means that if a further capital injection is made, then the current balance before capital injection must be added to the new capital amount and the global variable updated with this new value.

This needs to be added to a place where the user can amend the balance and the capital injection automated in future.

Question is closed for new answers.
Selected answer as best