LMS Class Reference

#include <LMS.h>

Inheritance diagram for LMS:

Inheritance graph
[legend]
Collaboration diagram for LMS:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LMS ()
virtual ~LMS ()
Indicatorcalculate ()
int indicatorPrefDialog (QWidget *)
void setDefaults ()
PlotLinecalculateCustom (QString &, QPtrList< PlotLine > &)
void getIndicatorSettings (Setting &)
void setIndicatorSettings (Setting &)
void formatDialog (QStringList &vl, QString &rv, QString &rs)
void getLMS (QPtrList< PlotLine > &)

Private Member Functions

PlotLineslowK (PlotLine *inLine, int kPeriod, int slowKperiod)

Private Attributes

QColor colorK
QColor color2Day
QColor color5Day
PlotLine::LineType lineTypeK
PlotLine::LineType lineType2Day
PlotLine::LineType lineType5Day
QString label
bool show2Day
bool show5Day
bool cycleFlag
int fkPeriod
int skPeriod
int cmbIndex
bool testFlag
QString colorKLabel
QString color2DayLabel
QString color5DayLabel
QString labelLabel
QString lineTypeKLabel
QString lineType2DayLabel
QString lineType5DayLabel
QString pluginLabel
QString fkPeriodLabel
QString skPeriodLabel
QString cmbIndexLabel
QString show2DayLabel
QString show5DayLabel
QString plotTestLabel


Detailed Description

Definition at line 25 of file LMS.h.


Constructor & Destructor Documentation

LMS::LMS (  ) 

Definition at line 29 of file LMS.cpp.

References cmbIndexLabel, color2DayLabel, color5DayLabel, colorKLabel, fkPeriodLabel, IndicatorPlugin::FormatBool, IndicatorPlugin::FormatInteger, IndicatorPlugin::formatList, IndicatorPlugin::FormatString, IndicatorPlugin::helpFile, labelLabel, lineType2DayLabel, lineType5DayLabel, lineTypeKLabel, plotTestLabel, pluginLabel, IndicatorPlugin::pluginName, setDefaults(), show2DayLabel, show5DayLabel, and skPeriodLabel.

LMS::~LMS (  )  [virtual]

Definition at line 60 of file LMS.cpp.


Member Function Documentation

