#include <Indicator.h>
Public Member Functions | |
Indicator () | |
~Indicator () | |
int | getLines () |
void | addLine (PlotLine *) |
void | prependLine (PlotLine *) |
PlotLine * | getLine (int) |
int | getTabRow () |
void | setTabRow (int) |
void | clearLines () |
void | setEnable (bool) |
bool | getEnable () |
void | setName (QString &) |
void | getName (QString &) |
void | setFile (QString &) |
void | getFile (QString &) |
void | copy (Indicator *) |
void | setType (QString &) |
void | getType (QString &) |
void | setDateFlag (bool) |
bool | getDateFlag () |
void | setLogScale (bool) |
bool | getLogScale () |
void | setIndicator (Setting &, QString &) |
Private Attributes | |
QPtrList< PlotLine > | lines |
bool | enable |
QString | name |
QString | file |
QString | type |
int | tabRow |
bool | dateFlag |
bool | logScale |
Definition at line 30 of file Indicator.h.
Indicator::Indicator | ( | ) |
Indicator::~Indicator | ( | ) |
Definition at line 35 of file Indicator.cpp.
int Indicator::getLines | ( | ) |
Definition at line 39 of file Indicator.cpp.
References lines.
Referenced by copy(), IndicatorPlot::drawInfo(), IndicatorPlot::drawLines(), IndicatorPlot::getInfo(), IndicatorSummary::run(), Scanner::scan(), DataWindow::setPlot(), and IndicatorPlot::setScale().
void Indicator::addLine | ( | PlotLine * | l | ) |
Definition at line 49 of file Indicator.cpp.
References lines.
Referenced by VOL::calculate(), VIDYA::calculate(), VFI::calculate(), THERM::calculate(), TALIB::calculate(), SZ::calculate(), SINWAV::calculate(), PP::calculate(), LOWPASS::calculate(), LMS::calculate(), FI::calculate(), ExScript::calculate(), BARS::calculate(), BARS::calculateMA(), copy(), CUS::createPlot(), and TesterChartPage::updateChart().
void Indicator::prependLine | ( | PlotLine * | l | ) |
PlotLine * Indicator::getLine | ( | int | i | ) |
Definition at line 44 of file Indicator.cpp.
References lines.
Referenced by copy(), IndicatorPlot::drawInfo(), IndicatorPlot::drawLines(), IndicatorPlot::getInfo(), TesterStopPage::loadCustomLongStop(), TesterStopPage::loadCustomShortStop(), Tester::loadSignals(), IndicatorSummary::run(), Scanner::scan(), DataWindow::setPlot(), and IndicatorPlot::setScale().
int Indicator::getTabRow | ( | ) |
Definition at line 64 of file Indicator.cpp.
References tabRow.
Referenced by QtstalkerApp::addIndicatorButton(), copy(), QtstalkerApp::slotDeleteIndicator(), and QtstalkerApp::slotDisableIndicator().
void Indicator::setTabRow | ( | int | d | ) |
Definition at line 59 of file Indicator.cpp.
References tabRow.
Referenced by copy(), IndicatorPage::newIndicator(), and setIndicator().
void Indicator::clearLines | ( | ) |
void Indicator::setEnable | ( | bool | status | ) |
Definition at line 74 of file Indicator.cpp.
References enable.
Referenced by copy(), and setIndicator().
bool Indicator::getEnable | ( | ) |
Definition at line 79 of file Indicator.cpp.
References enable.
Referenced by QtstalkerApp::addIndicatorButton(), copy(), IndicatorPlot::drawInfo(), IndicatorPlot::drawLines(), IndicatorPage::editIndicator(), IndicatorPlot::getInfo(), QtstalkerApp::loadChart(), IndicatorSummary::loadIndicators(), IndicatorPlot::setScale(), and QtstalkerApp::slotEnableIndicator().
void Indicator::setName | ( | QString & | d | ) |
Definition at line 84 of file Indicator.cpp.
References name.
Referenced by IndicatorPage::newIndicator(), setIndicator(), and TesterChartPage::updateChart().
void Indicator::getName | ( | QString & | d | ) |
Definition at line 89 of file Indicator.cpp.
References name.
Referenced by QtstalkerApp::slotDisableIndicator(), IndicatorPlot::slotEditIndicator(), IndicatorPlot::slotIndicatorHelp(), QtstalkerApp::slotIndicatorSummary(), IndicatorPlot::slotNewChartObject(), and TesterChartPage::updateChart().
void Indicator::setFile | ( | QString & | d | ) |
Definition at line 104 of file Indicator.cpp.
References file.
Referenced by IndicatorPage::newIndicator(), and setIndicator().
void Indicator::getFile | ( | QString & | d | ) |
Definition at line 109 of file Indicator.cpp.
References file.
Referenced by QtstalkerApp::loadIndicator(), IndicatorSummary::run(), QtstalkerApp::slotEditIndicator(), QtstalkerApp::slotNewIndicator(), IndicatorPlot::toggleDate(), and IndicatorPlot::toggleLog().
void Indicator::copy | ( | Indicator * | d | ) |
Definition at line 114 of file Indicator.cpp.
References addLine(), PlotLine::copy(), getDateFlag(), getEnable(), getLine(), getLines(), getLogScale(), getTabRow(), setDateFlag(), setEnable(), setLogScale(), and setTabRow().
Referenced by QtstalkerApp::loadIndicator().
void Indicator::setType | ( | QString & | d | ) |
Definition at line 94 of file Indicator.cpp.
References type.
Referenced by IndicatorPage::newIndicator(), and setIndicator().
void Indicator::getType | ( | QString & | d | ) |
Definition at line 99 of file Indicator.cpp.
References type.
Referenced by QtstalkerApp::addIndicatorButton(), QtstalkerApp::loadIndicator(), IndicatorSummary::loadIndicators(), and IndicatorSummary::run().
void Indicator::setDateFlag | ( | bool | d | ) |
Definition at line 134 of file Indicator.cpp.
References dateFlag.
Referenced by VOL::calculate(), VIDYA::calculate(), VFI::calculate(), THERM::calculate(), TALIB::calculate(), SZ::calculate(), SINWAV::calculate(), PP::calculate(), LOWPASS::calculate(), LMS::calculate(), FI::calculate(), ExScript::calculate(), CUS::calculate(), BARS::calculate(), copy(), and setIndicator().
bool Indicator::getDateFlag | ( | ) |
Definition at line 139 of file Indicator.cpp.
References dateFlag.
Referenced by Plot::addIndicator(), and copy().
void Indicator::setLogScale | ( | bool | d | ) |
Definition at line 144 of file Indicator.cpp.
References logScale.
Referenced by VOL::calculate(), VIDYA::calculate(), VFI::calculate(), THERM::calculate(), TALIB::calculate(), SZ::calculate(), SINWAV::calculate(), PP::calculate(), LOWPASS::calculate(), LMS::calculate(), FI::calculate(), ExScript::calculate(), CUS::calculate(), BARS::calculate(), copy(), and setIndicator().
bool Indicator::getLogScale | ( | ) |
Definition at line 149 of file Indicator.cpp.
References logScale.
Referenced by Plot::addIndicator(), and copy().
void Indicator::setIndicator | ( | Setting & | set, | |
QString & | f | |||
) |
Definition at line 154 of file Indicator.cpp.
References setDateFlag(), setEnable(), setFile(), setLogScale(), setName(), setTabRow(), and setType().
Referenced by QtstalkerApp::addIndicatorButton(), IndicatorPage::addLocalIndicator(), IndicatorPage::editIndicator(), QtstalkerApp::loadChart(), IndicatorSummary::loadIndicators(), QtstalkerApp::slotDeleteIndicator(), QtstalkerApp::slotDisableIndicator(), and QtstalkerApp::slotEnableIndicator().
QPtrList<PlotLine> Indicator::lines [private] |
Definition at line 58 of file Indicator.h.
Referenced by addLine(), clearLines(), getLine(), getLines(), Indicator(), and prependLine().
bool Indicator::enable [private] |
QString Indicator::name [private] |
QString Indicator::file [private] |
QString Indicator::type [private] |
int Indicator::tabRow [private] |
bool Indicator::dateFlag [private] |
Definition at line 64 of file Indicator.h.
Referenced by getDateFlag(), Indicator(), and setDateFlag().
bool Indicator::logScale [private] |
Definition at line 65 of file Indicator.h.
Referenced by getLogScale(), Indicator(), and setLogScale().