Click here to Login

Trading Software Trading objects Features How-to Blog Search


                                                   Count() with STDdev function anomoly

  0

0
Stefan Kroscen
2011-05-22 15:51:06


Hi,

I'm getting a result I don't understand; not sure if it is a bug or not. What I want to do is get the standard deviation over the entire length of previous bars. Stddev
doesn't appear to support that directly, so I thought if I supply the the Count() function as the number of bars it should work.

It doesn't though... it returns 0. Is this correct? If so, is there another way to accomplish this?

Thanks!

You can plot these to see what I mean.

closeAdjMax = Stddev(close,Count()-1);
Plot(Count(), "count", colorgreen|0|colorgreen|0|0, ChartLine, StyleOwnScale);
Plot(closeAdjMax, "closeAdjMax", colorbrown|0|colorbrown|0|0, ChartLine, StyleOwnScale);



QuantShare
2011-05-23 05:23:36

  0

Best Answer
Hi,

The "Stddev" doesn't support dynamic period parameter.
We will make the appropriate changes to this function. You will be able to calculate the standard deviation of all bars by typing:
a = Stddev(close, 0);



Stefan Kroscen
2011-05-23 18:56:14

  0

Thankyou for taking a look!


No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
News parser function
Stocks with an EPS Several Times Higher than the Industry Average...
Stocks with the highest Volume Increase
Swing Point Function (SP)
Fibonacci Trading with the Retracement Levels/Ratios

How-to Lessons
How to screen for stocks having a high correlation with the Dow J...
How to associate an index with a list of stocks
How to create a chart with a black background
How to speed up watchlist and screener plug-ins when working with...
How to plot a time-series that do not update the chart scale

Related Forum Threads
Interpretation of " DRAWDOWNEQ" function
TimeframeApply function
Use of Comp with Full Ranking System
Calling a Function from another Function
How can I see charts with logarithmic scale on y-axis?

Blog Posts
Working with the formula editor
Display several stock market charts with one click
Trading System: Buy stocks with the highest Sharpe ratio
Ranking stocks based on their correlation with the S&P 500 Index
Screening with the composite indicators









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
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