Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Easy question #469940
12/14/17 14:51
12/14/17 14:51
Joined: Dec 2017
Posts: 42
Mongolia
T
Tuguldur717 Offline OP
Newbie
Tuguldur717  Offline OP
Newbie
T

Joined: Dec 2017
Posts: 42
Mongolia
Hi all. How can i display value of standart deviation of usdjpy(1 year data) by zorro test?

Re: Easy question [Re: Tuguldur717] #469949
12/15/17 12:47
12/15/17 12:47
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Code:
void run()
{
	BarPeriod = 1440;
	NumYears = 1;
	LookBack = 0;
	if(is(EXITRUN)) printf("nStdDev: %.4f",sqrt(Moment(ThisAsset->pClose,NumBars,2)));
}



Be sure that this is what you need - it's the standard deviation of the price, not of the returns.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1