5. [1] Murphy, John J. Technical analysis of the financial markets: A comprehensive
guide to trading methods and applications. Penguin, 1999.
[2]丁鹏. 量化投资: 策略与技术. 電子工業出版社, 2012.
[3] “Introduction toTechnical Indicators and Oscillators”
(http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:
introduction_to_technical_indicators_and_oscillators)
a) For historical constituent lists of the S&P 500,go toWRDS.
b) For historical stock prices of our stock pool, we download data from
http://finance.yahoo.com/ by Python.
c) To realize the purpose of Dollar Neutral, we use IVV (iShares Core S&P 500)
to hedge.
5
8. RSI compares the average price
change of the advancing periods
with the average change of the
declining periods. Early signaling
for entry and exit is the main
benefit of RSI.
A leading indicator is thought to be
the strongest during periods of
sideways or non-trending trading
ranges, while the lagging indicators
are regarded as more useful during
trending periods.
MACD Line: (12-day EMA - 26-day EMA)
Signal Line: 9-day EMA of MACD Line
MACD Histogram: MACD Line - Signal Line
RS: N days’ AveGain/N day’s Ave Loss
RSI: 100-100/(1+RS)
9. MACD Line: (12-day EMA - 26-day EMA)
Signal Line: 9-day EMA of MACD Line
MACD Histogram: MACD Line - Signal Line
RS: N days’ AveGain/N day’s Ave Loss
RSI: 100-100/(1+RS)
Long Signal:
1. MACD line > 0 And
2. MACD Histogram > 0
Short Signal:
1. MACD line < 0 And
2. MACD Histogram < 0
10. MACD Line: (12-day EMA - 26-day EMA)
Signal Line: 9-day EMA of MACD Line
MACD Histogram: MACD Line - Signal Line
RS: N days’ AveGain/N day’s Ave Loss
RSI: 100-100/(1+RS)
When to Close a Position?
If Long:
1. RSI(-1)>Critical Value AND
RSI(0)<Critical Value; OR
2. MACD Histogram < 0
11. MACD Line: (12-day EMA - 26-day EMA)
Signal Line: 9-day EMA of MACD Line
MACD Histogram: MACD Line - Signal Line
RS: N days’ AveGain/N day’s Ave Loss
RSI: 100-100/(1+RS)
When to Close a Position?
If Long:
1. RSI(-1)>Critical Value AND
RSI(0)<Critical Value; OR
2. MACD Histogram < 0
12. MACD Line: (12-day EMA - 26-day EMA)
Signal Line: 9-day EMA of MACD Line
MACD Histogram: MACD Line - Signal Line
RS: N days’ AveGain/N day’s Ave Loss
RSI: 100-100/(1+RS)
Long Signal:
1. MACD line > 0 And
2. MACD Histogram > 0
Short Signal:
1. MACD line < 0 And
2. MACD Histogram < 0
13. MACD Line: (12-day EMA - 26-day EMA)
Signal Line: 9-day EMA of MACD Line
MACD Histogram: MACD Line - Signal Line
RS: N days’ AveGain/N day’s Ave Loss
RSI: 100-100/(1+RS)
When to Close a Position?
If Short:
1. RSI(-1)<Critical Value AND
RSI(0)>Critical Value; OR
2. MACD Histogram > 0
14. MACD Line: (12-day EMA - 26-day EMA)
Signal Line: 9-day EMA of MACD Line
MACD Histogram: MACD Line - Signal Line
RS: N days’ AveGain/N day’s Ave Loss
RSI: 100-100/(1+RS)
When to Close a Position?
If Short:
1. RSI(-1)<Critical Value AND
RSI(0)>Critical Value; OR
2. MACD Histogram > 0
28. Graphically:
During every year, 95%VaR and 95% ES of strategy both are lower than SP500.
95%VaR and 95% ES together perfectly help us to control for extreme and tail loss
28