This item calculates the SCTR (Stock Charts Technical Ranking). Please see the link for description. https://school.stockcharts.com/doku.php?id=technical_indicators:sctr
cFunctions.SetForwardAndBackwardBars(200, 0);
String str = "EMA200_ = ((Close - ema(200))/ema(200)) * 30;" + ...
No notes
|
Indicator
Medium
|
| |
By default, users are unable to take advantage of global variables inside of charts and other features. This function reads the specified global variable and returns its value as a string (not a number). If the global variable does not exist, this function will return a blank string.
By itself, GetVariable...
No notes
|
Indicator
Medium
|
| |
This function loops through each trading bar and update any zero value with Nan
The function could be useful in many situation. Here is how it is used in this how-to lesson:
No notes
|
Indicator
Basic
|
| |
This function calculates the high or low of a trading session within a specific period/interval. You can define a start and end time, whether to get the high and low and the function returns the last high or low that occurred during that time frame.
Example of usage:
// Calculates the high...
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
|
| |
Moving Average Derivative
This Indicator shows the value of the slope (Derivative) of the Moving Average with X days.
The slope is calculated in % increase.
A negative slope means the Moving Average is decreasing, so a bearish signal to the the stock.
...
No notes
|
Indicator
Medium
|
| |
Alma is a moving average developed by Arnaud Legoux & Dimitris Kouzis-Loukas. It uses curve of the normal distribution (Gauss) which can be updated using the offset parameter.
This technical indicator has four paramters:
Series: Timeseries to use for the moving average
Window: Lookback period
...
No notes
|
Indicator
Medium
|
| |
This function returns the number of calendar days between two dates.
For example, if you want to know the number of calendar days (not trading days) between the current bar and the previous bar, just type:
a = daysBetweendates(date(), RefString(date(), 1));
plot(a, "");
...
No notes
|
Indicator
Basic
|
| |
This is a modified version of the "GetDataString" function which gets a string/text from a custom database field.
The modified version allows you to get the last (non empty) string on any given trading bar.
As an example, let us say that you have a database whose name is "db" and a...
No notes
|
Indicator
Medium
|
| |
When added to a chart, this function generates a beep each time a new bar is created.
This function could be particularly useful when streaming real time data in a chart with a custom periodicity (Tickers per Bar, Range Bar.). It allows you to be quickly notified each time a new...
No notes
|
Indicator
Medium
|
| |
This is the Zweig Indicator. You can change the percentage values or optimize them based on the market you are looking at. For US stock markets, 4% seem to work.
After a buy signal, generate the next sell signal upon a 4% or greater decline from...
No notes
|
Indicator
Medium
|
| |
This indicator uses the polynomial nonparametric regression mathematical formula to calculate the center of gravity of a moving stock (blue line) and other standard deviations. The amplitudes of these deviations are proportions of the golden number 1.618.
The center of gravity indicator was created by Mostafa Belkhayate.
This indicator is a modified...
No notes
|
Indicator
Medium
|
| |
Unlike the default Random built-in function of QuantShare which returns a fixed random value of all bars, this function returns a random value for each trading bar.
Usage:
a = RandomBar(0, 100); // Returns a random value between 0 and 100
...
No notes
|
Indicator
Basic
|
| |
This new "Outperform" indicator calculates the percentage of trading periods where a stock or an ETF outperforms a benchmark.
The indicator first gets the benchmark symbol. It then takes "period" and "count" as parameters. The "period" is the number of trading bars used to compare the currently analyzed security with the...
No notes
|
Indicator
Medium
|
| |
This function returns the total number of ticker symbols in your database when the provided parameter is empty.
Example:
a = nbtickers("");
plot(a, "Number of tickers");
...
No notes
|
Indicator
Basic
|
| |
The Information ratio also called Appraisal ratio is a ratio of a portfolio (or asset) returns above the returns of an index (or benchmark) to the volatility of the returns.
The IR (Information Ratio) is similar to the Sharpe ratio since it is used to measure risk-adjusted returns. The difference is...
No notes
|
Indicator
Medium
|
| |
This function would allow you to highlight certain periods on your chart. You can for example use it to highlight recession periods or any other important events.
The function accepts a list of dates separated by commas. The list should define the start and end of each period to highlight.
As an...
No notes
|
Indicator
Medium
|
| |
This Average Year over Year indicator will calculate the average close price (or any other time series) movement over the preceding N-years.
For any particular date, it will take the preceding N-year values and calculate the average one-bar return of these values.
Note that this indicator can work with daily, weekly and...
No notes
|
Indicator
Advanced
|
| |
This year-over-year chart indicator will allow you to compare stock's movement over the same period of time one or several years ago.
All you have to do is download this trading indicator, create a new chart then create two or more panes.
As an example, create two panes (right click on the...
No notes
|
Indicator
Basic
|
| |
Ehler's supersmooter filter - another moving average - but very good.
Example: plot (SupSmoot(50), "Ehler's SuperSmooter",colorpink);...
No notes
|
Indicator
Basic
|
| |
ATR trailing indicator shows trailing support/ressistent levels.
Very nice in tranding environment.
You can change Sma in loss calculation to Ema/Wma...
if it better fullfill your requirements - I didn't know how to
implement it as parameter :-( ...
No notes
|
Indicator
Basic
|
| |
The Ehlers Decycler Oscillator is a trading indicator developed by John F. Ehlers.
The goal of this oscillator is to eliminate very low-frequency components from the Ehlers 1660 by using the half-period Ehlers Highpass filter and transforming the output into the oscillator.
...
No notes
|
Indicator
Advanced
|
| |
The Simple Decycler is a study created by John Ehlers and presented in the
The idea behind this virtually zero-lagged trading indicator is that the market data can be considered as a continuum of cycle periods each one with a different cycle amplitude. Trending periods could be considered as segments of...
No notes
|
Indicator
Advanced
|
| |
To Sharpe ratio was created by William Sharpe in 1966. It is a very popular measures used to calculate the risk/return of an investment.
You can calculate the Sharpe ratio of any security in QuantShare using the "Sharpe" function. However, calculating the Sharpe ratio of a portfolio consisting of two assets...
No notes
|
Indicator
Medium
|
| |
The Cyber Cycle function originated from John Ehler's book "Cybernetic Analysis for Stocks and Futures". It is basically a high pass filter....
No notes
|
Indicator
Medium
|
| |
The following indicator doesn't create a time-series but instead displays some statistics on your chart.
The data will be displayed on the left-bottom corner and will contain the following values:
Drawdown: Maximum drawdown corresponding to the selected bar
...
No notes
|
Indicator
Basic
|
| |
The following indicator calculates the percentage change between the actual and forecasted economic event.
As an example, let us say you want to calculate the percentage change of the actual vs estimate numbers for the USD consumer Credit and then see its impact on the underlying currency pair.
You can do so...
No notes
|
Indicator
Advanced
|
| |
This is a small but IMHO helpful modification to the built in BarsSince indicator. The enhancement is the addition of a parameter, N, which allows you to choose which prior occurrence of a nonzero value in the Series that you are interested in. You may also provide a...
No notes
|
Indicator
Medium
|
| |
This function is an example that shows you how to use the "plotprofile" function of QuantShare.
Each month, it splits the stock's high/low range into ten buckets then counts the number of times the analyzed stock has closed within that bucket. The higher the bucket value, the more the stock closed...
No notes
|
Indicator
Advanced
|
| |
The Gann trend indicator tries to address the need for investors and traders to define mechanically the trend of a financial instrument.
The Gann trend indicator is implemented by tracking trend changes as defined by two up or two down closes. The indicator returns 1 when it detects an uptrend and...
No notes
|
Indicator
Basic
|
| |
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
|
| |
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
|
| |
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 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
|
| |
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
|
| |
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
|
| |