NexusFi: Find Your Edge


Home Menu

 





Sharpe Ratio Code


Discussion in TradeStation

Updated
      Top Posters
    1. looks_one onava with 5 posts (0 thanks)
    2. looks_two Bimi with 3 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 creasy with 1 posts (0 thanks)
    1. trending_up 4,116 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 9 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
onava
London/England, Zurich/Switzerland
 
Posts: 20 since Apr 2012
Thanks Given: 2
Thanks Received: 1

Hi All,

Does any body have any sharpe ratio code for tradestation?

would be appreciated ,

thanks,


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Strike Pause Holds, Oil Erases Monday Spike -- May CPI W …
Traders Hideout
Election Sunday Resolves: Peru Heads to Runoff at 42pct, …
Prediction Markets & Event Contracts
CME Cuts Precious Metals Margins Up to 21% Starting Toda …
Commodities
Post-Summit Market Verdict: ES -1%, NQ -1.5%, 10-Year Yi …
Traders Hideout
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 thanks
  #3 (permalink)
 
creasy's Avatar
 creasy 
Cleveland, OH
 
Experience: Advanced
Platform: NT, ToS
Trading: Index Futures
Posts: 19 since Apr 2011
Thanks Given: 57
Thanks Received: 9


I'm not sure if it's exactly what you're looking for, but I found this:

Sharpe Ratio Indicators and Functions for Tradestation


Reply With Quote
  #4 (permalink)
onava
London/England, Zurich/Switzerland
 
Posts: 20 since Apr 2012
Thanks Given: 2
Thanks Received: 1

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 ?


Reply With Quote
  #5 (permalink)
Bimi
London
 
Posts: 118 since Mar 2010
Thanks Given: 42
Thanks Received: 58


onava View Post
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 ?

Go look in the trade performance report, it is already calculated.


Reply With Quote
  #6 (permalink)
onava
London/England, Zurich/Switzerland
 
Posts: 20 since Apr 2012
Thanks Given: 2
Thanks Received: 1


Bimi View Post
Go look in the trade performance report, it is already calculated.

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


Reply With Quote
  #7 (permalink)
Bimi
London
 
Posts: 118 since Mar 2010
Thanks Given: 42
Thanks Received: 58


onava View Post
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.


Reply With Quote
  #8 (permalink)
onava
London/England, Zurich/Switzerland
 
Posts: 20 since Apr 2012
Thanks Given: 2
Thanks Received: 1


Bimi View Post
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


Reply With Quote
  #9 (permalink)
Bimi
London
 
Posts: 118 since Mar 2010
Thanks Given: 42
Thanks Received: 58


onava View Post
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.


Reply With Quote
  #10 (permalink)
onava
London/England, Zurich/Switzerland
 
Posts: 20 since Apr 2012
Thanks Given: 2
Thanks Received: 1



Bimi View Post
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.

done it now..


Reply With Quote




Last Updated on December 5, 2012


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts