Posted By: Neb
Curves of every optimize step - 01/31/21 20:36
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
Posted By: Neb
Re: Curves of every optimize step - 02/01/21 11:40
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);
}