Standard Deviation?

Posted By: flare9x

Standard Deviation? - 09/13/17 03:26

Hi All

I am new to Zorro and going through the workshops.

I see there is a SMA function, can we call a Standard Deviation function also?

Otherwise would need to create my own function for this.... is it STDEV or STD or DEV, is it hidden in the manual anywhere?

Thanks
Andrew
Posted By: Brax

Re: Standard Deviation? - 09/13/17 09:51

You only need to code this:

dev = StdDev(Price, 10);

The definition is here:

http://manual.zorro-trader.com/ta.htm

Look for it.
Posted By: flare9x

Re: Standard Deviation? - 09/13/17 20:12

Makes sense... however, i dont see it in this list!? ctrl f on page and StdDev doesnt reveal it in the page above... well it makes sense so will give it a whirl.

Thanks
Posted By: Brax

Re: Standard Deviation? - 09/14/17 09:51

Yes, it´s true. StdDev doesn´t appear on that page, my mistake.

Anyway, if you´re asking because you want to implement bollinger bands, you can see it in action on the first example at the end.

If you just wanted StdDev, you´ve got it already.
Posted By: AndrewAMD

Re: Standard Deviation? - 09/14/17 12:37

This is in Zorro help and not in the online manual for some reason.
Posted By: johnnyp

Re: Standard Deviation? - 09/14/17 16:15

sorry, wrong thread.
Posted By: flare9x

Re: Standard Deviation? - 09/19/17 00:03

All good - Yes I see it in the zorro help. They have zscore in there also which is useful. Its the reason why I wanted to have stdev.

Thanks
Posted By: johnnyp

Re: Standard Deviation? - 09/19/17 12:50

Question for the devs... Does zscore use StdDev from ta-lib?

If that is the case, then if StdDev < 0.0001, StdDev returns 0 and funny things will happen.
© 2024 lite-C Forums