This is a trading item or a component that was created using QuantShare by one of our members.
This item can be downloaded and used by QuantShare Trading Software.
Trading items are of different types. There are data downloaders, trading indicators, trading systems, watchlists, composites/indices...
You can use this item and hundreds of others for free by downloading QuantShare.
Top Reasons Why You Should Use QuantShare:
Works with US and international markets (stock, forex, options, futures, ETF...)
Offers you the tools that will help you become a profitable trader
Allows you to implement any trading ideas
Exchange items and ideas with other QuantShare users
Our support team is very responsive and will answer any of your questions
We will implement any features you suggest
Very low price and much more features than the majority of other trading software
For Free - No Credit Card Required
Multiple Time Frames Trading System - Price / Moving Average Crossover
Here is a strategy I created to show you how to use multiple time frames in a trading system. The system is based on price crossover with its 10-Bar simple moving average. Although, no optimizations at all were done, the trading system has generated an annual return of 26.14%. It has a drawdown of -17.76%, a Sharpe ratio of 1.74, a Sortino ratio of 2.59 and 51.4% of the trades generated a profit (1205 trades). The backtest was based on U.S. Stocks (daily data - 2001-2011).
Trading System:
- Maximum Positions: 10
- Buy at tomorrow open
Here are the different buy rules:
- Liquidity: Price above $2 and the average daily volume in dollars is above $600,000.
- Daily time-frame: Price crosses above its 10-Bar moving average
- Weekly time-frame: Last weekly close price crosses above its 10-Bar moving average
- Monthly time-frame: Last monthly close price crosses above its 10-Bar moving average
Here is the exit/stop rule:
- Trailing stop at 5%
The crossover rule is performed using the "cross" function. To get the weekly crossover, I have used the "TimeframeApply" function. This function changes the current time frame then applies the provided variable/rule. It returns a compressed time-series (This means that the time-series is not adjusted to the current data/dates). The "TimeframeDecompress" adjusts this time-series to the current time frame. The easiest way to see how it works is to display the data on a chart.