Indicator * LMS::calculate (  )  [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 85 of file LMS.cpp.

References Indicator::addLine(), IndicatorPlugin::dateFlag, getLMS(), IndicatorPlugin::logScale, Indicator::setDateFlag(), and Indicator::setLogScale().

int LMS::indicatorPrefDialog ( QWidget *  w  )  [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 360 of file LMS.cpp.

References PrefDialog::addCheckItem(), PrefDialog::addColorItem(), PrefDialog::addComboItem(), PrefDialog::addIntItem(), PrefDialog::addTextItem(), cmbIndex, color2Day, color5Day, colorK, PrefDialog::createPage(), cycleFlag, fkPeriod, PrefDialog::getCheck(), PrefDialog::getColor(), PrefDialog::getComboIndex(), PrefDialog::getInt(), PrefDialog::getText(), IndicatorPlugin::helpFile, label, lineType2Day, lineType5Day, lineTypeK, IndicatorPlugin::lineTypes, PrefDialog::setHelpFile(), show2Day, show5Day, skPeriod, and testFlag.

void LMS::setDefaults (  ) 

Definition at line 64 of file LMS.cpp.

References cmbIndex, color2Day, color5Day, colorK, cycleFlag, fkPeriod, label, PlotLine::Line, lineType2Day, lineType5Day, lineTypeK, IndicatorPlugin::pluginName, show2Day, show5Day, skPeriod, and testFlag.

Referenced by LMS(), and setIndicatorSettings().

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

Reimplemented from IndicatorPlugin.

Definition at line 441 of file LMS.cpp.

References IndicatorPlugin::checkFormat(), cmbIndex, cycleFlag, fkPeriod, IndicatorPlugin::formatStringList, getLMS(), show2Day, show5Day, and skPeriod.

void LMS::getIndicatorSettings ( Setting dict  )  [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 491 of file LMS.cpp.

References cmbIndex, cmbIndexLabel, color2Day, color2DayLabel, color5Day, color5DayLabel, colorK, colorKLabel, fkPeriod, fkPeriodLabel, label, labelLabel, lineType2Day, lineType2DayLabel, lineType5Day, lineType5DayLabel, lineTypeK, lineTypeKLabel, plotTestLabel, pluginLabel, IndicatorPlugin::pluginName, Setting::setData(), show2Day, show2DayLabel, show5Day, show5DayLabel, skPeriod, skPeriodLabel, and testFlag.

void LMS::setIndicatorSettings ( Setting dict  )  [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 521 of file LMS.cpp.

References cmbIndex, cmbIndexLabel, color2Day, color2DayLabel, color5Day, color5DayLabel, colorK, colorKLabel, Setting::count(), cycleFlag, fkPeriod, fkPeriodLabel, Setting::getData(), label, labelLabel, lineType2Day, lineType2DayLabel, lineType5Day, lineType5DayLabel, lineTypeK, lineTypeKLabel, plotTestLabel, setDefaults(), show2Day, show2DayLabel, show5Day, show5DayLabel, skPeriod, skPeriodLabel, and testFlag.

void LMS::formatDialog ( QStringList &  vl,
QString &  rv,
QString &  rs 
) [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 586 of file LMS.cpp.

References PrefDialog::addCheckItem(), PrefDialog::addComboItem(), PrefDialog::addIntItem(), PrefDialog::addTextItem(), PrefDialog::createPage(), fkPeriod, PrefDialog::getCheck(), PrefDialog::getCombo(), PrefDialog::getInt(), PrefDialog::getText(), IndicatorPlugin::helpFile, PrefDialog::setHelpFile(), show2Day, show5Day, and skPeriod.

void LMS::getLMS ( QPtrList< PlotLine > &  pll  ) 

Definition at line 102 of file LMS.cpp.

References PlotLine::append(), color2Day, color5Day, colorK, BarData::count(), cycleFlag, IndicatorPlugin::data, fkPeriod, PlotLine::getData(), BarData::getHigh(), BarData::getLow(), PlotLine::getSize(), lineType2Day, lineType5Day, lineTypeK, PlotLine::prepend(), PlotLine::setColor(), PlotLine::setData(), PlotLine::setLabel(), PlotLine::setType(), show2Day, show5Day, skPeriod, slowK(), and testFlag.

Referenced by calculate(), and calculateCustom().

PlotLine * LMS::slowK ( PlotLine inLine,
int  kPeriod,
int  slowKperiod 
) [private]

Definition at line 325 of file LMS.cpp.

References PlotLine::append(), PlotLine::getData(), IndicatorPlugin::getMA(), and PlotLine::getSize().

Referenced by getLMS().


Member Data Documentation

QColor LMS::colorK [private]

Definition at line 40 of file LMS.h.

Referenced by getIndicatorSettings(), getLMS(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

QColor LMS::color2Day [private]

Definition at line 41 of file LMS.h.

Referenced by getIndicatorSettings(), getLMS(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

QColor LMS::color5Day [private]

Definition at line 42 of file LMS.h.

Referenced by getIndicatorSettings(), getLMS(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

PlotLine::LineType LMS::lineTypeK [private]

Definition at line 43 of file LMS.h.

Referenced by getIndicatorSettings(), getLMS(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

PlotLine::LineType LMS::lineType2Day [private]

Definition at line 44 of file LMS.h.

Referenced by getIndicatorSettings(), getLMS(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

PlotLine::LineType LMS::lineType5Day [private]

Definition at line 45 of file LMS.h.

Referenced by getIndicatorSettings(), getLMS(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

QString LMS::label [private]

Definition at line 46 of file LMS.h.

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

bool LMS::show2Day [private]

Definition at line 50 of file LMS.h.

Referenced by calculateCustom(), formatDialog(), getIndicatorSettings(), getLMS(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

bool LMS::show5Day [private]

Definition at line 51 of file LMS.h.

Referenced by calculateCustom(), formatDialog(), getIndicatorSettings(), getLMS(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

bool LMS::cycleFlag [private]

Definition at line 52 of file LMS.h.

Referenced by calculateCustom(), getLMS(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

int LMS::fkPeriod [private]

Definition at line 53 of file LMS.h.

Referenced by calculateCustom(), formatDialog(), getIndicatorSettings(), getLMS(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

int LMS::skPeriod [private]

Definition at line 54 of file LMS.h.

Referenced by calculateCustom(), formatDialog(), getIndicatorSettings(), getLMS(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

int LMS::cmbIndex [private]

Definition at line 55 of file LMS.h.

Referenced by calculateCustom(), getIndicatorSettings(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

bool LMS::testFlag [private]

Definition at line 58 of file LMS.h.

Referenced by getIndicatorSettings(), getLMS(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

QString LMS::colorKLabel [private]

Definition at line 60 of file LMS.h.

Referenced by getIndicatorSettings(), LMS(), and setIndicatorSettings().

QString LMS::color2DayLabel [private]

Definition at line 61 of file LMS.h.

Referenced by getIndicatorSettings(), LMS(), and setIndicatorSettings().

QString LMS::color5DayLabel [private]

Definition at line 62 of file LMS.h.

Referenced by getIndicatorSettings(), LMS(), and setIndicatorSettings().

QString LMS::labelLabel [private]

Definition at line 63 of file LMS.h.

Referenced by getIndicatorSettings(), LMS(), and setIndicatorSettings().

QString LMS::lineTypeKLabel [private]

Definition at line 64 of file LMS.h.

Referenced by getIndicatorSettings(), LMS(), and setIndicatorSettings().

QString LMS::lineType2DayLabel [private]

Definition at line 65 of file LMS.h.

Referenced by getIndicatorSettings(), LMS(), and setIndicatorSettings().

QString LMS::lineType5DayLabel [private]

Definition at line 66 of file LMS.h.

Referenced by getIndicatorSettings(), LMS(), and setIndicatorSettings().

QString LMS::pluginLabel [private]

Definition at line 67 of file LMS.h.

Referenced by getIndicatorSettings(), and LMS().

QString LMS::fkPeriodLabel [private]

Definition at line 68 of file LMS.h.

Referenced by getIndicatorSettings(), LMS(), and setIndicatorSettings().

QString LMS::skPeriodLabel [private]

Definition at line 69 of file LMS.h.

Referenced by getIndicatorSettings(), LMS(), and setIndicatorSettings().

QString LMS::cmbIndexLabel [private]

Definition at line 70 of file LMS.h.

Referenced by getIndicatorSettings(), LMS(), and setIndicatorSettings().

QString LMS::show2DayLabel [private]

Definition at line 71 of file LMS.h.

Referenced by getIndicatorSettings(), LMS(), and setIndicatorSettings().

QString LMS::show5DayLabel [private]

Definition at line 72 of file LMS.h.

Referenced by getIndicatorSettings(), LMS(), and setIndicatorSettings().

QString LMS::plotTestLabel [private]

Definition at line 73 of file LMS.h.

Referenced by getIndicatorSettings(), LMS(), and setIndicatorSettings().


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