Gamestudio Links
Zorro Links
Newest Posts
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (AndrewAMD, Martin_HH, EW_bytes, JeyKey II, Grant), 8,031 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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,149
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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

Chief Engineer
jcl  Offline

Chief Engineer

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