Gamestudio Links
Zorro Links
Newest Posts
Can't go to FALSEGOTO:DOUBLE?
by Turrican
Today at 00:34
Chamferbox Lucky Pack, once a year chance, 90% OFF limited deals
by Chamferbox
Yesterday at 21:10
How detect 200 bars after trade was opened?
by Tuguldur717
Yesterday at 13:58
Data quality and accuracy of test results
by brax
Yesterday at 13:44
Can be changed the header in Zorro?
by tomaslolo
Yesterday at 12:12
Price difference between last tick and previous.
by JRA
Yesterday at 11:47
Zorro on Linux
by alb
02/21/18 20:47
AUM Magazine
Latest Screens
Forgotten Tales - Demo version
RPG PARTY
Triton Wing now available on Steam
AckCon'17: Lotter vs The World
Who's Online
17 registered (dmac, Hredot, Cheulmen, BlackJack, MatPed, Kartoffel, alibaba, AndrewAMD, 3 invisible), 471 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
tomaslolo, dmac, alb, may, piddle61
17896 Registered Users
Topic Options
Rate This Topic
#467110 - 07/16/17 11:00 Help in finding the missing snippet
MatPed Online
Senior Member

Registered: 02/28/15
Posts: 404
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: 26227
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 Online
Senior Member

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

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

Registered: 02/28/15
Posts: 404
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: 252
<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 Online
Senior Member

Registered: 02/28/15
Posts: 404
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 | resources | magazine | manual | support faq | bugs

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) 3dgamestudio.net