Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, dr_panther), 1,275 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Where do I find .csv file from test? Plot asset equity curve? #433682
12/04/13 12:45
12/04/13 12:45
Joined: Jul 2013
Posts: 110
B
bfleming Offline OP
Member
bfleming  Offline OP
Member
B

Joined: Jul 2013
Posts: 110
I have LOGFILE set, but can't find the testtrades.csv file. Do I need to add something to the script?

Also, I'd like to plot the equity curve of a single asset in a multi-asset strategy with this code from the manual:

Code:
char name[40];
strcpy(name,AssetName);
strcat(name,":");
strcat(name,Algo);
var equity = EquityShort+EquityLong;
if(equity != 0) plot(name,equity,NEW|AVG,BLUE);



Could someone show me how it would look with EURUSD. I'm not sure what to place where "name","AssetName" and "Algo" are and in what form.

Many thanks!

Re: Where do I find .csv file from test? Plot asset equity curve? [Re: bfleming] #433691
12/04/13 14:23
12/04/13 14:23
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
All files are in the .log folder. If UAC is activated on your system, make sure to look in the right folder.

There is no "AssetName", it's "Asset". All string variables are listed in your manual unter "System variables".

Re: Where do I find .csv file from test? Plot asset equity curve? [Re: jcl] #433693
12/04/13 14:28
12/04/13 14:28
Joined: Jul 2013
Posts: 110
B
bfleming Offline OP
Member
bfleming  Offline OP
Member
B

Joined: Jul 2013
Posts: 110
Got it. Had to reboot after turning off UAC. BTW, when I open the .csv in Excel it doesn't separate the items into columns. I've never had that problem with other .csv files. Any ideas?

The code was copied directly from the manual in the Tips & Tricks section, so you may want to correct "AssetName" to "Asset".

Have already looked at the Systems variables, I'm just confused by what goes where "name" is in the code, or does that stay there as it is?

Re: Where do I find .csv file from test? Plot asset equity curve? [Re: bfleming] #433714
12/05/13 07:47
12/05/13 07:47
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
How do you write numbers in your country - with decimal point, or decimal comma? Your Excel will most likely follow the same convention and you must also store your CSV files in this way.

You can define variables in the code, such as the "name" string above. "AssetName" was also a string variable defined in the code with which that snippet was tested, but it makes indeed no sense without that context.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1