#include <TesterReport.h>
Public Member Functions | |
TesterReport (QWidget *) | |
~TesterReport () | |
void | getSummary (QStringList &) |
void | createSummary (QPtrList< TradeItem > &, double account) |
void | addTrade (QString &, TradeItem *) |
void | clear () |
Protected Attributes | |
QTable * | tradeList |
QLabel * | summaryBalance |
QLabel * | summaryNetProfit |
QLabel * | summaryNetPercentage |
QLabel * | summaryInvestment |
QLabel * | summaryCommission |
QLabel * | summaryDrawdown |
QLabel * | summaryLongTrades |
QLabel * | summaryShortTrades |
QLabel * | summaryTrades |
QLabel * | summaryWinTrades |
QLabel * | summaryTotalWinTrades |
QLabel * | summaryAverageWin |
QLabel * | summaryLargestWin |
QLabel * | summaryWinLongTrades |
QLabel * | summaryWinShortTrades |
QLabel * | summaryLoseTrades |
QLabel * | summaryTotalLoseTrades |
QLabel * | summaryAverageLose |
QLabel * | summaryLargestLose |
QLabel * | summaryLoseLongTrades |
QLabel * | summaryLoseShortTrades |
Definition at line 32 of file TesterReport.h.
TesterReport::TesterReport | ( | QWidget * | p | ) |
Definition at line 29 of file TesterReport.cpp.
References summaryAverageLose, summaryAverageWin, summaryBalance, summaryCommission, summaryDrawdown, summaryInvestment, summaryLargestLose, summaryLargestWin, summaryLongTrades, summaryLoseLongTrades, summaryLoseShortTrades, summaryLoseTrades, summaryNetPercentage, summaryNetProfit, summaryShortTrades, summaryTotalLoseTrades, summaryTotalWinTrades, summaryTrades, summaryWinLongTrades, summaryWinShortTrades, summaryWinTrades, and tradeList.
TesterReport::~TesterReport | ( | ) |
Definition at line 142 of file TesterReport.cpp.
void TesterReport::getSummary | ( | QStringList & | rl | ) |
Definition at line 146 of file TesterReport.cpp.
References tradeList.
Referenced by Tester::saveRule().
void TesterReport::createSummary | ( | QPtrList< TradeItem > & | trades, | |
double | account | |||
) |
Definition at line 196 of file TesterReport.cpp.
References TradeItem::getBalance(), TradeItem::getEnterDateString(), TradeItem::getEnterPrice(), TradeItem::getEntryCom(), TradeItem::getExitCom(), TradeItem::getExitDateString(), TradeItem::getExitPrice(), TradeItem::getExitSignalString(), TradeItem::getProfit(), TradeItem::getTradePosition(), TradeItem::getTradePositionString(), TradeItem::getVolume(), TradeItem::Long, summaryAverageLose, summaryAverageWin, summaryBalance, summaryCommission, summaryDrawdown, summaryInvestment, summaryLargestLose, summaryLargestWin, summaryLongTrades, summaryLoseLongTrades, summaryLoseShortTrades, summaryLoseTrades, summaryNetPercentage, summaryNetProfit, summaryShortTrades, summaryTotalLoseTrades, summaryTotalWinTrades, summaryTrades, summaryWinLongTrades, summaryWinShortTrades, summaryWinTrades, and tradeList.
Referenced by Tester::loadRule(), and Tester::test().
void TesterReport::addTrade | ( | QString & | s, | |
TradeItem * | trade | |||
) |
Definition at line 162 of file TesterReport.cpp.
References Bar::getDate(), Bar::setDate(), TradeItem::setEnterDate(), TradeItem::setEnterPrice(), TradeItem::setExitDate(), TradeItem::setExitPrice(), TradeItem::setExitSignal(), TradeItem::setTradePosition(), TradeItem::setVolume(), and TradeItem::Short.
Referenced by Tester::loadRule().
void TesterReport::clear | ( | ) |
Definition at line 314 of file TesterReport.cpp.
References tradeList.
Referenced by Tester::loadRule(), and Tester::test().
QTable* TesterReport::tradeList [protected] |
Definition at line 45 of file TesterReport.h.
Referenced by clear(), createSummary(), getSummary(), and TesterReport().
QLabel* TesterReport::summaryBalance [protected] |
QLabel* TesterReport::summaryNetProfit [protected] |
QLabel* TesterReport::summaryNetPercentage [protected] |
QLabel* TesterReport::summaryInvestment [protected] |
QLabel* TesterReport::summaryCommission [protected] |
QLabel* TesterReport::summaryDrawdown [protected] |
QLabel* TesterReport::summaryLongTrades [protected] |
QLabel* TesterReport::summaryShortTrades [protected] |
QLabel* TesterReport::summaryTrades [protected] |
QLabel* TesterReport::summaryWinTrades [protected] |
QLabel* TesterReport::summaryTotalWinTrades [protected] |
QLabel* TesterReport::summaryAverageWin [protected] |
QLabel* TesterReport::summaryLargestWin [protected] |
QLabel* TesterReport::summaryWinLongTrades [protected] |
QLabel* TesterReport::summaryWinShortTrades [protected] |
QLabel* TesterReport::summaryLoseTrades [protected] |
QLabel* TesterReport::summaryTotalLoseTrades [protected] |
QLabel* TesterReport::summaryAverageLose [protected] |
QLabel* TesterReport::summaryLargestLose [protected] |
QLabel* TesterReport::summaryLoseLongTrades [protected] |
QLabel* TesterReport::summaryLoseShortTrades [protected] |