Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Study Strategy Tabella Report Quick-Performance QTA //
- // Creare Uno Strategy //
- // Vedi Scrren In Cartella ...
- // Attivare il commentary su tradestaton: View / Application Toolbars / Customize / Toolbars E attivare Charting-Tools-Classic
- // Andare su toobars-options "vicino a settings" Chart Analysys Toolbars / "cercare Analysys Commentari e attivarlo"
- {Questo codice applicato alla fine del nostro trading system ci riporterà nel Commentary delle quick performance della strategia.
- E’ molto utile quando siamo in fase di sviluppo di una strategia, per vedere velocemente come si comporta senza necessariamente aprire ogni volta il report del backtest.}
- If LastBarOnChart then begin
- Commentary(
- "<table style='width:100%; border-collapse: collapse;'>",
- "<tr style='background-color: #f2f2f2;'><th style='width:60%; padding: 10px; border: 1px solid #ddd;'>Metric</th><th style='width:40%; padding: 10px; border: 1px solid #ddd;'>Value</th></tr>",
- "<tr><td style='padding: 10px; border: 1px solid #ddd;'>Symbol</td><td style='padding: 10px; border: 1px solid #ddd;'>", getsymbolname, "</td></tr>",
- "<tr style='background-color: #f2f2f2;'><td style='padding: 10px; border: 1px solid #ddd;'>Net Profit</td><td style='padding: 10px; border: 1px solid #ddd;'>", NetProfit, "</td></tr>",
- "<tr><td style='padding: 10px; border: 1px solid #ddd;'>Gross Profit</td><td style='padding: 10px; border: 1px solid #ddd;'>", GrossProfit, "</td></tr>",
- "<tr style='background-color: #f2f2f2;'><td style='padding: 10px; border: 1px solid #ddd;'>Gross Loss</td><td style='padding: 10px; border: 1px solid #ddd;'>", GrossLoss, "</td></tr>",
- "<tr><td style='padding: 10px; border: 1px solid #ddd;'>Max Drawdown %</td><td style='padding: 10px; border: 1px solid #ddd;'>", maxiddrawdown, "</td></tr>",
- "<tr style='background-color: #f2f2f2;'><td style='padding: 10px; border: 1px solid #ddd;'>Total Trades</td><td style='padding: 10px; border: 1px solid #ddd;'>", TotalTrades:0:0, "</td></tr>",
- "<tr><td style='padding: 10px; border: 1px solid #ddd;'>Average Trade Net Profit</td><td style='padding: 10px; border: 1px solid #ddd;'>", (NetProfit / TotalTrades), "</td></tr>",
- "<tr style='background-color: #f2f2f2;'><td style='padding: 10px; border: 1px solid #ddd;'>Percent Profitable</td><td style='padding: 10px; border: 1px solid #ddd;'>", percentprofit:0:1, "%</td></tr>",
- "<tr><td style='padding: 10px; border: 1px solid #ddd;'>Profit Factor</td><td style='padding: 10px; border: 1px solid #ddd;'>", (grossprofit /absvalue(grossloss)), "</td></tr>",
- "</table>"
- );
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement