This is a trading item or a component that was created using QuantShare by one of our members.
This item can be downloaded and used by QuantShare Trading Software.
Trading items are of different types. There are data downloaders, trading indicators, trading systems, watchlists, composites/indices...
You can use this item and hundreds of others for free by downloading QuantShare.
Top Reasons Why You Should Use QuantShare:
Works with US and international markets (stock, forex, options, futures, ETF...)
Offers you the tools that will help you become a profitable trader
Allows you to implement any trading ideas
Exchange items and ideas with other QuantShare users
Our support team is very responsive and will answer any of your questions
We will implement any features you suggest
Very low price and much more features than the majority of other trading software
The coefficient of determination or R2 is used in the context of statistical models whose main purpose is the prediction of future outcomes based on other related information.
R2 value is a number between 0 and 1 and it describes how well a regression line fits a set of data.
When R2 value is near 1, this indicates that the regression line fits the data very well, while a R2 value near 0, indicates that the regression line does not fit the data at all.
This money management script calculates the R Squared of the trading system equity curve. It does so by creating the equity line time series then calculating the R Squared value of that time series on the "OnEndSimulation" event.
The R Squared or R2 value is stored under the "Statistics" tab of the simulation report.
The higher the R2 value the better the trading system equity curve. A very high R2 value should result in a profitable trading system with little drawdown.
Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.