Gamestudio Links
Zorro Links
Newest Posts
Get a csv file into an array of structs, confused about lite-c
by easyX
6 minutes 32 seconds ago
Random walk vs Real price statistic
by kujo
Yesterday at 21:40
Inline functions in Lite-C
by MasterQ32
Yesterday at 21:04
Alpha Vantage API key - where to put?!
by veepsirtt
Yesterday at 10:26
Using standard C libraries with Zorro?
by Hredot
Yesterday at 02:51
AssetVars in Asset Lists
by Hredot
Yesterday at 02:50
How to count
by brax
02/17/18 20:15
AUM Magazine
Latest Screens
Forgotten Tales - Demo version
RPG PARTY
Triton Wing now available on Steam
AckCon'17: Lotter vs The World
Who's Online
21 registered (easyX, Hredot, kujo, alibaba, AndrewAMD, Kartoffel, DASFX, boatman, 4 invisible), 458 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
veepsirtt, trulala, elninio, Thwessen23, rmassip
17890 Registered Users
Topic Options
Rate This Topic
#468011 - 09/13/17 05:26 Standard Deviation?
flare9x Offline
Newbie

Registered: 09/13/17
Posts: 7
Loc: TX
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

Top
#468013 - 09/13/17 11:51 Re: Standard Deviation? [Re: flare9x]
brax Offline
Newbie

Registered: 08/02/17
Posts: 42
Loc: Spain
You only need to code this:

dev = StdDev(Price, 10);

The definition is here:

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

Look for it.

Top
#468029 - 09/13/17 22:12 Re: Standard Deviation? [Re: brax]
flare9x Offline
Newbie

Registered: 09/13/17
Posts: 7
Loc: TX
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

Top
#468033 - 09/14/17 11:51 Re: Standard Deviation? [Re: flare9x]
brax Offline
Newbie

Registered: 08/02/17
Posts: 42
Loc: Spain
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.

Top
#468035 - 09/14/17 14:37 Re: Standard Deviation? [Re: brax]
AndrewAMD Online
Member

Registered: 02/21/17
Posts: 155
Loc: Chicago
This is in Zorro help and not in the online manual for some reason.

Top
#468042 - 09/14/17 18:15 Re: Standard Deviation? [Re: AndrewAMD]
johnnyp Offline
Newbie

Registered: 08/12/17
Posts: 40
sorry, wrong thread.


Edited by johnnyp (09/14/17 18:16)

Top
#468110 - 09/19/17 02:03 Re: Standard Deviation? [Re: johnnyp]
flare9x Offline
Newbie

Registered: 09/13/17
Posts: 7
Loc: TX
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

Top
#468128 - 09/19/17 14:50 Re: Standard Deviation? [Re: flare9x]
johnnyp Offline
Newbie

Registered: 08/12/17
Posts: 40
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.

Top



Gamestudio download | chip programmers | Zorro platform | shop | resources | magazine | manual | support faq | bugs

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) 3dgamestudio.net