The buy indicator tells you whether to buy the current security or not based on an indicator previous performance.
For each bar, this indicator will calculate the performance of another indicator for the past bars. It will simulate a buy and sell after n-bars when the provided indicator gives a signal.
Example:...
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
|
| |
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
|
| |
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
|
| |
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
|
| |
In September 1993 edition of the 'Stock & Commodities' magazine, Tushar Chande introduced the Chande's Trendscore indicator. This indicator main role is to determine the direction and strength of the market trend. To do so, it compares the close price to previous close prices over a period of 20 bars....
No notes
|
Indicator
Medium
|
| |
Mahesh Moving Average, MMA, is a technical analysis indicator that unlike the other types of moving averages (Example: Simple moving average and Weighted moving average) uses the historical price and volume data in its calculation. Traditional moving averages calculate a bar's value using the close, volume and other time-series data...
No notes
|
Indicator
Medium
|
| |
The location of the closing price within the day's range is a surprisingly powerful predictor of next-day returns for equity indices. The closing price in relation to the day's range:Internal Bar Strength is simply calculated as such:
((close-low)/(high-low))*100
It takes values between 0 and 100 and simply indicates at which point...
No notes
|
Indicator
Medium
|
| |
This function calculates the slope of the Weighted Linear Regression.
The Weighted Linear Regression Is an extension of the standard Linear Regression, where a weight is added to each of the points.
It can be used to calculate the linear regression of the closing prices by considering the volume traded on each...
No notes
|
Indicator
Medium
|
| |
This function converts a string to a number. It generates a number from a string or combinations of letters and numbers.
The function is called "Num" and it uses the "GetHashCode" method of an object to generate a number.
The "Num" function can be helpful in many situations.
...
No notes
|
Indicator
Medium
|
| |
The Vortex Oscillator is a technical analysis indicator inspired from J. Welles Wilders directional movement indicator. The oscillator can be used to determine if a security is trending, it can be incorporated into a trend following system or can be used directly to generate buy and sell signals.
The Vortex Oscillator...
No notes
|
Indicator
Medium
|
| |
The ratio of Total Market Cap to US GDP is an economic indicator measure that tells us whether the stock market valuation is overvalued, undervalued or fairly valued. Warren Buffet once said that the percentage of total market cap to US GNP is the "best single measure" for stock market...
No notes
|
Indicator
Medium
|
| |
The Percentile or Percent Rank function calculates the percentage of observations or values, within a lookback period, that are below the current value of a given function. It is the percentage of values in the provided time series frequency distribution that are lower than the value of any given bar.
As...
No notes
|
Indicator
Medium
|
| |
Frank Hassler introduced this measurement. It was discussed on Frank's Blog Engineering Returns http://engineering-returns.com/2010/06/28/aapl-ts/, and it was highlighted and researched by David Varadi of CSS Analytics in his blog http://cssanalytics.wordpress.com/2010/06/28/trend-strength-index-tsi/, and subsequent posts.
David uses the following summary of TSI: "The TSI is an intermediate-term absolute (versus relative ) measure...
No notes
|
Indicator
Basic
|
| |
A financial time series often moves in what can be thought of as a channel. Determining where a price or indicator is relative to that channel can be a powerful signal or indicator.
This function takes two inputs: The first, the data array (time series) which could be...
No notes
|
Indicator
Medium
|
| |
The Demand Index is a technical indicator that tries to lead price changes using price and volume data. The indicator was developed by Hames Sibbet.
The demand index formula requires several parameters:
Price: A time series that is usually set to the close price, midpoint or high plus low divided by two.
Constant:...
No notes
|
Indicator
Medium
|
| |
This function is an enhancement to the chande_trendscore function added by "The Trader". You can read more about the origin, purpose and behaviour of the function here: 317
This version adds 3 enhancements to the original function.
1) It accepts a symbol as a parameter. This is desirable in conditions...
No notes
|
Indicator
Medium
|
| |
The Fibonacci retracement indicator returns a value indicating whether there is a support or resistance near the current stock price. Five different retracement levels or numbers are used: 0%, 38.2%, 50%, 61.8% and 100%.
When calculating the Fibonacci retracement levels, if the highest stock value occurs before the lowest value, then...
No notes
|
Indicator
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
|
| |
This function utilizes the historical analyst buy/sell recommendations, downloadable from yahoo by 641, to provide the previous 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. 0 is...
No notes
|
Indicator
Medium
|
| |
This function utilizes the historical analyst buy/sell recommendations, downloadable from yahoo by 641, to determine how long it has been since an analyst rating has been provided for a stock. This function can be useful in trading algorithms in determining a confidence value for the rating (the longer its...
No notes
|
Indicator
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
|
| |
"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
|
| |
Ichimoku Kinko Hyo, which means "one glance equilibrium chart", is a charting technique developed in late 1930s by Japanese journalist, Goichi Hosoda. The Ichimoku technical analysis technique was made available to the general public in 1960.
Ichimoku is used to detect trends by creating five lines calculated using the midpoint of...
No notes
|
Indicator
Medium
|
| |
This Fractal dimension indicator is based on fractal analysis and Chaos theory and it was developed by John Ehlers and Ric Way. This trading indicator was introduced in the article "Fractal Dimension As A Market Mode Sensor" in the Stocks & Commodities magazine and it is a modified version of...
No notes
|
Indicator
Medium
|
| |
The Forecast Oscillator is a technical indicator that compares a security close price to its time series forecast. The time series forecast function name is "tsf" (already implemented in QuantShare) and it calculates the projection of the price trend for the next bar.
The Forecast Oscillator and therefore the time series...
No notes
|
Indicator
Medium
|
| |
This is a variation of the 120. The indicator contains an additional parameter that lets you define a minimum number of trades threshold.
The Buy Indicator performs for each bar a simulation or backtest and returns the average return/performance of the strategy defined in the rule and N-Bar stop parameters. For...
No notes
|
Indicator
Medium
|
| |
Calculates the covariance of two numeric arrays. Similar to the covariance function in excel. The following description is taken from ehow:
Covariance is a measurement of how related the variances between two variables are. If the two variables both tend to increase together, it is a positive covariance,...
No notes
|
Indicator
Medium
|
| |
The beta is a common metric used in evaluating stocks.
From money-zine:
"Perhaps the single most important measure of stock risk or volatility is a stock's beta. It's one of those at-a-glance measures that can provide serious stock analysts with insights into the movements of a particular stock relative...
No notes
|
Indicator
Medium
|
| |
The Hull Moving Average is based on several weighted moving averages. In an attempt to create a more responsive MA and reduce the lag problem that is inherent to most moving averages, the HULL indicator returns a much faster and smoother moving average.
The Hull Moving Average was first introduced by...
No notes
|
Indicator
Medium
|
| |
Pivot System price levels act as potential support and resistance zones throughout the day. They serve as focal points for floor professionals as they adjust their bids and offers, especially when trading activity is slow. The use of these values, along with tape reading skills and candlestick pattern recognition can...
No notes
|
Indicator
Medium
|
| |
Relative Performance indicator compares the rate of price change (return) of two or several assets and plots the performance of each asset on the chart.
Relative Performance/Strength chart displays percentage changes and compares the return or price changes of different assets or securities. You can use it, for example, to quickly...
No notes
|
Indicator
Medium
|
| |
The "RandomMonths" function picks months depending on a percentage value passed to this function. If you specify 100% then the function returns TRUE for all months, if you specify 50% then the function returns TRUE for half of the months and if you specify 0% then the function returns FALSE...
No notes
|
Indicator
Medium
|
| |
This function uses the percent rank and moving average indicators in addition to the close, high, and low series to generate an oscillator that is bounded between 0 and 100.
Here is how the calculation of this technical indicator is performed:
First, it calculates the close relatively to the high/low range
Then it...
No notes
|
Indicator
Medium
|
| |
The Bollinger bands squeeze is a volatility indicator that tries to determine periods of low or high volatility in a price series. This technical indicator signals only the timing, not the direction of the trade, and for this reason, it must be used in conjunction with other technical or fundamental...
No notes
|
Indicator
Medium
|
| |
This function implements Thomas DeMark's TD Sequential Indicator. There are many different versions of this indicator with different rules and many nuances. Not all are implemented here. For more detail you should add to the code.
This function accepts two arguments, a number and a string.
TDSequential(0,"") - Returns the count...
No notes
|
Indicator
Medium
|
| |
Cumulative sum or running total of a technical indicator refers to the algebraic sum of all previous values of this technical indicator.
The Cumulative sum formula is as follows:
A = B + C * previous value of A ...
No notes
|
Indicator
Medium
|
| |
The Sortino ratio is a popular measure of the risk of an asset, investment, portfolio or strategy. Its formula resembles the one that describes the Sharpe ratio with a small variation that consists of penalizing only negative returns.
Sortino ratio uses the downside standard deviation instead of the classic standard deviation....
No notes
|
Indicator
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
|
| |
The least squares regression line is a line in the form of "y = a + b * x" that best fits a data set (time series).
The least squares regression is the most used modeling technique. It is mainly used to predict the future value of the analyzed time series.
Example: ...
No notes
|
Indicator
Advanced
|
| |