This screener uses a modified Sharpe index to identify stocks with a strong momentum. The rules are as follows:
1. screen the markets and select the strongest 20-30 stocks (the first stocks on the screener are the strongest)
2. buy those stocks position-sizing them based on the Yhang-Zhan variation of Garman-Klass volatility (indicator I posted previously) :
3. after 3 months run the same procedure and get rid of the stocks that are out of the first tier of the list and get the new entries
OR
3. hold the stocks for 1 year and then sell.
I’ve been using this portfolio for 6 years now and the average gain of the folio was excellent for me. You can improve the profit by buying at the SMA60 point.
Blue skies!!
//computation of return and volatility on annual bases
periodo=254
RitMensNoRiskTitle=0
a=log(close/close[1])
b=summation[periodo](a)
s=sqrt(254)*std[periodo](a)
//computation of modified Sharpe index
sharpe=(b-RitMensNoRiskTitle/100)/(s*s)
//launch of screener
c1 = (sharpe > 0)
SCREENER[c1] (sharpe AS "SHARPE index")
You must be logged in to post a comment.
is this " a= log(close/close[1])" better than a = ((close/close[1]) -1) *100 . I want to capture the daily returns in % ?¿?¿?¿?¿?
Hello, who can help me why the screener does not work // Der folgende Code bezieht sich auf den Zeitraum:daily TIMEFRAME(daily) indicator1 = SuperTrend[2.5,10] c1 = (close > indicator1) // Der folgende Code bezieht sich auf den Zeitraum:1 hour TIMEFRAME(1 hour) indicator2 = SuperTrend[2.5,10] c2 = (close > indicator2) // Der folgende Code bezieht sich auf den Zeitraum:15 minutes TIMEFRAME(15 minutes) indicator3 = SuperTrend[2.5,10] c3 = (close > indicator3) SCREENER[c1 AND c2 AND c3]
thanks for your screener. Do you have the code for original Sharp ratio in order to compare ? Do you have the same thing for Sortino ratio ?