The CBOE DJIA BuyWrite Index and the CBOE NASDAQ-100 BuyWrite Index are benchmark indices that track the performance of an hypothetical buy-write strategy that buys stocks in the Dow Jones Industrial Average (CBOE DJIA BuyWrite Index) or in the NASDAQ 100 (CBOE NASDAQ-100 BuyWrite Index) and sells or writes DJX...
No notes
|
Downloader
Medium
|
| |
The Annual Return function calculates the trailing annual return of a security. This means that for each bar, the function returns the annual return based on its previous data.
The calculation starts after the first 50 bars. This is because for first bars, annual return time-series would be very volatile.
To...
No notes
|
Indicator
Basic
|
| |
Stocks that outperform the market are more likely to increase in the future that stocks that are lagging and performing worse than the market.
Outperforming stocks carry also higher risk and we should be particularly careful when entering positions in one of these stocks. Many reasons could explain why...
No notes
|
Screen
Medium
|
| |
This indicator returns the percent of time a security spent trading above a certain moving average. You just have to specify the lookback period and the moving average period and the indicator will calculate the number of bars where the security traded above its N-bar moving average and divide that...
No notes
|
Indicator
Medium
|
| |
This function computes the correlation of daily returns of a stock to the daily returns of a portfolio of stocks.
If we hold a portfolio of AAPL and IBM and we want to check the correlation of GE to our portfolio for the past 100 days, we would use:
corel=CorellationToPortfolio("GE","AAPL,IBM",100);...
No notes
|
Indicator
Advanced
|
| |
A money management script that splits trading orders and executes these split orders on different dates.
The money management first updates the percentage of capital invested of the trading strategy. It then detects buy orders and saves the number of traded shares. Because we have updated the percentage of capital...
No notes
|
Money Manag.
Medium
|
| |
Advance/decline/unchanged issues are measures of the number of stocks or securities whose price has advanced, declined or remained unchanged. The data comes from stock market exchanges as with the advancing/declining/unchanged volume and the 52-week highs and lows which can be downloaded here (151 and 134).
This item downloads historical data for...
No notes
|
Downloader
Medium
|
| |
This script is simulating a trailing stop limit buy/sell order with exact levels.
With the first parameter you can adjust the distance of the limit entry in percent based on the last high (long order) or low (short order) and with an second parameter you can setup the valid time of...
No notes
|
Money Manag.
Medium
|
| |
The CBOE Options Issues Traded data contains the number of options issues traded on the Chicago Board of Exchange. This includes put and call options for all US equities. From January 2009 to present, the CBOE Options Issues Traded time series had a maximum value of 47,464, which occurred May...
No notes
|
Downloader
Medium
|
| |
This item downloads seasonally adjusted 4-Week moving average of Initial Jobless Claims from the U.S. Department of Labor: Bureau of Labor Statistics. The data starts from 1967 to present and is updated weekly. The symbol associated with this time-series is '^Initial_Jobless_Claims'.
The Initial Jobless Claim is an important economic indicator that...
No notes
|
Downloader
Medium
|
| |
Returns a sub- string from a larger string that contains comma separated string values, at the nth comma position (starting at 0)
ex1:
tickerList="IBM,AAPL,SPY,TLT";
strCommaExtract(tickerList,3) returns "TLT"
...
No notes
|
Indicator
Basic
|
| |
These masks uses some formulas to determine how far is the time-series current value from its high and low of the x preceding bars.
The first mask calculates the distance in percentage between the time-series and its high, while the second use the same calculation but for the low.
The last one...
No notes
|
Rules Mask
Medium
|
| |
Every trading system you develop must be thoroughly tested to ensure that it is robust enough to continue outperforming the market in the future. One of these tests consists of changing the simulation or backtest start date and verifying that this doesn't affect the strategy performance. By changing the start...
No notes
|
Money Manag.
Medium
|
| |
The Gap composite is a market breadth indicator that measures and compares the number of stocks that gapped up and those that gapped down. This market indicator calculates, for each trading bar, the average of the gap difference formula of all stocks in the universe. The Gap difference formula...
No notes
|
Composite
Medium
|
| |
The Bloomberg U.S. Financial Conditions Index is a measure of the number of standard deviations (z-score) the current financial conditions are above or below the average index value for the period of June-1994 to 2008. The index is calculated using yield spreads and indices from the Equity, Bond and Money...
No notes
|
Downloader
Medium
|
| |
The portfolio versus stock return item is a money management script you can include in any trading system.
Here is how it works:
For each incoming new position, it calculates the N-bar return of that stock and compares it with the N-bar return of the portfolio (equity).
The new position is taken only...
No notes
|
Money Manag.
Advanced
|
| |
The drawdown measures the decline of a time-series from an historical peak; generally the drawdown is used to analyze portfolio equities.
The maximum drawdown will then let you know how much money a portfolio has lost (or the maximum portfolio value decline) during the investing/backtesting period and therefore the drawdown...
No notes
|
Indicator
Medium
|
| |
Get stock market prediction (US markets) picks from traderbots website.
The traderbots website has an army of trading systems that generate signals for stocks that trade in the US stock market, the trading systems that are used perform stock analysis using algorithms and artificial intelligence according to the traderbots website.
For...
No notes
|
Downloader
Medium
|
| |
The Guppy Multiple Moving Average is a technical analysis trading indicator developed by Daryl Guppy and explained in his Trend Trading book. The Guppy MMA uses multiple exponential moving averages to determine whether outlook of short-term traders agrees with the outlook of longer-term traders or investors and thus identifies change...
No notes
|
Indicator
Medium
|
| |
Say you have a strategy that invests in 5 ETFs and you would like to set manually the weight of each security. By default QuantShare allocates an equal amount of money to each position so if you have 5 allowed positions in your trading system, each ETF will get 20%...
No notes
|
Money Manag.
Medium
|
| |
This Currency trading news item retrieves an RSS feed from the financial yahoo website, parses the feed and adds the data in a database whose name is "yahoo_news". The intraday database contains the following fields:
Title: The Forex news title
Category: The Forex news provider
Once the data is stored you can...
No notes
|
Downloader
Medium
|
| |
The 'calcB' function is used by the standard error bands function to calculate the beta linear regression coefficient. It is multiplied by the sum of the close price over the calculation period multiplied by the current bar and then subtracted from the sum of the square of the close price...
No notes
|
Indicator
Medium
|
| |
The National Commodity and Derivatives Exchange, NCDEX, is an online multi commodity exchange located in India; its headquarters are based in Mumbai.
The NCDEX was established on 2009 and it is the largest commodities exchange in India. The exchange is a public limited company regulated by the Forward Markets Commission.
The NCDEX...
No notes
|
Symbols
Medium
|
| |
This market composite returns the number of industries that advanced minus the number of industries that declined. It stores the composite time series in the following ticker symbol: _INDUSTRY_ADVANCEDECLINE
The composite gets all industry symbols and computes the one-day return for each one. It then adds the ones that have advanced...
No notes
|
Composite
Medium
|
| |
During a non-trending period, the price of an asset usually crosses above and below its moving average several times in a short period. The power of the bulls is almost equal to that of the bears. The more crossovers occurring between the price and the moving average the more the...
No notes
|
Trading System
Medium
|
| |
The federal funds effective rate is the weighted average of rates on trades between brokers. As a simple example, if a borrowing bank A pays 5% to a lending bank B to borrow funds and on the same day a bank C pays 4.5% to a lending bank E to...
No notes
|
Downloader
Medium
|
| |
This object downloads Forex news from the XE website. XE is a provider of Internet foreign exchange tools and services; the company provides news for the following currencies U.S. Dollar (USD), Euro (EUR), Pound Sterling (GBP), Japanese Yen (JPY), Canadian Dollar (CAD), Australian Dollar (AUD) and Swiss Franc (CHF). Historical...
No notes
|
Downloader
Medium
|
| |
The bulls and bears strategy is based on the bull and bear power indicators.
This long/short strategy goes long when the following conditions are met:
- Security increased for at least three consecutive bars (bullish)
- The bull power indicator is increasing and its value is positive
...
No notes
|
Trading System
Medium
|
| |
Detect 'excessive' recent up gap. A 'true' indication is returned when the close is above the previous high by a specified amount over the specifed recent number of bars.
The detection gap and the lookback period are parameters. In addition, the code can be treated as a 'stepping-off point' for making...
No notes
|
Indicator
Basic
|
| |
Two years ago, I have created a stock market news downloader that gets news data for U.S stocks from an RSS feed provided by Google.
This item downloads the last 10 news items and stores them in a custom database whose name is "google_news". You can get this trading item here...
No notes
|
Downloader
Medium
|
| |
------------------------------------------------------------------------
------------------------------------------------------------------------
This item no longer works.
You can use the following downloader instead: 463 ...
No notes
|
Downloader
Medium
|
| |
This downloader is based on the QuantShare blog post: Getting Accurate Backtesting Results: Survivorship bias-free S&P 500
It allows you to create a survivorship bias-free database of several indices. It downloads historical composition of an ETF that tracks an index then creates a custom database by assigning the value "1"...
No notes
|
Downloader
Medium
|
| |
This downloader creates a symbol (^BANKHOLIDAY) as well as a custom database (bank_holidays). It then downloads a file that contains a list of bank holidays dates until 2020.
In fact, the data contains more than the bank holiday dates, it contains the date of each holiday, the holiday name, the holiday...
No notes
|
Downloader
Advanced
|
| |
This market indicator returns the number of stocks upgraded by analysts minus the number of stocks downgraded. A stock upgrade occurs when an analyst increases the investment rating of a company. An upgrade often happens when the company financials and fundamentals show improvements.
Analyst downgrades or upgrades data is retrieved using...
No notes
|
Composite
Medium
|
| |
This Forex indicator is almost the same as 554. It calculates the percentage of economic releases that are better than expected for a country. The difference is that this trading indicator doesn't take into account economic releases that have no forecast value.
Using the example provided here 554. This indicator will...
No notes
|
Indicator
Medium
|
| |
Percent Above Average Yield:
This function calculates the percent difference of a stocks current dividend yield and its average yield (over the period you set). To work, this indicator needs data from 93. That is just for stocks in the US market. Other markets may require other objects....
No notes
|
Indicator
Medium
|
| |
Convert a text/string to a numeric value.
For example, if you have a numeric data stored in a text field such as Name1, Name2... and you want to use this in a QuantShare formula, you can use this function to do so:
a = ToNumeric(Name1());
...
No notes
|
Indicator
Medium
|
| |
With three simple moving averages and a list of stocks that compose a market, group, index or sector, the Moving Average Trends is a market breadth indicator that results from a simple calculation on a group of stocks.
First of all, for each stock, the market indicator calculates a short, intermediate...
No notes
|
Composite
Medium
|
| |
After a backtest, this trading system generated an average annual gain of 22.79%. The strategy Sharpe ratio for all period (2001-2011) is 0.77 and only 24.02% of trades were winners. Among the 11 years tested, only four showed a small negative return.
Here are the trading system settings:
- Number of...
No notes
|
Trading System
Medium
|
| |
This trading indicator is based on the QuantShare "AutoSR" function, which is a function that automatically calculates support and resistance levels based on a given set of parameters.
The difference between the build-in "AutoSR" function and the current one ("SRSeries") is that the former calculates support and resistance levels based on...
No notes
|
Indicator
Advanced
|
| |