#include <TesterStopPage.h>
Definition at line 36 of file TesterStopPage.h.
TesterStopPage::TesterStopPage | ( | QWidget * | p | ) |
Definition at line 33 of file TesterStopPage.cpp.
References customLongStopCheck, customLongStopEdit, customLongStopLine, customLongStopToggled(), customShortStopCheck, customShortStopEdit, customShortStopLine, customShortStopToggled(), FormulaEdit::Logic, maximumLossCheck, maximumLossEdit, maximumLossLong, maximumLossShort, maximumLossToggled(), profitCheck, profitEdit, profitLong, profitShort, profitToggled(), trailingCheck, trailingEdit, trailingLong, trailingShort, trailingToggled(), and validator.
TesterStopPage::~TesterStopPage | ( | ) |
Definition at line 137 of file TesterStopPage.cpp.
References customLongStopLine, and customShortStopLine.
bool TesterStopPage::loadCustomLongStop | ( | BarData * | recordList | ) |
Definition at line 257 of file TesterStopPage.cpp.
References IndicatorPlugin::calculate(), Config::closePlugin(), PlotLine::copy(), customLongStopCheck, customLongStopEdit, customLongStopLine, Config::getIndicatorPlugin(), Indicator::getLine(), FormulaEdit::getLines(), FormulaEdit::getText(), IndicatorPlugin::setCustomFunction(), and IndicatorPlugin::setIndicatorInput().
Referenced by Tester::test().
bool TesterStopPage::loadCustomShortStop | ( | BarData * | recordList | ) |
Definition at line 210 of file TesterStopPage.cpp.
References IndicatorPlugin::calculate(), Config::closePlugin(), PlotLine::copy(), customLongStopLine, customShortStopCheck, customShortStopEdit, customShortStopLine, Config::getIndicatorPlugin(), Indicator::getLine(), FormulaEdit::getLines(), FormulaEdit::getText(), IndicatorPlugin::setCustomFunction(), and IndicatorPlugin::setIndicatorInput().
Referenced by Tester::test().
void TesterStopPage::saveCustomStopRule | ( | QString & | ruleName | ) |
Definition at line 346 of file TesterStopPage.cpp.
References customLongStopEdit, customShortStopEdit, Config::getData(), FormulaEdit::getText(), and Config::TestPath.
Referenced by Tester::saveRule().
void TesterStopPage::loadCustomStopRule | ( | QString & | ruleName | ) |
Definition at line 304 of file TesterStopPage.cpp.
References customLongStopEdit, customShortStopEdit, Config::getData(), FormulaEdit::setLine(), and Config::TestPath.
Referenced by Tester::loadRule().
bool TesterStopPage::maximumLoss | ( | bool | flag, | |
double | enterPrice, | |||
double | exitPrice | |||
) |
Definition at line 374 of file TesterStopPage.cpp.
References maximumLossCheck, and maximumLossEdit.
Referenced by Tester::enterTrade().
bool TesterStopPage::profit | ( | bool | flag, | |
double | enterPrice, | |||
double | exitPrice | |||
) |
Definition at line 395 of file TesterStopPage.cpp.
References profitCheck, and profitEdit.
Referenced by Tester::enterTrade().
bool TesterStopPage::trailing | ( | bool | flag, | |
double | exitPrice | |||
) |
Definition at line 416 of file TesterStopPage.cpp.
References trailingCheck, trailingEdit, trailingHigh, and trailingLow.
Referenced by Tester::enterTrade().
bool TesterStopPage::customStop | ( | bool | flag, | |
int | index | |||
) |
Definition at line 451 of file TesterStopPage.cpp.
References customLongStopCheck, customLongStopEdit, customLongStopLine, customShortStopCheck, customShortStopEdit, customShortStopLine, PlotLine::getData(), FormulaEdit::getLines(), and PlotLine::getSize().
Referenced by Tester::enterTrade().
void TesterStopPage::setTrailingHigh | ( | double | d | ) |
Definition at line 603 of file TesterStopPage.cpp.
References trailingHigh.
Referenced by Tester::enterTrade().
bool TesterStopPage::getMaximumLossCheck | ( | ) |
Definition at line 481 of file TesterStopPage.cpp.
References maximumLossCheck.
Referenced by Tester::saveRule().
void TesterStopPage::setMaximumLossCheck | ( | bool | d | ) |
Definition at line 486 of file TesterStopPage.cpp.
References maximumLossCheck.
Referenced by Tester::loadRule().
bool TesterStopPage::getMaximumLossLong | ( | ) |
Definition at line 491 of file TesterStopPage.cpp.
References maximumLossLong.
Referenced by Tester::saveRule().
void TesterStopPage::setMaximumLossLong | ( | bool | d | ) |
Definition at line 496 of file TesterStopPage.cpp.
References maximumLossLong.
Referenced by Tester::loadRule().
bool TesterStopPage::getMaximumLossShort | ( | ) |
Definition at line 501 of file TesterStopPage.cpp.
References maximumLossShort.
Referenced by Tester::saveRule().
void TesterStopPage::setMaximumLossShort | ( | bool | d | ) |
Definition at line 506 of file TesterStopPage.cpp.
References maximumLossShort.
Referenced by Tester::loadRule().
QString TesterStopPage::getMaximumLossEdit | ( | ) |
Definition at line 511 of file TesterStopPage.cpp.
References maximumLossEdit.
Referenced by Tester::saveRule().
void TesterStopPage::setMaximumLossEdit | ( | QString | d | ) |
Definition at line 516 of file TesterStopPage.cpp.
References maximumLossEdit.
Referenced by Tester::loadRule().
bool TesterStopPage::getProfitCheck | ( | ) |
Definition at line 521 of file TesterStopPage.cpp.
References profitCheck.
Referenced by Tester::saveRule().
void TesterStopPage::setProfitCheck | ( | bool | d | ) |
Definition at line 526 of file TesterStopPage.cpp.
References profitCheck.
Referenced by Tester::loadRule().
bool TesterStopPage::getProfitLong | ( | ) |
Definition at line 531 of file TesterStopPage.cpp.
References profitLong.
Referenced by Tester::saveRule().
void TesterStopPage::setProfitLong | ( | bool | d | ) |
Definition at line 536 of file TesterStopPage.cpp.
References profitLong.
Referenced by Tester::loadRule().
bool TesterStopPage::getProfitShort | ( | ) |
Definition at line 541 of file TesterStopPage.cpp.
References profitShort.
Referenced by Tester::saveRule().
void TesterStopPage::setProfitShort | ( | bool | d | ) |
Definition at line 546 of file TesterStopPage.cpp.
References profitShort.
Referenced by Tester::loadRule().
QString TesterStopPage::getProfitEdit | ( | ) |
Definition at line 551 of file TesterStopPage.cpp.
References profitEdit.
Referenced by Tester::saveRule().
void TesterStopPage::setProfitEdit | ( | QString | d | ) |
Definition at line 556 of file TesterStopPage.cpp.
References profitEdit.
Referenced by Tester::loadRule().
bool TesterStopPage::getTrailingCheck | ( | ) |
Definition at line 563 of file TesterStopPage.cpp.
References trailingCheck.
Referenced by Tester::saveRule().
void TesterStopPage::setTrailingCheck | ( | bool | d | ) |
Definition at line 568 of file TesterStopPage.cpp.
References trailingCheck.
Referenced by Tester::loadRule().
bool TesterStopPage::getTrailingLong | ( | ) |
Definition at line 573 of file TesterStopPage.cpp.
References trailingLong.
Referenced by Tester::saveRule().
void TesterStopPage::setTrailingLong | ( | bool | d | ) |
Definition at line 578 of file TesterStopPage.cpp.
References trailingLong.
Referenced by Tester::loadRule().
bool TesterStopPage::getTrailingShort | ( | ) |
Definition at line 583 of file TesterStopPage.cpp.
References trailingShort.
Referenced by Tester::saveRule().
void TesterStopPage::setTrailingShort | ( | bool | d | ) |
Definition at line 588 of file TesterStopPage.cpp.
References trailingShort.
Referenced by Tester::loadRule().
QString TesterStopPage::getTrailingEdit | ( | ) |
Definition at line 593 of file TesterStopPage.cpp.
References trailingEdit.
Referenced by Tester::saveRule().
void TesterStopPage::setTrailingEdit | ( | QString | d | ) |
Definition at line 598 of file TesterStopPage.cpp.
References trailingEdit.
Referenced by Tester::loadRule().
void TesterStopPage::maximumLossToggled | ( | bool | status | ) | [slot] |
Definition at line 146 of file TesterStopPage.cpp.
References maximumLossEdit, maximumLossLong, and maximumLossShort.
Referenced by TesterStopPage().
void TesterStopPage::profitToggled | ( | bool | status | ) | [slot] |
Definition at line 162 of file TesterStopPage.cpp.
References profitEdit, profitLong, and profitShort.
Referenced by TesterStopPage().
void TesterStopPage::trailingToggled | ( | bool | status | ) | [slot] |
Definition at line 178 of file TesterStopPage.cpp.
References trailingEdit, trailingLong, and trailingShort.
Referenced by TesterStopPage().
void TesterStopPage::customLongStopToggled | ( | bool | status | ) | [slot] |
Definition at line 202 of file TesterStopPage.cpp.
References customLongStopEdit.
Referenced by TesterStopPage().
void TesterStopPage::customShortStopToggled | ( | bool | status | ) | [slot] |
Definition at line 194 of file TesterStopPage.cpp.
References customShortStopEdit.
Referenced by TesterStopPage().
QCheckBox* TesterStopPage::maximumLossCheck [protected] |
Definition at line 89 of file TesterStopPage.h.
Referenced by getMaximumLossCheck(), maximumLoss(), setMaximumLossCheck(), and TesterStopPage().
QCheckBox* TesterStopPage::maximumLossLong [protected] |
Definition at line 90 of file TesterStopPage.h.
Referenced by getMaximumLossLong(), maximumLossToggled(), setMaximumLossLong(), and TesterStopPage().
QCheckBox* TesterStopPage::maximumLossShort [protected] |
Definition at line 91 of file TesterStopPage.h.
Referenced by getMaximumLossShort(), maximumLossToggled(), setMaximumLossShort(), and TesterStopPage().
QCheckBox* TesterStopPage::profitCheck [protected] |
Definition at line 92 of file TesterStopPage.h.
Referenced by getProfitCheck(), profit(), setProfitCheck(), and TesterStopPage().
QCheckBox* TesterStopPage::profitLong [protected] |
Definition at line 93 of file TesterStopPage.h.
Referenced by getProfitLong(), profitToggled(), setProfitLong(), and TesterStopPage().
QCheckBox* TesterStopPage::profitShort [protected] |
Definition at line 94 of file TesterStopPage.h.
Referenced by getProfitShort(), profitToggled(), setProfitShort(), and TesterStopPage().
QCheckBox* TesterStopPage::trailingCheck [protected] |
Definition at line 95 of file TesterStopPage.h.
Referenced by getTrailingCheck(), setTrailingCheck(), TesterStopPage(), and trailing().
QCheckBox* TesterStopPage::trailingLong [protected] |
Definition at line 96 of file TesterStopPage.h.
Referenced by getTrailingLong(), setTrailingLong(), TesterStopPage(), and trailingToggled().
QCheckBox* TesterStopPage::trailingShort [protected] |
Definition at line 97 of file TesterStopPage.h.
Referenced by getTrailingShort(), setTrailingShort(), TesterStopPage(), and trailingToggled().
QCheckBox* TesterStopPage::customLongStopCheck [protected] |
Definition at line 98 of file TesterStopPage.h.
Referenced by customStop(), loadCustomLongStop(), and TesterStopPage().
QCheckBox* TesterStopPage::customShortStopCheck [protected] |
Definition at line 99 of file TesterStopPage.h.
Referenced by customStop(), loadCustomShortStop(), and TesterStopPage().
QLineEdit* TesterStopPage::maximumLossEdit [protected] |
Definition at line 100 of file TesterStopPage.h.
Referenced by getMaximumLossEdit(), maximumLoss(), maximumLossToggled(), setMaximumLossEdit(), and TesterStopPage().
QLineEdit* TesterStopPage::profitEdit [protected] |
Definition at line 101 of file TesterStopPage.h.
Referenced by getProfitEdit(), profit(), profitToggled(), setProfitEdit(), and TesterStopPage().
QLineEdit* TesterStopPage::trailingEdit [protected] |
Definition at line 102 of file TesterStopPage.h.
Referenced by getTrailingEdit(), setTrailingEdit(), TesterStopPage(), trailing(), and trailingToggled().
QDoubleValidator* TesterStopPage::validator [protected] |
FormulaEdit* TesterStopPage::customShortStopEdit [protected] |
Definition at line 104 of file TesterStopPage.h.
Referenced by customShortStopToggled(), customStop(), loadCustomShortStop(), loadCustomStopRule(), saveCustomStopRule(), and TesterStopPage().
FormulaEdit* TesterStopPage::customLongStopEdit [protected] |
Definition at line 105 of file TesterStopPage.h.
Referenced by customLongStopToggled(), customStop(), loadCustomLongStop(), loadCustomStopRule(), saveCustomStopRule(), and TesterStopPage().
double TesterStopPage::trailingHigh [protected] |
double TesterStopPage::trailingLow [protected] |
PlotLine* TesterStopPage::customShortStopLine [protected] |
Definition at line 108 of file TesterStopPage.h.
Referenced by customStop(), loadCustomShortStop(), TesterStopPage(), and ~TesterStopPage().
PlotLine* TesterStopPage::customLongStopLine [protected] |
Definition at line 109 of file TesterStopPage.h.
Referenced by customStop(), loadCustomLongStop(), loadCustomShortStop(), TesterStopPage(), and ~TesterStopPage().