#include <LMS.h>
Definition at line 25 of file LMS.h.
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.
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().
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().
Definition at line 325 of file LMS.cpp.
References PlotLine::append(), PlotLine::getData(), IndicatorPlugin::getMA(), and PlotLine::getSize().
Referenced by getLMS().
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] |
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().