TALIB Class Reference

#include <TALIB.h>

Inheritance diagram for TALIB:

Inheritance graph
[legend]
Collaboration diagram for TALIB:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 TALIB ()
virtual ~TALIB ()
Indicatorcalculate ()
int indicatorPrefDialog (QWidget *)
void setDefaults ()
PlotLinecalculateCustom (QString &, QPtrList< PlotLine > &)
void getIndicatorSettings (Setting &)
void setIndicatorSettings (Setting &)
void getIndicatorList (QStringList &)
PlotLinegetMA (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


Detailed Description

Definition at line 25 of file TALIB.h.


Constructor & Destructor Documentation

TALIB::TALIB (  ) 

Definition at line 28 of file TALIB.cpp.

References IndicatorPlugin::helpFile, IndicatorPlugin::pluginName, and setDefaults().

TALIB::~TALIB (  )  [virtual]

Definition at line 36 of file TALIB.cpp.


Member Function Documentation

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

PlotLine * TALIB::calculateCustom ( QString &  p,
QPtrList< PlotLine > &  d 
) [virtual]

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  ) 

Definition at line 559 of file TALIB.cpp.

Referenced by Config::Config(), and setDefaults().

PlotLine * TALIB::getMA ( PlotLine d,
int  type,
int  period 
) [virtual]

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 
)

Definition at line 1121 of file TALIB.cpp.

Referenced by calculateCustom().


Member Data Documentation

QStringList TALIB::methodList [private]

Definition at line 42 of file TALIB.h.

Referenced by setDefaults().

QStringList TALIB::indicatorList [private]

Definition at line 43 of file TALIB.h.

Setting TALIB::parms [private]

Definition at line 44 of file TALIB.h.

Referenced by calculate(), getIndicatorSettings(), indicatorPrefDialog(), and setIndicatorSettings().


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