Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/19/24 18:45
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
4 registered members (AndrewAMD, Ayumi, kzhao, 7th_zorro), 735 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Curves of every optimize step #482384
01/31/21 20:36
01/31/21 20:36
Joined: Aug 2020
Posts: 59
London
Neb Offline OP
Junior Member
Neb  Offline OP
Junior Member

Joined: Aug 2020
Posts: 59
London

Hi,

Does anyone have example how I can do export of profit/loss curves of every optimize step ?
How I can declare Curves file ?

Thanks,

Neb

Re: Curves of every optimize step [Re: Neb] #482391
02/01/21 11:40
02/01/21 11:40
Joined: Aug 2020
Posts: 59
London
Neb Offline OP
Junior Member
Neb  Offline OP
Junior Member

Joined: Aug 2020
Posts: 59
London
Hi all,

I found this snippet, but not sure where to put it ?
It is crashing if I put it inside run().

byte *Content = file_content("Log\\Balance.curves");
while(*Content)
{
string Name = Content;
Content += strlen(Name)+1; // skip the name
int *Size = Content;
Content += 4; // skip the size
var *Values = Content;
Content += *Size; // skip the balance array
int Num = *Size/8; // number of values
var Profit = Values[Num-1]; // end balance
printf("\n%s: %.2f",Name,Profit);
}


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1