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>");