#include <VFI.h>


Public Member Functions | |
| VFI () | |
| virtual | ~VFI () |
| Indicator * | calculate () |
| int | indicatorPrefDialog (QWidget *) |
| void | setDefaults () |
| PlotLine * | calculateCustom (QString &, QPtrList< PlotLine > &) |
| void | getIndicatorSettings (Setting &) |
| void | setIndicatorSettings (Setting &) |
| void | formatDialog (QStringList &vl, QString &rv, QString &rs) |
| PlotLine * | getVFI () |
Private Attributes | |
| QColor | color |
| PlotLine::LineType | lineType |
| QString | label |
| int | period |
| int | smoothing |
| int | maType |
| QString | colorLabel |
| QString | lineTypeLabel |
| QString | labelLabel |
| QString | periodLabel |
| QString | smoothingLabel |
| QString | maTypeLabel |
| QString | pluginLabel |
Definition at line 24 of file VFI.h.
| VFI::VFI | ( | ) |
Definition at line 28 of file VFI.cpp.
References colorLabel, IndicatorPlugin::FormatInteger, IndicatorPlugin::formatList, IndicatorPlugin::FormatMAType, IndicatorPlugin::helpFile, labelLabel, lineTypeLabel, maTypeLabel, periodLabel, pluginLabel, IndicatorPlugin::pluginName, setDefaults(), and smoothingLabel.
| Indicator * VFI::calculate | ( | ) | [virtual] |
Reimplemented from IndicatorPlugin.
Definition at line 62 of file VFI.cpp.
References Indicator::addLine(), IndicatorPlugin::dateFlag, getVFI(), IndicatorPlugin::logScale, Indicator::setDateFlag(), and Indicator::setLogScale().
| int VFI::indicatorPrefDialog | ( | QWidget * | w | ) | [virtual] |
Reimplemented from IndicatorPlugin.
Definition at line 143 of file VFI.cpp.
References PrefDialog::addColorItem(), PrefDialog::addComboItem(), PrefDialog::addIntItem(), PrefDialog::addTextItem(), color, PrefDialog::createPage(), PrefDialog::getColor(), PrefDialog::getComboIndex(), PrefDialog::getInt(), IndicatorPlugin::getMATypes(), PrefDialog::getText(), IndicatorPlugin::helpFile, label, lineType, IndicatorPlugin::lineTypes, maType, period, PrefDialog::setHelpFile(), and smoothing.
| void VFI::setDefaults | ( | ) |
Definition at line 52 of file VFI.cpp.
References color, label, PlotLine::Line, lineType, maType, period, IndicatorPlugin::pluginName, and smoothing.
Referenced by setIndicatorSettings(), and VFI().
Reimplemented from IndicatorPlugin.
Definition at line 235 of file VFI.cpp.
References IndicatorPlugin::checkFormat(), IndicatorPlugin::formatStringList, IndicatorPlugin::getMATypes(), getVFI(), maType, period, and smoothing.
| void VFI::getIndicatorSettings | ( | Setting & | dict | ) | [virtual] |
Reimplemented from IndicatorPlugin.
Definition at line 219 of file VFI.cpp.
References color, colorLabel, label, labelLabel, lineType, lineTypeLabel, maType, maTypeLabel, period, periodLabel, pluginLabel, IndicatorPlugin::pluginName, Setting::setData(), smoothing, and smoothingLabel.
| void VFI::setIndicatorSettings | ( | Setting & | dict | ) | [virtual] |
Reimplemented from IndicatorPlugin.
Definition at line 185 of file VFI.cpp.
References color, colorLabel, Setting::count(), Setting::getData(), label, labelLabel, lineType, lineTypeLabel, maType, maTypeLabel, period, periodLabel, setDefaults(), smoothing, and smoothingLabel.
| void VFI::formatDialog | ( | QStringList & | vl, | |
| QString & | rv, | |||
| QString & | rs | |||
| ) | [virtual] |
Reimplemented from IndicatorPlugin.
Definition at line 251 of file VFI.cpp.
References PrefDialog::addComboItem(), PrefDialog::addIntItem(), PrefDialog::addTextItem(), PrefDialog::createPage(), PrefDialog::getCombo(), PrefDialog::getInt(), IndicatorPlugin::getMATypes(), PrefDialog::getText(), IndicatorPlugin::helpFile, maType, period, PrefDialog::setHelpFile(), and smoothing.
| PlotLine * VFI::getVFI | ( | ) |
Definition at line 71 of file VFI.cpp.
References PlotLine::append(), color, BarData::count(), IndicatorPlugin::data, BarData::getClose(), BarData::getHigh(), BarData::getLow(), IndicatorPlugin::getMA(), BarData::getVolume(), label, lineType, maType, period, PlotLine::setColor(), PlotLine::setLabel(), PlotLine::setType(), and smoothing.
Referenced by calculate(), and calculateCustom().
QColor VFI::color [private] |
Definition at line 39 of file VFI.h.
Referenced by getIndicatorSettings(), getVFI(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().
PlotLine::LineType VFI::lineType [private] |
Definition at line 40 of file VFI.h.
Referenced by getIndicatorSettings(), getVFI(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().
QString VFI::label [private] |
Definition at line 41 of file VFI.h.
Referenced by getIndicatorSettings(), getVFI(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().
int VFI::period [private] |
Definition at line 42 of file VFI.h.
Referenced by calculateCustom(), formatDialog(), getIndicatorSettings(), getVFI(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().
int VFI::smoothing [private] |
Definition at line 43 of file VFI.h.
Referenced by calculateCustom(), formatDialog(), getIndicatorSettings(), getVFI(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().
int VFI::maType [private] |
Definition at line 44 of file VFI.h.
Referenced by calculateCustom(), formatDialog(), getIndicatorSettings(), getVFI(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().
QString VFI::colorLabel [private] |
Definition at line 46 of file VFI.h.
Referenced by getIndicatorSettings(), setIndicatorSettings(), and VFI().
QString VFI::lineTypeLabel [private] |
Definition at line 47 of file VFI.h.
Referenced by getIndicatorSettings(), setIndicatorSettings(), and VFI().
QString VFI::labelLabel [private] |
Definition at line 48 of file VFI.h.
Referenced by getIndicatorSettings(), setIndicatorSettings(), and VFI().
QString VFI::periodLabel [private] |
Definition at line 49 of file VFI.h.
Referenced by getIndicatorSettings(), setIndicatorSettings(), and VFI().
QString VFI::smoothingLabel [private] |
Definition at line 50 of file VFI.h.
Referenced by getIndicatorSettings(), setIndicatorSettings(), and VFI().
QString VFI::maTypeLabel [private] |
Definition at line 51 of file VFI.h.
Referenced by getIndicatorSettings(), setIndicatorSettings(), and VFI().
QString VFI::pluginLabel [private] |