Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Imhotep, opm), 785 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Additional information to status page while trading #472102
04/07/18 17:38
04/07/18 17:38
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline OP
User
Sphin  Offline OP
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
Is there a chance to add information to the status page while trading so that they are updated the same way as e.g. 'System State'? If I use print(TO_HTML) in the evaluate(PERFORMANCE* perf) function the information are repeatingly listed each time the status page is updated what means that after 100 updates most of the status page is filled with a history of my additional info. Is this a bug or should it be a feature?
BTW print(TO_REPORT) in the evaluate(PERFORMANCE* perf) function doesn't seem to add info to the performance report at all.

Thanks, Sphin

Re: Additional information to status page while trading [Re: Sphin] #472116
04/09/18 14:03
04/09/18 14:03
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
print(TO_HTML) is correct. I don't know the reason of your problem, but here's the code with which Z12 prints the cells of its algo result table - hope this helps:

Code:
print(TO_HTML,"<td");
if(NumWinLong+NumLossLong+NumWinShort+NumLossShort > 0) {
	if(NoLong || NoShort)
		print(TO_HTML," bgcolor="#FF0000"");
	else if(EquityLongF[0] + EquityShortF[0] > 0)
		print(TO_HTML," bgcolor="#00FF00"");
	print(TO_HTML,">%s:",Algo);
	if(!NoLong && NumWinLong+NumLossLong > 0) print(TO_HTML,"L");
	if(!NoShort && NumWinShort+NumLossShort > 0) print(TO_HTML,"S");
	print(TO_HTML," %+.0f",ProfitClosed+ProfitOpen);
} else
	print(TO_HTML,">");
print(TO_HTML,"</td>");


Re: Additional information to status page while trading [Re: jcl] #472123
04/09/18 16:51
04/09/18 16:51
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline OP
User
Sphin  Offline OP
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
Is this code within the evaluate(PERFORMANCE* perf) function or within the run() function?

Re: Additional information to status page while trading [Re: Sphin] #472134
04/10/18 11:01
04/10/18 11:01
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
Within the run() function.

Re: Additional information to status page while trading [Re: jcl] #472190
04/15/18 09:49
04/15/18 09:49
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline OP
User
Sphin  Offline OP
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
This seems to work without repeatings, thanks.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1