This is a function that could be used with a database that contains text data (for example a news database). The function accepts as arguments, the database name, the field name, a positive list of words and a negative list of words.
These lists of words are simply words separated by...
No notes
|
Indicator
Medium
|
| |
This function calculates the number of bars, value, sum, average and rate of return of a specified vector and using reference points. For example, if you use the rate of return indicator (ROC), the function accepts as input a vector and a lookback period (number of bars). If we choose...
No notes
|
Indicator
Medium
|
| |
The Donchian channel is an indicator that was introduced by Robert Donchian; it consists of a set of 3 lines used as an envelope in order to calculate the price volatility. The first one is the price highest high over a chosen period; the second one is the lowest low...
No notes
|
Indicator
Medium
|
| |
Relative momentum index is an oscillator introduced by Roger Altman in a February 1993 'Stocks & Commodities' magazine article. Inspired from the relative strength index, it attempts to improve it by eliminating the oscillations between defined overbought and oversold levels through the introduction of a momentum. The relative momentum index...
No notes
|
Indicator
Medium
|
| |
Here is another date function that can be used to make correspondence between trading bars and actual dates in the calendar. It is named 'EndOfMonth' and it returns 1 for the trading bar that corresponds to the last day in the month. Its principle is simple; it loops through the...
No notes
|
Indicator
Medium
|
| |
Here is another date function used to make correspondence between the trading bars and the actual dates in the calendar. It is named DayOfWkMonth, and it returns a value of one for the bar that corresponds to the day of week in the week number given as parameters.
For example, if...
No notes
|
Indicator
Medium
|
| |
Day of week average is a date-related function. It does not aim at generating signals and making decisions, but is used as a statistical indicator tracing the price change dependently on the day of the week. It gives the price simple moving average over N bars back, these bars corresponding...
No notes
|
Indicator
Medium
|
| |
Introduced by John Andersen in a September 1996 article appearing in the 'Stock and Commodities' magazine, Standard Error Bands is an envelope whose bands are obtained by the calculation of the beta and alpha coefficients of linear regression. Standard Error Bands are used to measure the strength of a trend,...
No notes
|
Indicator
Medium
|
| |
The 'calcA' function is used by the standard error bands function to calculate the alpha linear regression coefficient. It is multiplied by the sum of the close price over the calculation period and then subtracted from the sum of the square of the close price over the same period. CalcA...
No notes
|
Indicator
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
|
| |
Here is another date function named 'BarsToMonthEnd'. It returns the number of trading bars from the current bar up to the last trading bar of the actual month in the calendar. For example, for 30th December 2009, BarsToMonthEnd could return 1, and for 1st December 2009, it could return 22.
The...
No notes
|
Indicator
Medium
|
| |
Correspondence between bars of trading days and their actual dates is sometimes needed in trading. In fact, trading days do not include neither weekends nor some holidays. Besides, the trading period does not correspond to a particular interval of the calendar; it starts and ends dependently on the trader's...
No notes
|
Indicator
Medium
|
| |
The 'BarsUpVolume' function calculates the number of successive increases in the volume (bars).
For example, if the bar n: 100, has a value of 2, this means that the volume were increasing for the last 2 bars. Volume of yesterday is higher than the Volume of the day before yesterday, and...
No notes
|
Indicator
Medium
|
| |
The elastic volume weighted moving average is a technical indicator used, like all moving averages, to determine the nature of the market and to generate signals. It can also be used as a trigger line. EVWMA has the specificity that it is both symbol-independent and time-frame independent.
This is made...
No notes
|
Indicator
Medium
|
| |
Volume * Price Momentum oscillator is an indicator used to determine the trend tendency using both price and volume. In fact, it acts upon the principle that the trend tendency, which is characterized here by the price variation, is stronger when the exchanged volume is higher. The indicator is based...
No notes
|
Indicator
Medium
|
| |
The Lane's stochastic oscillator is an improvement of the well-known stochastic indicator. It was developed by Georges Lane in the 1950s. It is based on the calculation of the difference between the daily price and the lowest low divided by the highest-lowest price range. The indicator values vary from 0...
No notes
|
Indicator
Medium
|
| |
The Center of Gravity function originated from a John Ehler's article published in May 2002 in the Stock and Commodities magazine. It was derivated from the Finite Impulse Response Filter formula, which constituted one of Ehler's researches undoubtedly inspired from digital signal processing.
The main goal for COG is not to...
No notes
|
Indicator
Medium
|
| |
Choppiness index is an indicator used to measure the degree in trendiness and in choppiness in a market.
It uses a 0-100 scale and includes an upper and a lower bands respectively corresponding to Fibonacci 61.80 and 38.20 numbers. While CI values below 31.80 mean a trending market, those above 61.80...
No notes
|
Indicator
Medium
|
| |
First introduced in a December 1997 'Stock and Commodities Magazine' article by Stephen I. Klinger, the Klinger Volume Oscillator is a volume-based indicator developed with the intention to be both short-term sensitive and long-term accurate. In fact, KVO measures the sum of in (accumulation) and out (distribution) volumes for a...
No notes
|
Indicator
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
|
| |
The positive volume index was created by Norman Fosback. It is used, as with the Negative Volume Index, to determine the nature of trending markets.
The positive volume index is a cumulative indicator, its value increases by the daily return of the close price multiplied by the yesterday PVI value, if...
No notes
|
Indicator
Medium
|
| |
The disparity index is generally considered as introduced by Steve Nison on his book 'Beyond Candlesticks'.
This indicator is used to measure the percentage change between a security price and its moving average. A DI positive or negative value at a given point indicates that the price is respectively rapidly increasing...
No notes
|
Indicator
Medium
|
| |
The TFS MBO indicator is the last component of Bryan Strain's Tend Following System. Similarly to the MACD oscillator, it calculates the difference between two averages - fast and slow. TFS MBO is consequently an oscillator based on the close price whose variation is used to confirm the market tendency.
This...
No notes
|
Indicator
Medium
|
| |
The TFS volume oscillator is the second component of Bryan Strain's Trending Following System. This indicator is used, together with the TFS Tether line and the TFS MBO, to generate buy signals.
TFS VO uses the open, close and volume time-series, as well as a time frame. Generally, a period of...
No notes
|
Indicator
Medium
|
| |
TFS is a trend-following system introduced by Bryan Strain in "How to get with the trend and out at the end" in the Stock & Commodities magazine in 2000. It consists of a set of three indicators, used together to generate entries. We here focus on the TFS tether line...
No notes
|
Indicator
Medium
|
| |
The Relative Vigor Index or RVI has two lines, the RVI line and RVI Signal line.
This function takes the cycle period as argument and returns the indicator Signal line. The RVI line can be downloaded here: 251.
The function name is "relative_vigor_index_signal"....
No notes
|
Indicator
Medium
|
| |
The Relative Vigor Index is an oscillator introduced by John Ehder. Described in an article entitled 'Something old, something new' in the Technical Analysis of Stocks and Commodities magazine in January 2002 edition, the RVI combines modern digital signal processing with the classical market technical analysis.
In fact, the RVI...
No notes
|
Indicator
Medium
|
| |
The Vertical Horizontal Filter, introduced by Adam White, is an indicator used to identify trending and ranging markets. In fact, similarly to the popular ADX indicator, the VHF estimates the raise / fall price acceleration, and thus attempts to predict whether we are going to deal with a trending or...
No notes
|
Indicator
Medium
|
| |
The Detrended Price Oscillator is an indicator used as a long or short signal. In fact, the DPO eliminates cycles that are longer than the moving average period. It leaves thus short-term trends, and it allows both overbought and oversold levels to be detected more accurately. These levels are used...
No notes
|
Indicator
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
|
| |
The Coppock indicator, developed by Edwin Coppock, is used as a technical analysis tool to detect the beginning of bullish periods. Initially confined to the Dow Jones Industrial Average, it is also appropriate for use with other indices.
The Coppock indicator, also called Coppock curve, is generally used by long-term...
No notes
|
Indicator
Medium
|
| |
The 'Buff Averages' is an indicator created by Buff Dormeier. It first appeared in the Traders' Tips section of the Stocks & Commodities magazine in February 2001. The function accepts two inputs: a price time-series and a length period. The indicator volume-weighting calculation is applied to the price time-series. The...
No notes
|
Indicator
Medium
|
| |
The Mass Index is an indicator developed by Donald Dorsey; it is used to catch trend reversal points (predict reversals) by comparing the changes in the trading range, which is the high price minus the low price. The Mass Index goes up if there is a considerable movement in the...
No notes
|
Indicator
Medium
|
| |
Those who have downloaded and are using one of the historical calendar events downloader for forex pairs (202 or 211 or 212) may find this function very useful.
The function accepts two inputs: A symbol name (the one that contains the historical calendar events) and an event name.
It reads the...
No notes
|
Indicator
Medium
|
| |
The Chande's Range Action Verification Index (RAVI) indicator was developed by Tushar Chande. As the ADX indicator, the RAVI is used to identify whether a market or security is trending. The RAVI indicator is calculated using moving averages of different lengths. The first one is a short moving average with...
No notes
|
Indicator
Medium
|
| |
The 'Choose' function is a small piece of code that returns a vector given an index. The function accepts six parameters, the first one is the index and it is used to select one the next five parameters. The others parameters accept any numeric vectors.
Example:
a = rsi(14);
b = rsi(14) >...
No notes
|
Indicator
Medium
|
| |
This is the Yang and Zhang extension of the Garman and Klass historical volatility estimator.
The equation was modified to include the logarithm of the open price divided by the preceding close price. As a result, this function uses the open, high, low and close prices to estimate volatility.
This modification allows...
No notes
|
Indicator
Advanced
|
| |
The Rogers-Satchell function is a volatility estimator that outperforms other estimators when the underlying follows a geometric Brownian motion (GBM) with a drift (historical data mean returns different from zero).
As a result, it provides a better volatility estimation when the underlying is trending.
However, this Rogers-Satchell estimator does not account for...
No notes
|
Indicator
Advanced
|
| |
This function returns the Garman-Klass estimation of volatility. It was developed by Graman and Klass and it uses the high, low and close prices to estimate volatility.
The Garman-Klass estimator is up to eight times more efficient that the close-to-close estimator and unlike the Standard deviation and the Parkinson estimator, it...
No notes
|
Indicator
Advanced
|
| |
A common and well-known way to estimate historical volatility of a financial instrument is by calculating the standard deviation of each period in the sample. Although the standard deviation is a popular measure of the volatility of an instrument, it is not the sole one. Several different calculation methods exist...
No notes
|
Indicator
Advanced
|
| |