Modified SHARPE index

Modified SHARPE index

This modified SHARPE index indicator will be the base for a strategy I will publish after. The SHARPE index is simply a way to relate profits with volatility that was created in 1966. The higher the number the more “efficient” the title is. In my indicator, instead of using the simple volatility at the denominator (standard deviation) I used the volatility squared to give a slight better ramp to the curve and a better and more precise entry.

The Sharpe Ratio is a measure for calculating risk-adjusted return, and this ratio has become the industry standard for such calculations. It was developed by Nobel laureate William F. Sharpe. The Sharpe ratio is the average return earned in excess of the risk-free rate per unit of volatility or total risk. Subtracting the risk-free rate from the mean return, the performance associated with risk-taking activities can be isolated. One intuition of this calculation is that a portfolio engaging in “zero risk” investment, such as the purchase of U.S. Treasury bills (for which the expected return is the risk-free rate), has a Sharpe ratio of exactly zero. Generally, the greater the value of the Sharpe ratio, the more attractive the risk-adjusted return.
Read more: Sharpe Ratio http://www.investopedia.com/terms/s/sharperatio.asp#ixzz4t6Rh7t00 

Blue skies!!

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. jebus89 • 09/19/2017 #

    Maybe a stupid question but im getting syntax error, the following variable is undefined: Periodo. How to fix this?

    • JanWd • 09/19/2017 #

      add it as a default variable, to be found on top if you make the indicator
      Kind regards, Jan

  2. guillermus69 • 09/19/2017 #

    is not better to change this “a=log(close/close[1])” into this ? a= ((close / close [1]) -1 ) *100 ?? to get the daily % changes ??

  3. JanWd • 09/19/2017 #

    Dear Gabri,

    could you explain why you have used “RitMensNoRiskTitle” ?
    In the formula [ sharpe=(b-RitMensNoRiskTitle/100)/(s*s) ] it does nothing as far as I can see ( return RitMensNoRiskTitle always give always a zero value)

    Thanks in advance for your information.
    Kind regards, Jan

  4. gabri • 09/19/2017 #

    JanWD,
    in the original sharpe formula (made for portfolios) this is the return for a no-risk investment (they used to put the value of a ten years bond return). This days you can use also the return of a bond or you can use 0 to make the formula disconnected from it.

  5. christophe11560 • 09/19/2017 #

    salut gabri,
    Je n’ai pas de commentaire sur “s*s”, c’est ton choix personnel.
    Je me posais la question sur “sqrt(254)”. En principe, le code devrait être sqrt(periodo) puisque tu somme les rendements sur périodo.
    Pourrais tu m’expliquer l’utilité de cette modification du principe de calcul sharpe original?

    bien à toi

    • gabri • 09/19/2017 #

      Hi, the SQRT(254) it is used to annualize the value. In terms of the “s*s” I just used the standard formula you can find anywhere (also here https://www.google.com/search?q=sharpe+ratio+formula&oq=sharpe+ratio+formula&aqs=chrome..69i57j0i512l8j0i390.6865j0j7&sourceid=chrome&ie=UTF-8). In my formula the expected return ( E[Rb – Ra]) is just computed using the past return in a specific period of time (past return computed using daily value, hence the need to multiply by SQRT(254). I hope this answer your question

  6. christophe11560 • 09/19/2017 #

    Merci pour ton retour

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Bard Problems with Safari latest s/ware and this site and links and adding code. Let me add the...
grimweasel47 Ok thanks Nicolas - could this be adapted to take into account MFI and then have price, volu...
Nicolas I don't understand what you mean exactly, would be better to open a topic about this idea wi...
jissey Bonjour Bolsatrilera,j'essaie de vous contacter pour le cm rsi ;je le trouve interessant, m...
jissey J'essaie de vous contacter pour l'indicateur"cm rsi"....
joobeng Sorry, I solved the problem. I have add the CBL indicator using the spanner icon on the pric...
Nicolas Adjust the price settings for the Y Axis to use the price only.
XXXXVII Hello Your indicator is interesting. However, I can't see the orange line. Do you have ...
jebus89 Big thanks for sharing this :) Seems to work as expected, good stuff.
flodefacebook Merci Nicolas pour cet indicateur. Très utile dans une technique de retournement.
HeikinAshi thank you for this very interesting indicator Nicolas! did you define a tradable setup fo...
simoneb ciao Gabri, potresti il modo più efficace per selezionare il paniere di 20-30 titoli su cui ...
gabri Simoneb, puoi creare uno screener che cerchi i titoli con un modified sharpe index inferiore...
gabri Dimenticavo, i titoli che performano meglio sono quelli che crossano la linea dello zero (o ...
guillermus69 is this " a= log(close/close[1])" better than a = ((close/close[1]) -1) *100 . I ...
gildaslm Hi gabri, thanks very much for your work, it helps me a lot. Have you ever tried to make the...
gandolfi thanks for your screener. Do you have the code for original Sharp ratio in order to compare ...
Abz Thanks gabri
Mattzi In your opinion is less than 20 stocks a bad idea? Thank you.
gabri No, you can pick as many or as little as you want. The portfolio composition depends on many...
xel Hi! I found myself that the indicator posted here contain an error, I want to edit or fix i...
Lotech123 Thanks for this indicator. Working on a 3 M timeframe with the DJI, it can produce some inte...
JSTAR PRODUCTIONS Hi there, I downloaded the Indicator but the indicator does not show up on my charts. Am...
JSTAR PRODUCTIONS Hi, Worked it out. Thanks
poonsl2828 Hi! Francesco I have test it on GBP/USD but it only have a trade on 9 Jun which i backtes...
ullle73 why not use 1h chart? has 95% hitrate
ullle73 i see most of positions are only 1 pip before exit?
Francesco78 Hi Pepmartorell, please let's continue the discussion on the forum thread so that we can sha...
Francesco78 Hi Pepmartorell, please let's continue the discussion on the forum thread so that we can sha...
Jusmih1 Hi there, i am looking at your Strategy however when you put in automatic trading mode its ...
bruces Hi. Thank you that is what I am looking for. As well as the chart, I want to also add to a...
Jodal Bonjour Nicolas, Merci pour cet indicateur! Est-ce possible de configurer une alerte pou...
Nicolas Merci pour le post dans le forum en respectant les règles de publication énoncées dans le ca...
Dron De lo mejorcito
fabio407 Thanks, Nicolas. Very useful. Would you tell me where to find what result conveys the functi...
Nicolas This is not an instruction of the programming language but a variable from this indicator (l...
fabio407 OK. I didn't notice it. Many thanks, Nicolas!
Wilko And not only readable.... makes it much easier to iterate different entry/exit-conditions, d...
IGOSNELL Hi Interesting strategy, when I used $ M-R Dif EURUSD M15 Long if does not enter any positi...
ilvillans HI, I modified the system, from good results but from this error: Replace the variables wit...

Top