|
From: Carlos <ma...@us...> - 2007-10-10 19:04:09
|
Update of /cvsroot/tail/Tail/Data/templates/complete In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv15290/Data/templates/complete Added Files: chart.ftl footer.ftl header.ftl report.ftl Log Message: Refatoração do Report. --- NEW FILE: report.ftl --- <#include "header.ftl"> <#include "chart.ftl"> <table align="center"> <tr> <th>Period</th> <th>Date</th> <th>Strategy</th> <th>${report.applyedCriterion.class.simpleName.split("Criterion")[0]}</th> <#list criterions as criterion> <th>${criterion.class.simpleName.split("Criterion")[0]}</th> </#list> </tr> <#assign x=1> <tr class="row2"> <td>${x}</td> <td class="date">${report.slicer.slice(0).period}</td> <td class="strategy">-</td> <td>-</td> <#list criterions as criterion> <td>-</td> </#list> </tr> <#list report.decisions as decision> <#if (x%2)= 0> <tr class="row2"> <#else> <tr class="row1"> </#if> <#assign x=x+1> <td>${x}</td> <td class="date">${decision.series.period}</td> <td class="strategy"><a href=${urls.get(x - 2)}>${decision.strategy.name}</a></td> <td>${report.applyedCriterion.calculate(decision.series, decision.trades)}</td> <#list criterions as criterion> <td>${criterion.calculate(decision.series, decision.trades)}</td> </#list> </tr> </#list> <tr class="total"> <td>TOTAL</td> <td>${report.slicer.series.period}</td> <td>-</td> <td>${report.applyedCriterion.summarize(report.slicer.series, report.decisions)}</td> <#list criterions as criterion> <td>${criterion.summarize(report.slicer.series, report.decisions)}</td> </#list> </tr> </table> <#include "footer.ftl"> --- NEW FILE: footer.ftl --- </body> </html> --- NEW FILE: header.ftl --- <html> <head> <title>Walk Forward Report</title> <link rel="stylesheet" type="text/css" href="style/style.css"> </head> <body> <h1>Walk Forward Report</h1> <h2>Stock: <span class="titleHeader">${report.slicer.series.name} for: ${report.slicer.series.period}</span></h2> <h3><span class="settingsFixed">Slicer:</span><span class="settings">${report.slicer.name}</span> <span class="settingsFixed">Strategy: </span> <span class="settings">${report.decisions[0].strategy.class.simpleName}</span> <span class="settingsFixed">Criteria: </span> <span class="settings">${report.applyedCriterion.class.simpleName}</span></h3> --- NEW FILE: chart.ftl --- <table align="left"> <tr> <img src=${image}> </tr> </table> <br> <br> |