Click here to Login

LiveZilla Live Help
LiveZilla Live Help
Trading Software Trading objects Features How-to Blog Search



Mean and Standard deviation - Z-Score

by QuantShare, 719 days ago
Share |

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.


Share This ->
Share |


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.

>>>> To get this item and hundreds of other items, click here to join and download the Best Trading Software for Free .



No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Write a review no reviews Number of downloads 7 downloads Notes Report an item


Type: Composite Index

Object ID: 381


Country:
All

Market: All

Style:
Technical Analysis




Related Trading Objects



Country
Page 1
Trading the Equity Curve
by QuantShare, uploaded several months ago


No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 4 Notes Report an item
Opening Range Breakout Indicator
by QuantShare, uploaded several months ago
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 3 Notes Report an item
Wilder's Smoothing - Moving Average
by QuantShare, uploaded several months ago
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 9 Notes Report an item
Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object









Join now
and get instant access for free to the trading software, the Sharing server and the Social network website.
Click here


Related objects
Show All
ADX Composite Indicator for the Stock Market (by Brian Brown, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 9 Notes Report an item
Forex Correlation Matrix (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 8 Notes Report an item
Weekly ETF Switch V 1.0 (by saratur, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 25 Notes Report an item
TSI - True Strength Index (by saratur, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 19 Notes Report an item
Average Performance of a trading rule during that past N days (by bug man, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 5 Notes Report an item
Ichimoku Kinko Hyo - Trading Indicator (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 25 Notes Report an item
Stock Ranking using Rate of Change and SMA Volume (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 20 Notes Report an item
Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object

Technical Analysis


Fundamental Analysis


Forum Threads



Random Blog Posts

Trend Following and Moving Averages

Put-Call Ratio for Individual Stocks

Historical Market Data

What's new in this trading software?

Historical volatility estimators

Short Selling Stocks

Stock split & dividend

Survivorship bias

Show All

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object






QuantShare
Product
QuantShare
Features
Create an account
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2012 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items