Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
thanks. but im loolking for the sharpe ratio that uses trades as input rather than the closing prices. Im sure somebody has the code somewhere.. any pointers ?
i dont want the ratio as its usually wrong as it doesnt even ask for the risk free rate.. therefore, I would prefer to have my own code, which im sure someone must have
how are you going to apply your correct sharpe ratio into ts?
do you plan to use it as an indicator?
you will need more than the formular, you will need a way of extracting the trades from ts into the indicator.
are you going to set up a database to track the trades? eg. a 3 dimensional array? or something similar?
you might as well extract the trades into excel and calculate it there.
no i want to do it in the platform.. i dont think i multi 3d array is needed as you could store the profits by index, but im not a big coder.. thats why im asking
The formula is the easy part. It is a 2 line thing you can get it off the internet anytime.
the majority of the work is in the trades: how do you extract them and how do you keep them in an array.
it can be done, all it takes is time. A lot of time.