TesterReport Class Reference

#include <TesterReport.h>

List of all members.

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


Detailed Description

Definition at line 32 of file TesterReport.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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().


Member Data Documentation

QTable* TesterReport::tradeList [protected]

Definition at line 45 of file TesterReport.h.

Referenced by clear(), createSummary(), getSummary(), and TesterReport().

QLabel* TesterReport::summaryBalance [protected]

Definition at line 46 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().

QLabel* TesterReport::summaryNetProfit [protected]

Definition at line 47 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().

QLabel* TesterReport::summaryNetPercentage [protected]

Definition at line 48 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().

QLabel* TesterReport::summaryInvestment [protected]

Definition at line 49 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().

QLabel* TesterReport::summaryCommission [protected]

Definition at line 50 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().

QLabel* TesterReport::summaryDrawdown [protected]

Definition at line 51 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().

QLabel* TesterReport::summaryLongTrades [protected]

Definition at line 52 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().

QLabel* TesterReport::summaryShortTrades [protected]

Definition at line 53 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().

QLabel* TesterReport::summaryTrades [protected]

Definition at line 54 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().

QLabel* TesterReport::summaryWinTrades [protected]

Definition at line 55 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().

QLabel* TesterReport::summaryTotalWinTrades [protected]

Definition at line 56 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().

QLabel* TesterReport::summaryAverageWin [protected]

Definition at line 57 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().

QLabel* TesterReport::summaryLargestWin [protected]

Definition at line 58 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().

QLabel* TesterReport::summaryWinLongTrades [protected]

Definition at line 59 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().

QLabel* TesterReport::summaryWinShortTrades [protected]

Definition at line 60 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().

QLabel* TesterReport::summaryLoseTrades [protected]

Definition at line 61 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().

QLabel* TesterReport::summaryTotalLoseTrades [protected]

Definition at line 62 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().

QLabel* TesterReport::summaryAverageLose [protected]

Definition at line 63 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().

QLabel* TesterReport::summaryLargestLose [protected]

Definition at line 64 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().

QLabel* TesterReport::summaryLoseLongTrades [protected]

Definition at line 65 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().

QLabel* TesterReport::summaryLoseShortTrades [protected]

Definition at line 66 of file TesterReport.h.

Referenced by createSummary(), and TesterReport().


The documentation for this class was generated from the following files: