Sometimes we code a strategy and it looks great but in reality the rewards might be lower than if we invested the money elsewhere. Why put money in a high risk strategy that returns just 3% per annum when you could get 4% somewhere else with lower risk? So I thought that I would code something that could be added to any strategy and so display the previous years overall return in percentage as well as the all time profit to date in percentage as well as a running profit for the current year so far in percentage.
I thought that I would share it just in case it is helpful to anyone else.
Warning: Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced clients who have sufficient financial means to bear such risk. The articles, codes and content on this website only contain general information. They are not personal or investment advice nor a solicitation to buy or sell any financial instrument. Each investor must make their own judgement about the appropriateness of trading a financial instrument to their own financial, fiscal and legal situation.