Gamestudio Links
Zorro Links
Newest Posts
New Zorro version 1.66
by Hredot
0 seconds ago
Deformers struct in MDL7 abspeichern.
by tagimbul
Today at 02:06
Votes for future features
by Hredot
Today at 01:48
What happens with particles, Memory wise?
by jumpman
Today at 00:41
Plotting on hour time scale
by Hredot
Yesterday at 17:42
AUM Magazine
Latest Screens
RPG PARTY
Triton Wing now available on Steam
AckCon'17: Lotter vs The World
Triton Wing
ZeaL
Who's Online
7 registered (Hredot, Dalla, AndrewAMD, firecrest, jyd, tagimbul, johnnyp), 455 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
CaptainPablo, blAx, BBX, jcadihere, Peeyotch
17759 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: 362
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: 25721
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: 362
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: 362
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 Online
Member

Registered: 02/24/17
Posts: 165
<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: 362
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 | beta features

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