The following money management script calculates the weight of the industry given the current open positions and orders and rejects any new order if the new weight would be higher than a specific threshold.
If you specify an industry weight of 50% then your portfolio will always have an industry concentration...
No notes
|
Money Manag.
Advanced
|
| |
The Laggard money management script is designed to sell a stock or a security that lags behind a specified index.
The script has two parameters which are "Benchmark Symbol" and "Bars". Any of your stock in the simulation will be sold if after the specified number of bars (Bars), the stock's...
No notes
|
Money Manag.
Medium
|
| |
This money management script allows you to set a number of days to wait before purchasing a security that you have sold previously.
Imagine you purchased GOOG then sold it after few days on 5 July 2015. After 5 days your system generates a new buy signal to purchase GOOG again.
By...
No notes
|
Money Manag.
Medium
|
| |
The Large Block Ratio is a market sentiment indicator that shows the relationship between large block trades (or trades of more than 10,000 shares) and the total traded volume on the New York Stock Exchange.
This indicator will tell you how active the large institutional traders in the market.
Because the ratio...
No notes
|
Indicator
Advanced
|
| |
This is a small modification to 1601 by QuantShare to add support for filtering and column labels.
>>> Instructions below mostly copied from the original post >>>
...
No notes
|
Downloader
Medium
|
| |
The ZLEMA indicator or zero lag exponential moving average is a technical analysis indicator originally created by Ric Way and John Ehlers.
The goal of the indicator is to try to eliminate the inherent lag of all trend following indicators which average prices over time such as the simple or exponential...
No notes
|
Indicator
Basic
|
| |
This watchlist scans for securities that have parallel support and resistance lines.
This is accomplished using the powerful "autosr" function (Automatic Support/Resistance).
You can read more about how this dynamic watchlist was built by reading the following blog post:
How to Scan for Parallel Resistance and Support Lines ...
No notes
|
Watch List
Advanced
|
| |
Instead of downloading data like any other downloader, this item allows you to export any indicator data for any securities and for a specific period.
All you have to do is install this item, open it in the downloader manager (Download -> Download Manager) then:
- Select "Start & End Dates" tab...
No notes
|
Downloader
Advanced
|
| |
Say you have several watchlists and you would like to display on your chart the different watchlists that contain the currently shown security.
The current function allows you to do so. All you need is to add the function formula and specify the different watchlists you want to track.
Here is...
No notes
|
Indicator
Medium
|
| |
CompRule(rules, category, weightFormula, aggregateFormula)
is a function for use in e.g. trading systems, that attempts to implement
(somewhat) similar functionality as Comp(...) but across rules, not symbols.
The "composite rule" is returned.
Note: "rule" here means any numeric vector, whether it consists solely...
No notes
|
Indicator
Medium
|
| |
This money management script allows you to specify a minimum number of positions in your trading system.
The script uses the "OnClosePosition" event to reject any exit order if the current number of positions (both longs and shorts) in the portfolio is equal or below the specified threshold.
Formula rules as well...
No notes
|
Money Manag.
Basic
|
| |
This indicator used by Fibonacci traders calculates the balance point of the current week and plot it on the next week as a fixed horizontal line. The fixed balance point is the weekly high, low and close, summed then divided by three.
You can read more about this indicator and others...
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
|
| |
The value at risk is a risk measure based on the probability distribution of security's prices or portfolio's market value. Unlike other measures such as the volatility, the value at risk measure cares about the direction of the portfolio or security.
The current value at risk function calculates a percentage that...
No notes
|
Indicator
Advanced
|
| |
The dividend yield watchlist displays all U.S. stocks that have recently distributed dividends to their shareholders.
The watchlist displays three columns:
q div: Recent quarterly dividend amount per share paid
a div: Sum of the last four quarterly dividend amount per share paid ...
No notes
|
Watch List
Advanced
|
| |
This function calculates the number of bars that have passed since a data within a custom database.
You can find another function that calculates the number of bars to a data within a custom database here:
1585
...
No notes
|
Indicator
Medium
|
| |
For custom databases, data is often associated with a symbol and a date making it easy to build logic around the primary date value. But when the custom database contains more than one date value, accessing and using the date values is more complex. The DaysToNextDate function helps by...
No notes
|
Indicator
Medium
|
| |
This item downloads last implied volatility data for U.S. stocks. The implied volatility is calculated from the options data for each stock.
Historical or statistical volatility is the past volatility of the underlying security and is measured using the annualized standard deviation. The implied volatility on the other hand is the...
No notes
|
Downloader
Advanced
|
| |
This item downloads historical dividend data for U.S. stocks.
It creates a custom database (divcalendar) and stores data in the following fields:
dividend: The quarterly dividend percentage paid by the company
annualdiv: The annual dividend percentage paid by the company ...
No notes
|
Downloader
Medium
|
| |
This system seeks to exploit a pattern where if the previous two days didn't have a gap up open from the previous close exceeding 0.2%, then there's an higher chance that the next overnight session will gap up.
The system buys the close and sells at the next open. It works...
No notes
|
Trading System
Medium
|
| |
The Forex long/short historical position ratios downloader gets the percentage of long positions for a specific currency pairs on the Oanda platform.
The data is stored in a custom database "fx_lp_ratio" and can be accessed by any QuantShare plug-in using the following formula:
a = GetData("fx_lp_ratio", "ratio");
...
No notes
|
Downloader
Advanced
|
| |
This is a modified version of NSE Nifty - S&P CNX Nifty
This modified version can download index of CNX NIFTY
Don't forget to add CNX NIFTY as a new symbol
...
No notes
|
Downloader
Medium
|
| |
After backtesting a trading system, you can create a ticker symbol from the strategy's equity by right clicking on the equity chart (in the simulation report) then selecting "Equity to Symbol" option.
This money management script allows you to automate this process by creating a ticker symbol for your strategy's equity...
No notes
|
Money Manag.
Medium
|
| |
Body Momentum is a trading indicator described in Perry Kaufman's book. It is an oscillator that moves between 0 and 100 and calculates the percentage of bars that closed above the open price (white/green candle) during a specific period.
A period of 10 and a value of 100 for the body...
No notes
|
Indicator
Basic
|
| |
This is a tactical asset allocation strategy example based on momentum and volatility to rank some ETFs.
More info about how to create tactical asset allocation strategies can be found here:
Create Your Own Tactical Asset Allocation Strategies
Note that unlike the above article (see the link), the composite function here uses...
No notes
|
Trading System
Medium
|
| |
This money management script calculates monthly and yearly standard deviation based on monthly and yearly returns.
It calculates monthly/yearly returns, calculates the standard deviation from these returns then adds two metrics in the simulation report table at the top.
If you are looking for a trading system that has consistent performance over...
No notes
|
Money Manag.
Advanced
|
| |
The normalized close price indicator calculates the price movement of a security by starting with a 100 base value at a specific date.
You just need to specify a start/base date and a security name (optional - if empty then the currently analyzed security will be used) and this function will...
No notes
|
Indicator
Medium
|
| |
The custom range function calculates the high/low range for specific security and time frame.
For example, in a daily chart, it can used to calculate the previous weekly high/low range:
a = CustomRange("", 7);
...
No notes
|
Indicator
Basic
|
| |
This indicator makes a prediction for the returns of the current bar based upon averaging the returns of the NumClosest (parameter) candlestick patterns that were most similar to the current bar's pattern in the Lookback (parameter) period. "Similarity" here is the squared euclidean distance between vectors describing the two...
No notes
|
Indicator
Advanced
|
| |
This is a simple tactical asset allocation strategy (TAA strategy) based just on the relative strength indicator.
The strategy invests in 10 ETFs:
EDV (Vanguard Extended Duration ETF)
EEM (iShares MSCI Emerging Markets Index (ETF))
...
No notes
|
Trading System
Medium
|
| |
This function allows you to get the industry name of an external symbol.
As you may know, you can get the industry name of the currently analyzed symbol using the "Industry()" function.
To access the industry of another symbol, download and install this function then type something like:
a = SymbolIndustry("GOOG");
...
No notes
|
Indicator
Advanced
|
| |
From Van K. Tharps book "Trade your way to financial freedom"(chapter 14) with an addition of "number of positions". Total equity volatility is divided by this number to allow simultaneous positions. The script assumes it's dealing with stocks and is long only. Feel free to alter to suit your needs...
No notes
|
Money Manag.
Medium
|
| |
Here is a modified version of the Triple Momentum Strategy described by Gerald Appel in his "Technical Analysis: Power Tools for Active Investors." book. Gerald Appel is also known for creating several trading indicators including the popular Moving Average Convergence Divergence (MACD).
The triple momentum indicator/level is simply the sum of...
No notes
|
Trading System
Medium
|
| |
This is a swing indicator that may be used during backtesting to reference swing data.
Format is: swingsim(close, threshold, type, ago);
Threshold = movement required in points to constitute a valid swing
Types are the swing metric that is to be returned, valid types include: ...
No notes
|
Indicator
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
|
| |
The random walk index in a trading indicator described by E. Michael Poulos in the technical analysis of stocks & commodities magazine.
The author defines the random walk index as the ratio of the real security move to the expected random walk. A ratio higher than one indicates that the security's...
No notes
|
Indicator
Medium
|
| |
Cutlers' RSI is a variation of the original relative strength index developed by Welles Wilder.
This variation uses a simple moving average instead of an exponential average (in the original formula).
As with the classic RSI, the Cutler RSI is a momentum oscillator that is mainly used to indentify overbought and oversold...
No notes
|
Indicator
Basic
|
| |
This is a trend following trading strategy that trades S&P 500 stocks.
The S&P 500 trend following system uses the following rules:
- Daily data for S&P 500 stocks
...
No notes
|
Trading System
Medium
|
| |
The "MinDaysEvents" calculates the number of minimum days between two events/data entries in a custom database.
Example:
Say you have a custom database that stores fundamental data. The field "EPS" stores the earnings per share field.
If for any reason you want to know the minimum number of days between two EPS entries...
No notes
|
Indicator
Advanced
|
| |
This downloader gets 10 years of annual fundamentals from Morningstar's free fundamental ratios.
New features:
* It now works with non-USD financial statements.
* Balance sheet items such as Cash & Equivalents are converted from % of total assets to a dollar (or other currency) figure. ...
No notes
|
Downloader
Advanced
|
| |