#include <TALIB.h>
Public Member Functions | |
TALIB () | |
virtual | ~TALIB () |
Indicator * | calculate () |
int | indicatorPrefDialog (QWidget *) |
void | setDefaults () |
PlotLine * | calculateCustom (QString &, QPtrList< PlotLine > &) |
void | getIndicatorSettings (Setting &) |
void | setIndicatorSettings (Setting &) |
void | getIndicatorList (QStringList &) |
PlotLine * | getMA (PlotLine *d, int, int) |
void | formatDialog (QStringList &vl, QString &rv, QString &rs) |
void | printError (QString, TA_RetCode) |
Private Attributes | |
QStringList | methodList |
QStringList | indicatorList |
Setting | parms |
Definition at line 25 of file TALIB.h.
TALIB::TALIB | ( | ) |
Definition at line 28 of file TALIB.cpp.
References IndicatorPlugin::helpFile, IndicatorPlugin::pluginName, and setDefaults().
Indicator * TALIB::calculate | ( | ) | [virtual] |
Reimplemented from IndicatorPlugin.
Definition at line 50 of file TALIB.cpp.
References Indicator::addLine(), PlotLine::append(), BarData::count(), IndicatorPlugin::data, IndicatorPlugin::dateFlag, BarData::getClose(), Setting::getData(), Setting::getDouble(), BarData::getHigh(), Setting::getInt(), BarData::getLow(), BarData::getOI(), BarData::getOpen(), PlotLine::getType(), BarData::getVolume(), PlotLine::Histogram, PlotLine::HistogramBar, IndicatorPlugin::logScale, parms, Indicator::prependLine(), PlotLine::setColor(), Indicator::setDateFlag(), PlotLine::setLabel(), Indicator::setLogScale(), and PlotLine::setType().
int TALIB::indicatorPrefDialog | ( | QWidget * | w | ) | [virtual] |
Reimplemented from IndicatorPlugin.
Definition at line 326 of file TALIB.cpp.
References PrefDialog::addColorItem(), PrefDialog::addComboItem(), PrefDialog::addDoubleItem(), PrefDialog::addIntItem(), PrefDialog::addTextItem(), BarData::Close, PrefDialog::createPage(), PlotLine::Dash, PlotLine::Dot, Setting::getData(), Setting::getDouble(), Setting::getInt(), PrefDialog::getItem(), Setting::getKeyList(), IndicatorPlugin::getMATypes(), IndicatorPlugin::helpFile, PlotLine::Histogram, IndicatorPlugin::inputTypeList, PlotLine::Line, IndicatorPlugin::lineTypes, parms, Setting::setData(), and PrefDialog::setHelpFile().
void TALIB::setDefaults | ( | ) |
Definition at line 41 of file TALIB.cpp.
References getIndicatorList(), and methodList.
Referenced by setIndicatorSettings(), and TALIB().
Reimplemented from IndicatorPlugin.
Definition at line 592 of file TALIB.cpp.
References PlotLine::append(), BarData::count(), IndicatorPlugin::data, BarData::getClose(), PlotLine::getData(), BarData::getHigh(), BarData::getLow(), IndicatorPlugin::getMATypes(), BarData::getOI(), BarData::getOpen(), PlotLine::getSize(), BarData::getVolume(), and printError().
void TALIB::getIndicatorSettings | ( | Setting & | dict | ) | [virtual] |
Reimplemented from IndicatorPlugin.
Definition at line 538 of file TALIB.cpp.
References Setting::getString(), parms, Setting::parse(), IndicatorPlugin::pluginName, and Setting::setData().
void TALIB::setIndicatorSettings | ( | Setting & | dict | ) | [virtual] |
Reimplemented from IndicatorPlugin.
Definition at line 547 of file TALIB.cpp.
References Setting::count(), Setting::getString(), parms, Setting::parse(), and setDefaults().
void TALIB::getIndicatorList | ( | QStringList & | l | ) |
Reimplemented from IndicatorPlugin.
Definition at line 916 of file TALIB.cpp.
References PlotLine::append(), PlotLine::getData(), and PlotLine::getSize().
Referenced by IndicatorPlugin::getMA().
void TALIB::formatDialog | ( | QStringList & | vl, | |
QString & | rv, | |||
QString & | rs | |||
) | [virtual] |
Reimplemented from IndicatorPlugin.
Definition at line 975 of file TALIB.cpp.
References PrefDialog::addComboItem(), PrefDialog::addDoubleItem(), PrefDialog::addIntItem(), PrefDialog::addTextItem(), BarData::Close, PrefDialog::createPage(), IndicatorPlugin::formatMethod, PrefDialog::getCombo(), PrefDialog::getDouble(), PrefDialog::getInt(), IndicatorPlugin::getMATypes(), PrefDialog::getText(), IndicatorPlugin::helpFile, and PrefDialog::setHelpFile().
void TALIB::printError | ( | QString | es, | |
TA_RetCode | rc | |||
) |
QStringList TALIB::methodList [private] |
QStringList TALIB::indicatorList [private] |
Setting TALIB::parms [private] |
Definition at line 44 of file TALIB.h.
Referenced by calculate(), getIndicatorSettings(), indicatorPrefDialog(), and setIndicatorSettings().