Gamestudio Links
Zorro Links
Newest Posts
Hedge on FXCM, 4 or 5?
by Martin_HH. 02/16/26 16:09
Camera always moves upwards?
by clonman. 02/16/26 11:44
Zorro version 3.0 prerelease!
by jcl. 02/12/26 14:05
MarginCost discrepancy?
by jcl. 02/12/26 14:02
CMC MT4 CFD vs FX Active - what's better?
by mayarik. 02/11/26 11:00
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (qin, TipmyPip), 8,868 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon, mayarik
19198 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: 28,072
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,072
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