This is a trading item or a component that was created using QuantShare by one of our members.
This item can be downloaded and used by QuantShare Trading Software.
Trading items are of different types. There are data downloaders, trading indicators, trading systems, watchlists, composites/indices...
You can use this item and hundreds of others for free by downloading QuantShare.
Top Reasons Why You Should Use QuantShare:
Works with US and international markets (stock, forex, options, futures, ETF...)
Offers you the tools that will help you become a profitable trader
Allows you to implement any trading ideas
Exchange items and ideas with other QuantShare users
Our support team is very responsive and will answer any of your questions
We will implement any features you suggest
Very low price and much more features than the majority of other trading software
This composite calculates daily standard deviation of one-bar rate of return for all securities. It also calculates the average one-bar rate of return for all securities. The average or mean value is stored in the "volume" field; it is multiplied by 10000 because the "volume" field accepts only integer values and so that we do not lose the precision of the number. The daily standard deviation is stored in the "Close" field.
This item allows you to calculate the standard score or the z-score value of any security or stock using a simple formula. The standard score is used to measure the number of standard deviations a value is above or below the mean.
For the one-bar rate of return indicator, the z-score value of a particular asset for a particular bar is the value of the one-bar rate of return for that bar minus the average value calculated by the composite and stored in the "volume" field then divided by the standard deviation value that is stored in the "close" field.
The QuantShare formula is (The composite name is "_RETURN SDV")
a = (roc(close, 1) - (Ticker("_RETURN SDV",volume,LastData)/10000)) / Ticker("_RETURN SDV",close,LastData);
In this item as well as in the example, I have used the one-bar rate of return, but you could use any function, indicator or time-series. You just need to update the composite item and change the variable named "function". Currently, this variable is set to "roc(close, 1)", but you can change it to "roc(close, 10)" for example to calculate the 10-bar rate of return, or "rsi(close, 14)" to calculate the Relative Strength Index.
If you use "rsi(close, 14)" in the composite formula:
a = (rsi(close, 14) - (Ticker("_RETURN SDV",volume,LastData)/10000)) / Ticker("_RETURN SDV",close,LastData);
The following line calculates the z-score of the Relative Strength Index for all the security' bars. A z-score value of one means that the Relative Strength Index (RSI) of the security is one standard deviation above the mean of the RSI for all securities.
To have a shorter formula, you can download the z-score function I have uploaded here: Z-Score (Standard Score); It uses the same formula as the one described above.
Note that I have also used two filters in the composite formula. The first filter cap the value of the rate of return at 100% while the second is used to reject or ignore symbols whose share price is below two.
You have to log in to bookmark this object What is this?
>>>> More trading objects? click here to search for trading sytems, downloaders, screens, custom drawing tools, indicators... by country, market or style.