Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, rki), 390 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
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