By adding a stop loss to your trading system, you instruct the simulator or portfolio tool to exit a position if it drops more than N% (from the buy price).
You can add a stop loss by clicking "Stop Loss" (bottom panel in "Update a trading system" form). Once it is...
No notes
|
Money Manag.
Medium
|
| |
Alexander Elder's Chandelier Exits trend-following system was first introduced in his book 'Come Into My Trading Room' in 2002. The system intends to provide better stop loss mechanisms by generating exit signals in a trending market. It includes two indicators, one used for up-trends and the other for down-trends.
Indeed, one...
No notes
|
Indicator
Medium
|
| |
This drawing tool creates a simple trend line with two additional properties:
- The line is colored Green when it is trending up and red when it is trending down
- The trend line displays its length (number of trading bars) and the sum of volume (accumulation) of the bars that occurred...
No notes
|
Drawing Tool
Medium
|
| |
This is a quick script to pull some data from portfolios and write them into a common csv file for later analysis. This should be a workaround until portfolio stats are accesible from Scripts. Then we rather pull them there and do analysis within QS, Azouz will include this in...
No notes
|
Money Manag.
Medium
Private
|
| |
Like the MACD, Relative Strength Index (RSI) and Stochastic, the ADX, Average Directional Movement, is a very popular trading indicator used by stock, FOREX and commodity traders in technical analysis. The ADX is considered to be the best technical indicator by many traders and investors.
It is a momentum indicator, such...
No notes
|
Rules
Medium
|
| |
The Safezone indicator, introduced by Alexander Elder in 2002, is used as a stop order against signal reversal in trending markets.
The Safezone stop intends to create a better trailing stop by eliminating the noise component of a trend and by creating a safer stop. It calculates two lines depending...
No notes
|
Indicator
Medium
|
| |
This item downloads historical end-of-day quotes for companies listed in the Hong Kong Stock Exchange (HKEX). The HKEX is a stock exchange based in Hong Kong, China. It is owned by the Hong Kong Exchanges and Clearing Ltd after the merger of the Hong Kong Futures Exchange and the Hong...
No notes
|
Downloader
Medium
|
| |
"GetData" is the main function that allows you to access custom databases data. It lets you retrieve an item value, from an intraday or historical database, that occurred within the current bar.
Let us say we have a custom database that contains fundamental data. One field in this database is called...
No notes
|
Indicator
Medium
|
| |
Australian stock market traders who are interested in building a fundamental database can use this item to download historical fundamental data. The data is retrieved from (ascii-data.com) website; it is available from December 2003 to July 2009. July was the last release; I don't know the reason why the website...
No notes
|
Downloader
Advanced
|
| |
The built-in "random" QuantShare function returns a random value given a min and max interval. The random number is the same for all bars. It will be no lower than "min" and no higher than "max".
The current "RandomValues" function is almost the same but instead of assigning the same...
No notes
|
Indicator
Medium
|
| |
The S&P 500 volatility ratio indicator compares the volatility of a stock with the volatility of the S&P 500 index. The ratio is calculated by taking the N-bar volatility of the analyzed stock and dividing it by the N-bar volatility of the S&P 500 index.
Here, the standard deviation is...
No notes
|
Indicator
Advanced
|
| |
The Muscat Securities Market, also known as MSM, is the main stock exchange in Oman. It is located in Muscat, the capital and the largest city of Oman, and it was founded in 1988.
The MSM is open from Sunday to Thursday; it is therefore closed on Friday and Saturday. During...
No notes
|
Symbols
Medium
|
| |
In order to reduce your investment risk you have to diversify. The problem is that many traders do not know how to put the diversification concept into practice. How do we know the number of stocks to invest in and the percentage of equity to put in each one of...
No notes
|
Money Manag.
Medium
|
| |
Historical exchange rates for Swedish Krona (SEK).
This will download historical data from 1993-today for EURSEK and USDSEK however other rates are available if so configured (see list below). Add symbol names (EURSEK, USDSEK etc.) accordingly. The downloaded data is; Daily EOD (Close), CSV, .(dot) separated.
The Swedish banks daily calculate a...
No notes
|
Downloader
Basic
|
| |
The sales, growth and estimates object downloads financial data for all stocks trading on US exchanges - NYSE, NASDAQ, AMEX, and OTCBB.
The object gets four fundamental items:
Sales Growth F0/F-1: This is the percentage growth in annual sales. It is computed by taking the difference between sales of the last...
No notes
|
Downloader
Medium
|
| |
The NYSE Index Closes item retrieves historical index closing values from the New York Stock Exchange website.
Eight indices data are downloaded by this item: (Symbols are added automatically to the Quote Database)
^NYSE_COMPOSITE: The NYSE Composite Index measures the performance of all stocks listed on the NYSE, including REITS, ADRs...
No notes
|
Downloader
Medium
|
| |
One way to discover stocks that are in a trading range and may move in one way or another in the coming days is to count the number of close and moving average crossovers over the previous days. For example, a stock that had four crossover during the last 10...
No notes
|
Indicator
Medium
|
| |
The MARSI Indicator (Also called Moving Average RSI) returns the RSI or relative strength index of a moving average and thus generates a nice smooth RSI line. This line can be used to identify trends as well as to detect good entries.
The interpretation of the MARSI indicator is the same...
No notes
|
Indicator
Medium
|
| |
This Stock News item gets articles that are about US stocks from the Stockblotter website. It downloads and parses an RSS feed for each ticker symbol and then updates and inserts the data in a new database whose name is "stockblotter_news". The database contains the following fields:
Title: The article title....
No notes
|
Downloader
Medium
|
| |
The following is a swing indicator that allows one to plot swings and various swing statistics within a chart. Note that this cannot be used for backtesting, a seperate version called swingsim (1555) may be used for that purpose.
The second parameter defines the swing threshold in points....
No notes
|
Indicator
Medium
|
| |
// RSI + SMA(200) + Hurst v001
// 2013-07-16
Inspired by Larry Connors' work on RSI(2). The system buys major ETFs on weakness [RSI(2) < 5] and sells when the recovery starts [RSI > 65]. The system is long only and trades when the price is above the 200 day moving average....
No notes
|
Trading System
Medium
|
| |
This object will do a full download of the historical analyst buy and sell recommendations available on yahoo, and store in a local database (yahoo_analyst_ratings). The rating firm, upgrade/downgrade indicator, the past rating and the current rating are all stored. In addition, the downloader contains a function that...
No notes
|
Downloader
Medium
|
| |
The "bolsamadrid.es" website provides historical end-of-day data of companies listed in the Bolsa de Madrid or the Madrid Stock Exchange. The item I have created downloads the historical end-of-day quotes of all the 157 symbols for a specific start and end date ('From' date and 'To' date).
The list of symbols...
No notes
|
Downloader
Medium
|
| |
This indicator gets a time-series, a day, a month and a year and returns the value of this time-series at the specific date (Date calculated from the provided day, month and year). The indicator name is "ValueOn" and it uses the "ValueWhen" function to return that value.
To specify an unknown...
No notes
|
Indicator
Medium
|
| |
This function calculates the high or low of a trading session within a specific period/interval. You can define a start and end time, whether to get the high and low and the function returns the last high or low that occurred during that time frame.
Example of usage:
// Calculates the high...
No notes
|
Indicator
Medium
|
| |
This function
a) provides exact Finonacci retracement and extension levels
b) allows optimization regarding different Fibonacci levels, for instance:
Optimize("fibo_index", 0, 7, 1);
var = fibonacci(fibo_index); ...
No notes
|
Indicator
Medium
|
| |
This item downloads EOD data for stocks from Tiingo website. The service covers more than 40,000 tickers including US stocks (+10,000), Chinese stocks, Mutual funds and ETFs.
What you need to do:
- Download the item and install it into QuantShare
- Select it in "Download -> Download Manager"
...
No notes
|
Downloader
Medium
|
| |
The Sharpe Ratio is the first measure I look at when analyzing and assessing a backtest results. It is a simple and quick way to measure the performance of a trading strategy.
While this ratio is often used to measure the excess return per unit of risk of an investment or...
No notes
|
Trading System
Medium
|
| |
Based on the Chaos Theory, the Fractal Market Hypothesis is an alternative to the Efficient Market Hypothesis. It assumes that each trader may interpret trading information in different ways and at different times (The Efficient Market Hypothesis assumes that all information is reflected in prices), that investors are not rational...
No notes
|
Indicator
Medium
|
| |
The advancing and declining volume or the total volume of stocks that advanced and the total volume of stocks that declined every day can be used to create several market breadth indicators. One of these indicators is called the Up/Down Volume Spread. The indicator formula is simple; it is the...
No notes
|
Composite
Medium
|
| |
This item loads and saves a list of all European holidays. As with the US holidays object (268), the data is retrieved from the InterContinental Exchange website (theice.com).
The data is downloaded from 2001 to 2012 and is saved into the following custom database: 'holidays_europe'. The symbol '^Holidays_EUROPE', which is associated...
No notes
|
Downloader
Medium
|
| |
There are many indices and ETFs you can find and follow if you want to track the Gold and Silver industry. You can also create your own composite and get more control over how to benchmark the Gold and Silver industry.
The current composite will create a new symbol "_Gold_Silver" by...
No notes
|
Composite
Medium
|
| |
Using a single (although not basic) trading rule, the current trading strategy gained more than 27% per year for the last 10 years. The strategy consists of buying falling stocks or the top five stocks with the highest decrease in price compared to the last five trading days moving average.
The...
No notes
|
Trading System
Medium
|
| |
This function utilizes the historical analyst buy/sell recommendations, downloadable from yahoo by 641, to provide the current numeric rating for a stock. Ratings provided by various firms to a standard numeric score between 5 and 1, where 5 is a strong buy and 1 is a strong sell. ...
No notes
|
Indicator
Medium
|
| |
Option contracts can be traded on several exchanges; In the United States, major options trading markets include the Chicago Board of Options Exchange, the Philadelphia Exchange, and the Pacific Exchange.
The Options Clearing Corporation collects data for the options market and report the daily volume of options contracts, put and call...
No notes
|
Downloader
Medium
|
| |
This is a list of UK symbols extracted from the following symbol list: 214. The total number of symbols is 2867. These symbols are selected because they have historical data in Google finance website. The other symbols are rejected.
To download historical data for these ticker symbols (companies listed on...
No notes
|
Symbols
Medium
|
| |
The NORMDIST function is similar to the one available in Excel. Given a set of parameters, this statistical function calculates the normal probability density function or the cumulative normal distribution function.
Here are the different parameters of the NORMDIST function:
X: The function will return the probability of the value "x" occurring.
Mean:...
No notes
|
Indicator
Medium
|
| |
This composite index calculates for each stock, its close price correlation with the close price of an index. It then averages the results and creates the Average Correlation Index, whose symbol name is "Correl_10bars".
For each trading bar and for each stock (only stocks whose close prices are above two are...
No notes
|
Composite
Advanced
|
| |
Structural Arbitrage
This strategy was implemented to verify some ideas of Harry Long I read on Seeking Alpha. It exploits different prices of long duration bonds and VIX ETFs, which can both be used as substitutions for equity hedging.
Here is the article on Seeking Alpha: http://seekingalpha.com/article/2276573-the-quant-strategy-that-returned-36-percent-ytd-with-etps#comments_header ...
No notes
|
Trading System
Basic
Private
|
| |
The DSE or Dhaka Stock Exchange is a stock exchange in Bangladesh. It is the main stock exchange and is located in Dhaka city.
The main market indices of the DSE are the DSI Index and the General Index.
The trading item gets historical EOD for stocks listed on the Dhaka Stock...
No notes
|
Downloader
Medium
|
| |