- Introduction to Quantitative Trading
- Quantitative Trading - Advantages and Disadvantages
- Types of Quantitative Trading Strategies
- Momentum Strategies
- Mean Reversion Strategies
- Market Making Strategies and Day Trading Strategies
- How to Generate Trading Ideas
- Designing A Trading Strategy For Profit
- Backtesting a Trading Strategy - Considerations
- Risk Management of a Trading Strategy
- Risk Indicators - VIX Index and TED Spread
- Plotting the VIX Index and TED Spread in R
- Introduction to Quantmod in R
- Downloading Data Using Quantmod Package in R
- Creating Charts with Quantmod
- Data Analysis with Quantmod in R
- Measuring Overall ETFs Performance
- Quantstrat Example in R - EMA Crossover Strategy
- Quantstrat - EMA Crossover Strategy - Performance and Risk Metrics
- Quantstrat Example in R - RSI Strategy
- Quantstrat Case Study - Multiple Symbol Portfolio
Risk Management of a Trading Strategy
Lastly we should have rules to manage the risk of the strategy. Risk and money management are the most important aspect in a trading strategy. This field focuses on drawdowns, leverage and volatility. It is important that any trading plan contains a risk management approach to minimize drawdowns, by the use of stop loss or stop limit orders, as well as avoid days of higher volatility.
Traders and investors should have in their mind an integral plan to execute trades or enter into a new position. Within this plan, the risk management of transactions and positions is the most important feature in the long term. On many occasions, investors or traders earn great profits in bull markets but they lose all or almost all their portfolio value when a bear market starts.
Maximum Drawdown
One of the main concepts in analyzing the risk of a strategy is the Maximum Drawdown that the strategy has. The Maximum Drawdown is defined as the accumulated loss of buying an asset in their highest point and selling at their lowest point during a period of time. Drawdown in contrast, refers to the decline in value in the next period from a previous local maximum.
The Maximum Drawdown is a good measure for funds and portfolio managers to become aware of the maximum possible loss of a strategy in a certain period. The important property of the Maximum Drawdown is that its value was obtained from a real world financial series and is not originated from a model with some theoretical assumptions as many times happens.
Some risk metrics such as the Value at Risk (VaR) of a portfolio assume that the returns of the strategy are independently and normally distributed. In the real word, returns have fat tails and serial correlation, and their distribution differs from a normal distribution. The VaR doesn’t reflect the large losses during the history of the financial market.
The Calmar Ratio is a risk metric that accounts for the Maximum Drawdown of a strategy. The Calmar Ratio is defined as the compounded annualized growth rate divided by the Maximum Drawdown over the same period. Unlike the Sharpe Ratio, the Calmar Ratio cannot be scaled to different time horizons, so portfolios that use the Calmar Ratio should have the same backtesting period.
In order to develop a more realistic approach of risk management, in the past few years, new measures of risk have been proposed that focus more on the drawdowns and Maximum Drawdowns rather than the volatility or VaR. This approach takes into account the drawdown distribution which uses the drawdown (magnitude and duration) to define the loss function.
There are other methods to achieve and appropriate risk management and control risk in trading strategies that are more related with strategies based on single or a few assets. One of these methods is the Constant Proportion Portfolio Insurance (CCPI), which has the rule of adjust the order size when the strategy has a drawdown.
In case of a drawdown, the CPPI will decrease order size faster making almost impossible that the account approach to the maximum drawdown. The method controls leverage with regards to the current drawdown. If the current drawdown increases, the leverage would decrease. A drawback of this method is that it doesn’t prevent for a big drawdown during an overnight gap.
Avoiding Losses
A common method to avoid losses is the usage of a Stop Loss. The common application of the Stop Loss is to exit an existing position whenever its unrealized P&L drops below a threshold. The Stop Loss only works when the market is open. If the prices “gap” down or up when the market opens the Stop Loss order may be executed at a much lower/higher price.
Also, a Stop Loss is a safety tool either in a mean reversion or a momentum strategy. In case of a mean reversion strategy, a regime change from mean reversion to a trending behavior could cause great losses if the account doesn’t have a Stop Loss. Momentum strategies benefit from Stop Loss orders in cases of a reversion in price that could cause drawdowns in the strategy.
As we stated, the risk of a mean reversion strategy is different from the risk in a momentum strategy. This means that the stop loss order is used differently in the two approaches. In a momentum strategy the use of a Stop Loss is more straightforward as it prevents losses when prices reverse. In a mean reversion strategy the price is ranging and the Stop Loss should be greater than the maximum intraday drawdown.
Related Downloads
Data Science in Finance: 9-Book Bundle
Master R and Python for financial data science with our comprehensive bundle of 9 ebooks.
What's Included:
- Getting Started with R
- R Programming for Data Science
- Data Visualization with R
- Financial Time Series Analysis with R
- Quantitative Trading Strategies with R
- Derivatives with R
- Credit Risk Modelling With R
- Python for Data Science
- Machine Learning in Finance using Python
Each book includes PDFs, explanations, instructions, data files, and R code for all examples.
Get the Bundle for $39 (Regular $57)Free Guides - Getting Started with R and Python
Enter your name and email address below and we will email you the guides for R programming and Python.