Click here to Login





                                                   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
Advanced Quotes and Custom Databases Function
Enhanced Candlestick Chart with Volume Variation
Swing Point Function (SP)
Stocks with an EPS Several Times Higher than the Industry Average...

How-to Lessons
How to screen for stocks having a high correlation with the Dow J...
How to create a chart with a black background
How to associate an index with a list of stocks
How to use QuantShare with Metastock data
How to speed up watchlist and screener plug-ins when working with...

Related Forum Threads
Problem with performance calculation in custom function
Problems with the Composite Function
Creating Shortcuts with arrow keys? Function keys?
Interpretation of " DRAWDOWNEQ" function
TimeframeApply function

Blog Posts
Working with the formula editor
How to Optimize a Trading System with Thousands of Billions of Co...
Create Profitable Trading Strategies with Exchange Traded Funds (...
Long Term Trading with Technical Analysis
Trading System: Buy stocks with the highest Sharpe ratio









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 © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.