This screener script makes it relatively quick and painless to apply splits to securities.
The script uses the QuantShare custom Splits database to display
the splits that have occurred (or are expected to occur) over a user-defined number of bars.
Enter the number of bars to use to identify splits in the...
No notes
|
Screen
Basic
|
| |
The following function references a previous element in a time-series/vector.
This function is similar to the "ref" built-in QuantShare function but allows you to use "string/text" variables instead of numeric variables.
Example 1:
date1 = refString(date(), 1);
...
No notes
|
Indicator
Medium
|
| |
Correlation matrix of 41 major ETFs. Correlations higher than 0.8 are shown in red, between 0.5 and 0.8 in yellow, and under 0.5 are in green.
Requires daily data for the following ETFs:
ACWI, DBA, DIA, DUST, DXD, EFA, EWA, EWG, EWH, EWJ, EWM, EWP, EWQ, EWS, EWT, EWU, EWW, EWY,...
No notes
|
Medium
|
| |
This money management script defines a "Ratio Cash" variable that is used to set the percentage of capital to invest in equities. The rest of the capital remains in cash.
If "Ratio Cash" is equal to 20 then 80% (100-20) will be invested into equities (at least available for buying/shorting securities).
The...
No notes
|
Money Manag.
Advanced
|
| |
This is the Maximum Intraday System Drawdown money management script.
...
No notes
|
Money Manag.
Medium
|
| |
Maximum Adverse Excursion (MAE) and Maximum Favorable Excursion (MFE) for individual trades are available under the "Trades" and "MAE/MFE" tabs of the trading system report.
The current money management script calculates the MAE and MFE for the whole trading system.
The calculation is based on the highest/lowest portfolio equity compared to...
No notes
|
Money Manag.
Medium
|
| |
Floor Pivots for Intraday Trading
Based on:
http://www.quantshare.com/item-995-floor-traders-pivots&kbaseid=item-995-2755-1542
...
No notes
|
Rules
Medium
|
| |
This downloader is an update and extension of Tom Huggens' Permabear Sentiment Index downloader (Object 726: http://www.quantshare.com/item-726-permabear-sentiment-index) and related downloaders,
and is based on that as well as code/discussion etc from Stack Overflow (maybe especially http://stackoverflow.com/questions/4986758/oauth-google-trends-download-csv-file) and possibly other sources (C# doc., etc).
The general idea is that we can download weekly...
No notes
|
Downloader
Medium
|
| |
When added to a trading system, the following money management automatically opens an excel document and exports the equity data when the simulation/backtesting ends.
Before using it, open the money management script using "Tools -> Advanced Money Management Script -> Load".
Select "Global" event, click on "Menu" at the bottom then select...
No notes
|
Money Manag.
Medium
|
| |
This function allows you to transform numbers from the following format (example: 1000000) to the following one (1,000,000). The value returned is a string (text).
Here is an example that allows you to plot volume separated by commas:
First remove the default "Plot(volume.." line your formula (Right click on a chart then...
No notes
|
Indicator
Basic
|
| |
NOTE: Updated 01/25/2014. See Note 3 below. Thanks to Zoidberg, many thanks.
This EOD(end of day data, no intraday data) downloader can be used to download all data sets from the Quandl.com website. They have more than 8 million global data sets available, so get busy!
Visit http://www.quandl.com/country-index for complete listing for...
No notes
|
Downloader
Medium
|
| |
This downloader gets EOD data for several Forex pairs.
The data is downloaded for several years (+20 years).
Here is the list of Forex pairs that you can get with this item: ...
No notes
|
Downloader
Medium
|
| |
This downloader gets EOD continuous data for several futures contracts.
The data is downloaded for several years (+20 years).
Here is the list of futures that you can get with this item (58 symbols): ...
No notes
|
Downloader
Medium
|
| |
Intraday RSI multitimeframe rules based based on intraday data.
There are 4 basic rules:
2 HOURS RSI >x
...
No notes
|
Rules
Basic
|
| |
This function creates a chart with different plots usefull for asset allocation / rotation systems as an update to 1005 :
1. Pane: Relative performance of assets indexed dynamically to first visible date on chart, e.g. changes when scrolling chart
2. Pane: Trend indicator of different assets based on custom indicator and...
No notes
|
Indicator
Medium
|
| |
Update to 1005 to pull watchlist symbols and visible startdate of chart through global variables.
Use this or similar formula in your chart pane:
...
No notes
|
Indicator
Medium
|
| |
The Chi-Squared is a widely used statistical hypothesis test to determine whether observed results are significantly different from expected results or not.
In trading, we can use the Chi-Squared test to determine how meaningful or statistically significant the performance that follows a specific pattern is.
Let us for example say that...
No notes
|
Indicator
Advanced
|
| |
This staggered entry money management strategy lets you enter a certain number of shares when the buy rule is met and the rest of the shares when the position increases by a specific percentage.
For example, we can define the following strategy:
Enter long 60% of shares when the stock crosses its...
No notes
|
Money Manag.
Advanced
|
| |
This trading system is quite simple.
- The script is looking to see if today's close is the higher high in the last 50 days.
- When it is it compares the breakout and the lowest close of the 14 days trading channel are not more than 7% to limit...
No notes
|
Trading System
Medium
|
| |
This trading system is an example of an intraday trading system that selectively trades different stocks/securities every day.
Here is how the strategy works:
- Stocks are ranked based on their daily return ...
No notes
|
Trading System
Advanced
|
| |
This function automatically draws lines for non-closed gaps; - both gap down and gap up. It takes one parameter named "LookingBack" that indicates the numbers of bars to backward scan, e.g. 100 means that the function scans 100 bars backward from last bar. If the parameters is set to zero,...
No notes
|
Indicator
Medium
|
| |
This table displays the number of symbols in the watchlists you specify.
It has two columns:
Watchlist: Specify the watchlist name here
Nb Symbols: Gets the number of symbols in the specified watchlist
...
No notes
|
Basic
|
| |
The turn of the month effect on stock indexes states that stock prices performs better on the first three days and the last four days of each month. The idea is based on several academic papers such as the Equity Returns at the Turn of the Month, Further Evidence on...
No notes
|
Trading System
Medium
|
| |
The current function retrieves data from the quotes or a custom database then performs a calculation on the different values that occurred within each analyzed bar.
Here is an example:
Imagine you are working with monthly data and you want to return the average close price (daily data) for each monthly bar....
No notes
|
Indicator
Advanced
|
| |
This function allows you to enter several criteria (segments) and an index. It then calculates the result of the segment referenced by the index.
Let us say that for example, you want to create two segments:
Overbought Stocks
Oversold Stocks
...
No notes
|
Indicator
Medium
|
| |
The built-in "GetData" function allows you to retrieve data from a custom database (fundamental, news, sentiment, put/call ratio...). It gets data for the last field's value that occurred during each trading bar.
Imagine you have a volume field (daily data) and you want to display the volume's sum in a...
No notes
|
Indicator
Advanced
|
| |
Here is how this technical analysis indicator works:
- Calculates support and resistance for each trading bar (support and resistance are calculated based on the period you provide and using the "AutoSR" function of QuantShare)
- Detects whether a security breaks its support or resistance
- Returns the percentage of increase (one bar)...
No notes
|
Indicator
Advanced
|
| |
This money management script allows you to add a trailing stop to your trading strategy AFTER a condition is met. For example, the script will allow you to set a 2% trailing stop after RSI(2) > 70.
The script accepts two inputs from the user: the condition to evaluate, and...
No notes
|
Money Manag.
Medium
|
| |
Here is a very simple money management script that shows you how to buy a fixed number of shares instead of a number of shares determined by the available cash (default money management sizing method).
In order to use this script, simply add it to your trading system. Later, when selecting...
No notes
|
Money Manag.
Medium
|
| |
This function calculates the number of days between today (current bar's date) and the specified date.
The date you should specify must follow this format: Month/Day
Example of use: ...
No notes
|
Indicator
Medium
|
| |
This simple indicator converts a number of seconds (Intraday) to the equivalent number of bars given the analyzed data.
For example, let us say you want to calculate the return of a stock in the last hour.
If you are working on a one-minute chart, you can type:
...
No notes
|
Indicator
Basic
|
| |
This item downloads extensive fundamental data. It gets quarterly fundamental data for all U.S. stocks and for the past 20 years.
More than 200 fundamental fields are downloaded, including income statement data, balance sheet data (assets, equity and liabilities) and cash flow statement data (from operating, investing, financing activities) and various...
No notes
|
Downloader
Advanced
Private
|
| |
This indicator checks a specific condition using different time frames. First of all, it will check if your condition is met in the daily period. After that it will verify the condition using weekly period then monthly period.
For example, if you type:
a = IsMet3("rsi(14) > 80"); ...
No notes
|
Indicator
Advanced
|
| |
The Exit Postition Based on Profitability money management script is used to exit an open position if X% profit has not been achieved after Y number of bars.
The values for the profit threshold (X) and the number of bars (Y) are configurable using the money management variable inputs screen....
No notes
|
Money Manag.
Medium
|
| |
If you want to calculate the return of a time series (example: stock's price) since a specific event or condition occurred then you can download this function and use it as follows:
Example 1: Stock return since the beginning of the year
cond = year() != ref(year(), 1); ...
No notes
|
Indicator
Medium
|
| |
Here is a trading indicator to calculate the Jensen index or alpha of a particular security. When evaluating the return of a security or a fund, it is important to take into account the risk. The alpha indicator helps you achieve this by measuring risk premiums in terms of beta....
No notes
|
Indicator
Advanced
|
| |
The Trend Trigger Factor Indicator is similar to the RSI Indicator. This indicator was originally used to trade and and analyze price movements in the stock exchange and commodities market.The TTF is used as a trend identification indicator. It uses an n number of price periods to calculate the direction...
No notes
|
Indicator
Medium
|
| |
The plurality index is a market breadth indicator based on the number of advancing and declining issues. These numbers must be downloaded first before using this indicator: 159. Note that the plurality index uses two ticker symbols created by the previous downloader: ^ADVANCE-ISSUES-NYSE and ^DECLINE-ISSUES-NYSE.
The plurality index is always positive...
No notes
|
Indicator
Medium
|
| |
I had the QuantShare development team build this advanced money management (AMM) script to allow testing of several advanced rebalancing options triggered when a new buy signal is received but insufficient margin is available to take the new position.
When a new buy signal is received and insufficient margin is...
No notes
|
Money Manag.
Advanced
|
| |
This is an enhancement from the "1327" MM script. This version has many calculation bug fixes and adds the following:
Four inputs:
1) # Tr Rolling R - the number of trades to use in rolling R/SQN calculation
2) Include Dividends - flag to indicate whether to include dividends in calculations (requires...
No notes
|
Money Manag.
Advanced
|
| |