#include <TesterTestPage.h>
Public Slots | |
void | symbolButtonPressed () |
Public Member Functions | |
TesterTestPage (QWidget *) | |
~TesterTestPage () | |
bool | getTradeLong () |
void | setTradeLong (bool) |
bool | getTradeShort () |
void | setTradeShort (bool) |
int | getVolumePercent () |
void | setVolumePercent (int) |
double | getEntryCom () |
void | setEntryCom (double) |
double | getExitCom () |
void | setExitCom (double) |
int | getTradeDelay () |
void | setTradeDelay (int) |
QString | getPriceField () |
void | setPriceField (QString) |
int | getBars () |
void | setBars (int) |
QString | getSymbol () |
QString | getSymbolPath () |
void | setSymbol (QString) |
int | getAccount () |
void | setAccount (int) |
QString | getBarLength () |
int | getBarLengthIndex () |
void | setBarLength (QString) |
int | getMargin () |
void | setMargin (int) |
bool | getCommissionType () |
void | setCommissionType (bool) |
Protected Attributes | |
QCheckBox * | tradeLong |
QCheckBox * | tradeShort |
QCheckBox * | commissionType |
SymbolButton * | symbolButton |
QLineEdit * | entryCom |
QLineEdit * | exitCom |
QSpinBox * | account |
QSpinBox * | volumePercent |
QSpinBox * | margin |
QSpinBox * | tradeDelay |
QSpinBox * | bars |
QComboBox * | priceField |
QComboBox * | barLength |
QStringList | fieldList |
QStringList | barLengthList |
Definition at line 34 of file TesterTestPage.h.
TesterTestPage::TesterTestPage | ( | QWidget * | p | ) |
Definition at line 31 of file TesterTestPage.cpp.
References account, barLength, barLengthList, bars, commissionType, Config::DataPath, entryCom, exitCom, fieldList, BarData::getBarLengthList(), Config::getData(), margin, priceField, symbolButton, symbolButtonPressed(), tradeDelay, tradeLong, tradeShort, and volumePercent.
TesterTestPage::~TesterTestPage | ( | ) |
Definition at line 161 of file TesterTestPage.cpp.
bool TesterTestPage::getTradeLong | ( | ) |
Definition at line 171 of file TesterTestPage.cpp.
References tradeLong.
Referenced by Tester::saveRule(), and Tester::test().
void TesterTestPage::setTradeLong | ( | bool | d | ) |
Definition at line 176 of file TesterTestPage.cpp.
References tradeLong.
Referenced by Tester::loadRule().
bool TesterTestPage::getTradeShort | ( | ) |
Definition at line 181 of file TesterTestPage.cpp.
References tradeShort.
Referenced by Tester::saveRule(), and Tester::test().
void TesterTestPage::setTradeShort | ( | bool | d | ) |
Definition at line 186 of file TesterTestPage.cpp.
References tradeShort.
Referenced by Tester::loadRule().
int TesterTestPage::getVolumePercent | ( | ) |
Definition at line 191 of file TesterTestPage.cpp.
References volumePercent.
Referenced by Tester::getVolume(), and Tester::saveRule().
void TesterTestPage::setVolumePercent | ( | int | d | ) |
Definition at line 196 of file TesterTestPage.cpp.
References volumePercent.
Referenced by Tester::loadRule().
double TesterTestPage::getEntryCom | ( | ) |
Definition at line 201 of file TesterTestPage.cpp.
References entryCom.
Referenced by Tester::enterTrade(), Tester::loadRule(), and Tester::saveRule().
void TesterTestPage::setEntryCom | ( | double | d | ) |
Definition at line 206 of file TesterTestPage.cpp.
References entryCom.
Referenced by Tester::loadRule().
double TesterTestPage::getExitCom | ( | ) |
Definition at line 211 of file TesterTestPage.cpp.
References exitCom.
Referenced by Tester::enterTrade(), Tester::loadRule(), and Tester::saveRule().
void TesterTestPage::setExitCom | ( | double | d | ) |
Definition at line 216 of file TesterTestPage.cpp.
References exitCom.
Referenced by Tester::loadRule().
int TesterTestPage::getTradeDelay | ( | ) |
Definition at line 221 of file TesterTestPage.cpp.
References tradeDelay.
Referenced by Tester::enterTrade(), and Tester::saveRule().
void TesterTestPage::setTradeDelay | ( | int | d | ) |
Definition at line 226 of file TesterTestPage.cpp.
References tradeDelay.
Referenced by Tester::loadRule().
QString TesterTestPage::getPriceField | ( | ) |
Definition at line 231 of file TesterTestPage.cpp.
References priceField.
Referenced by Tester::getPrice(), and Tester::saveRule().
void TesterTestPage::setPriceField | ( | QString | d | ) |
Definition at line 236 of file TesterTestPage.cpp.
References priceField.
Referenced by Tester::loadRule().
int TesterTestPage::getBars | ( | ) |
Definition at line 241 of file TesterTestPage.cpp.
References bars.
Referenced by Tester::saveRule(), and Tester::test().
void TesterTestPage::setBars | ( | int | d | ) |
Definition at line 246 of file TesterTestPage.cpp.
References bars.
Referenced by Tester::loadRule().
QString TesterTestPage::getSymbol | ( | ) |
Definition at line 263 of file TesterTestPage.cpp.
References SymbolButton::getSymbol(), and symbolButton.
Referenced by Tester::test().
QString TesterTestPage::getSymbolPath | ( | ) |
Definition at line 251 of file TesterTestPage.cpp.
References SymbolButton::getPath(), and symbolButton.
Referenced by Tester::loadRule(), Tester::saveRule(), and Tester::test().
void TesterTestPage::setSymbol | ( | QString | d | ) |
Definition at line 258 of file TesterTestPage.cpp.
References SymbolButton::setSymbol(), and symbolButton.
Referenced by Tester::loadRule().
int TesterTestPage::getAccount | ( | ) |
Definition at line 270 of file TesterTestPage.cpp.
References account.
Referenced by Tester::enterTrade(), Tester::loadRule(), Tester::saveRule(), and Tester::test().
void TesterTestPage::setAccount | ( | int | d | ) |
Definition at line 275 of file TesterTestPage.cpp.
References account.
Referenced by Tester::loadRule().
QString TesterTestPage::getBarLength | ( | ) |
Definition at line 280 of file TesterTestPage.cpp.
References barLength.
Referenced by Tester::saveRule().
int TesterTestPage::getBarLengthIndex | ( | ) |
Definition at line 290 of file TesterTestPage.cpp.
References barLength, and barLengthList.
Referenced by Tester::test().
void TesterTestPage::setBarLength | ( | QString | d | ) |
Definition at line 285 of file TesterTestPage.cpp.
References barLength.
Referenced by Tester::loadRule().
int TesterTestPage::getMargin | ( | ) |
Definition at line 295 of file TesterTestPage.cpp.
References margin.
Referenced by Tester::enterTrade(), Tester::getVolume(), and Tester::saveRule().
void TesterTestPage::setMargin | ( | int | d | ) |
Definition at line 300 of file TesterTestPage.cpp.
References margin.
Referenced by Tester::loadRule().
bool TesterTestPage::getCommissionType | ( | ) |
Definition at line 305 of file TesterTestPage.cpp.
References commissionType.
Referenced by Tester::enterTrade(), Tester::loadRule(), and Tester::saveRule().
void TesterTestPage::setCommissionType | ( | bool | d | ) |
Definition at line 310 of file TesterTestPage.cpp.
References commissionType.
Referenced by Tester::loadRule().
void TesterTestPage::symbolButtonPressed | ( | ) | [slot] |
Definition at line 165 of file TesterTestPage.cpp.
References SymbolButton::getPath(), and symbolButton.
Referenced by TesterTestPage().
QCheckBox* TesterTestPage::tradeLong [protected] |
Definition at line 74 of file TesterTestPage.h.
Referenced by getTradeLong(), setTradeLong(), and TesterTestPage().
QCheckBox* TesterTestPage::tradeShort [protected] |
Definition at line 75 of file TesterTestPage.h.
Referenced by getTradeShort(), setTradeShort(), and TesterTestPage().
QCheckBox* TesterTestPage::commissionType [protected] |
Definition at line 76 of file TesterTestPage.h.
Referenced by getCommissionType(), setCommissionType(), and TesterTestPage().
SymbolButton* TesterTestPage::symbolButton [protected] |
Definition at line 77 of file TesterTestPage.h.
Referenced by getSymbol(), getSymbolPath(), setSymbol(), symbolButtonPressed(), and TesterTestPage().
QLineEdit* TesterTestPage::entryCom [protected] |
Definition at line 78 of file TesterTestPage.h.
Referenced by getEntryCom(), setEntryCom(), and TesterTestPage().
QLineEdit* TesterTestPage::exitCom [protected] |
Definition at line 79 of file TesterTestPage.h.
Referenced by getExitCom(), setExitCom(), and TesterTestPage().
QSpinBox* TesterTestPage::account [protected] |
Definition at line 80 of file TesterTestPage.h.
Referenced by getAccount(), setAccount(), and TesterTestPage().
QSpinBox* TesterTestPage::volumePercent [protected] |
Definition at line 81 of file TesterTestPage.h.
Referenced by getVolumePercent(), setVolumePercent(), and TesterTestPage().
QSpinBox* TesterTestPage::margin [protected] |
Definition at line 82 of file TesterTestPage.h.
Referenced by getMargin(), setMargin(), and TesterTestPage().
QSpinBox* TesterTestPage::tradeDelay [protected] |
Definition at line 83 of file TesterTestPage.h.
Referenced by getTradeDelay(), setTradeDelay(), and TesterTestPage().
QSpinBox* TesterTestPage::bars [protected] |
Definition at line 84 of file TesterTestPage.h.
Referenced by getBars(), setBars(), and TesterTestPage().
QComboBox* TesterTestPage::priceField [protected] |
Definition at line 85 of file TesterTestPage.h.
Referenced by getPriceField(), setPriceField(), and TesterTestPage().
QComboBox* TesterTestPage::barLength [protected] |
Definition at line 86 of file TesterTestPage.h.
Referenced by getBarLength(), getBarLengthIndex(), setBarLength(), and TesterTestPage().
QStringList TesterTestPage::fieldList [protected] |
QStringList TesterTestPage::barLengthList [protected] |
Definition at line 88 of file TesterTestPage.h.
Referenced by getBarLengthIndex(), and TesterTestPage().