Gamestudio Links
Zorro Links
Newest Posts
Linear Regression in objective function
by brax
Yesterday at 20:32
Experienced 2D|3D Character artist|Concept Artist@ Indie Prices|
by DeathstalkerArs
Yesterday at 17:58
New Zorro version 1.66
by MatPed
Yesterday at 11:15
Cutting meshes merging meshes
by rayp
Yesterday at 05:51
Increase Max Lot Size Beyond 10000
by jcl
11/20/17 11:09
Spread value conditional
by ech87
11/20/17 08:58
MT4 vs Zorro
by Spirit
11/20/17 08:36
AUM Magazine
Latest Screens
RPG PARTY
Triton Wing now available on Steam
AckCon'17: Lotter vs The World
Triton Wing
Who's Online
4 registered (AndrewAMD, firecrest, vinsom, 1 invisible), 486 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
ech87, Lobo, Andy60, AzzoCorp, franzz
17813 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: 32
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: 32
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: 110
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: 38
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: 38
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