Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by NeoDumont
Today at 04:24
New Aum and few things
by George
Yesterday at 20:47
Transfer free license to different device?
by AndrewAMD
Yesterday at 20:14
read MT4 tradehistory html to create tradereport in Zorro
by GHMC
Yesterday at 13:45
Oanda - Darwinex data syncronisation
by MatPed
06/16/18 17:13
Genetic Algorithm
by AndrewAMD
06/16/18 06:09
Sponsorship
by Firoball
06/15/18 21:55
AUM Magazine
Latest Screens
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Forgotten Tales - Demo version
RPG PARTY
Who's Online
5 registered (Superku, alibaba, AndrewAMD, 20BN, 1 invisible), 479 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
Raisinbran, Grodt, drack, Paul_der_Zweite, madeinquant
17981 Registered Users
Topic Options
Rate This Topic
#467110 - 07/16/17 11:00 Help in finding the missing snippet
MatPed Offline
Senior Member

Registered: 02/28/15
Posts: 437
Loc: Milano, Italy
Hi,
I remember that there was in the manual or in a forum post a snippet to print the Algos result as in z systems.
Something that print results as:
EUR/USD CT:L -62
USD/CHF CT:LS -130 HP:S +35
GBP/USD BB:LS +634 CY:LS +466
USD/CAD CT:LS -139
USD/JPY CT:L +884 CY:L +3464
AUD/USD HP:S +1076
NAS100 BB:L +797 CY:L +1768 HP: +5861
SPX500 CY:L -120 HP:L +51
US30 CT:L +1110 CY:LS +688
GER30
XAU/USD HP:LS +4231
XAG/USD HP:LS +3347
UK100 CY:LS +325 HP:L +526

but I can not find it anymore. Has somebody the right like to the manual page and/or forum post?

Thank you in advance

Top
#467124 - 07/17/17 11:30 Re: Help in finding the missing snippet [Re: MatPed]
jcl Offline

Chief Engineer

Registered: 07/22/00
Posts: 26363
Loc: Frankfurt
This is some of the code for a cell in the results table in Z1/Z2:

Code:
print(TO_HTML,"<td");
if(NumWinLong+NumLossLong+NumWinShort+NumLossShort > 0) {
	print(TO_HTML," bgcolor=\"#FF0000\"");
	print(TO_HTML,">%s:",Algo);
	if(NumWinLong+NumLossLong > 0) print(TO_HTML,"L"); 
	if(NumWinShort+NumLossShort > 0) print(TO_HTML,"S");
	print(TO_HTML," %+.0f",ProfitClosed+ProfitOpen);
} else
	print(TO_HTML,">");
print(TO_HTML,"</td>");


Top
#467125 - 07/17/17 11:32 Re: Help in finding the missing snippet [Re: jcl]
MatPed Offline
Senior Member

Registered: 02/28/15
Posts: 437
Loc: Milano, Italy
God Bless you! laugh

Top
#467589 - 08/14/17 19:28 Re: Help in finding the missing snippet [Re: MatPed]
MatPed Offline
Senior Member

Registered: 02/28/15
Posts: 437
Loc: Milano, Italy
Hi Jcl,
I gave a look to the code and I understand that you are playing in another league from a coding perspective, but I really need some explanation, because the code snippet you have posted is obscure to a simple mind like me laugh
I am stuck with the first line what is the "<td" string?
I do not understand the logic the snippet is printing only from the algo, nothing is printed regarding the Asset.
Should i call the snippet to update the Status report within the Algo/Asset loop or is better in a tick/tok function?

Thank you

Top
#467592 - 08/15/17 08:54 Re: Help in finding the missing snippet [Re: MatPed]
Dalla Offline
Member

Registered: 02/24/17
Posts: 263
<td is just partial HTML code.

The output will read something like
<td bgcolor="#FF0000">MyAlgoName: L 100</td>
or just
<td></td> (empty cell)
depending on the evaluation of the if/else block

Top
#467593 - 08/15/17 18:22 Re: Help in finding the missing snippet [Re: Dalla]
MatPed Offline
Senior Member

Registered: 02/28/15
Posts: 437
Loc: Milano, Italy
ok, thank you for your answer my html knowledge is zero!
Probably this is the reason I am struggling formatting a decent output with Zorro!

Ciao

Top



Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de