#include <VIDYA.h>


Public Member Functions | |
| VIDYA () | |
| virtual | ~VIDYA () |
| 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) |
| void | calcVidya (PlotLine *outSignal, PlotLine *inSignal, int iCmoPeriod, int iVidyaPeriod) |
Private Member Functions | |
| void | getStdDev (PlotLine *outLine, PlotLine *inLine, int iPeriod) |
| utilities -- should be called math :-) | |
| void | getNorm (PlotLine *inSig, double iMin, double iMax) |
| void | calcCMO (PlotLine *outSignal, PlotLine *inSignal, int iPeriod) |
| void | calcAdaptCMO (PlotLine *outSignal, PlotLine *inSignal, int iStdPeriod, int iMinLook, int iMaxLook) |
Private Attributes | |
| QColor | color |
| PlotLine::LineType | lineType |
| QString | label |
| int | period |
| int | volPeriod |
| IndicatorPlugin * | plug |
| BarData::InputType | input |
| QString | colorLabel |
| QString | labelLabel |
| QString | lineTypeLabel |
| QString | pluginLabel |
| QString | periodLabel |
| QString | volPeriodLabel |
| QString | inputLabel |
Definition at line 25 of file VIDYA.h.
| VIDYA::VIDYA | ( | ) |
Definition at line 31 of file VIDYA.cpp.
References colorLabel, IndicatorPlugin::FormatInputArray, IndicatorPlugin::FormatInteger, IndicatorPlugin::formatList, IndicatorPlugin::helpFile, inputLabel, labelLabel, lineTypeLabel, periodLabel, pluginLabel, IndicatorPlugin::pluginName, setDefaults(), and volPeriodLabel.
| Indicator * VIDYA::calculate | ( | ) | [virtual] |
Reimplemented from IndicatorPlugin.
Definition at line 65 of file VIDYA.cpp.
References Indicator::addLine(), calcVidya(), color, IndicatorPlugin::data, IndicatorPlugin::dateFlag, BarData::getInput(), PlotLine::getSize(), input, lineType, IndicatorPlugin::logScale, period, IndicatorPlugin::pluginName, PlotLine::setColor(), Indicator::setDateFlag(), PlotLine::setLabel(), Indicator::setLogScale(), PlotLine::setType(), and volPeriod.
| int VIDYA::indicatorPrefDialog | ( | QWidget * | w | ) | [virtual] |
Reimplemented from IndicatorPlugin.
Definition at line 382 of file VIDYA.cpp.
References PrefDialog::addColorItem(), PrefDialog::addComboItem(), PrefDialog::addIntItem(), PrefDialog::addTextItem(), color, PrefDialog::createPage(), PrefDialog::getColor(), PrefDialog::getComboIndex(), PrefDialog::getInt(), PrefDialog::getText(), IndicatorPlugin::helpFile, input, IndicatorPlugin::inputTypeList, label, lineType, IndicatorPlugin::lineTypes, period, PrefDialog::setHelpFile(), and volPeriod.
| void VIDYA::setDefaults | ( | ) |
Definition at line 55 of file VIDYA.cpp.
References BarData::Close, color, input, label, PlotLine::Line, lineType, period, IndicatorPlugin::pluginName, and volPeriod.
Referenced by setIndicatorSettings(), and VIDYA().
Reimplemented from IndicatorPlugin.
Definition at line 427 of file VIDYA.cpp.
References calcVidya(), IndicatorPlugin::checkFormat(), IndicatorPlugin::formatStringList, period, and volPeriod.
| void VIDYA::getIndicatorSettings | ( | Setting & | dict | ) | [virtual] |
Reimplemented from IndicatorPlugin.
Definition at line 442 of file VIDYA.cpp.
References color, colorLabel, input, inputLabel, label, labelLabel, lineType, lineTypeLabel, period, periodLabel, pluginLabel, IndicatorPlugin::pluginName, Setting::setData(), volPeriod, and volPeriodLabel.
| void VIDYA::setIndicatorSettings | ( | Setting & | dict | ) | [virtual] |
Reimplemented from IndicatorPlugin.
Definition at line 458 of file VIDYA.cpp.
References color, colorLabel, Setting::count(), Setting::getData(), input, inputLabel, label, labelLabel, lineType, lineTypeLabel, period, periodLabel, setDefaults(), volPeriod, and volPeriodLabel.
| void VIDYA::formatDialog | ( | QStringList & | vl, | |
| QString & | rv, | |||
| QString & | rs | |||
| ) | [virtual] |
Reimplemented from IndicatorPlugin.
Definition at line 491 of file VIDYA.cpp.
References PrefDialog::addComboItem(), PrefDialog::addIntItem(), PrefDialog::addTextItem(), PrefDialog::createPage(), PrefDialog::getCombo(), PrefDialog::getInt(), PrefDialog::getText(), IndicatorPlugin::helpFile, input, period, PrefDialog::setHelpFile(), and volPeriod.
| void VIDYA::calcVidya | ( | PlotLine * | outSignal, | |
| PlotLine * | inSignal, | |||
| int | iCmoPeriod, | |||
| int | iVidyaPeriod | |||
| ) |
(Price*Const*AbsCMO) + ((1-AbsCMO*Const)*VIDYA[1]),Price);
Definition at line 95 of file VIDYA.cpp.
References PlotLine::append(), calcCMO(), PlotLine::getData(), and PlotLine::getSize().
Referenced by calculate(), and calculateCustom().
utilities -- should be called math :-)
Definition at line 330 of file VIDYA.cpp.
References PlotLine::append(), PlotLine::getData(), PlotLine::getSize(), and period.
Referenced by calcAdaptCMO().
| void VIDYA::getNorm | ( | PlotLine * | inSig, | |
| double | iMin, | |||
| double | iMax | |||
| ) | [private] |
Definition at line 355 of file VIDYA.cpp.
References PlotLine::getData(), PlotLine::getSize(), and PlotLine::setData().
Referenced by calcAdaptCMO().
Chande Momentum Oscillator Raw VIDYA
Definition at line 139 of file VIDYA.cpp.
References PlotLine::append(), PlotLine::getData(), and PlotLine::getSize().
Referenced by calcVidya().
| void VIDYA::calcAdaptCMO | ( | PlotLine * | outSignal, | |
| PlotLine * | inSignal, | |||
| int | iStdPeriod, | |||
| int | iMinLook, | |||
| int | iMaxLook | |||
| ) | [private] |
Chande Momentum Oscillator Adaptaave VIDYA Not used here, but it has possibilities....
Definition at line 223 of file VIDYA.cpp.
References PlotLine::append(), PlotLine::getData(), getNorm(), PlotLine::getSize(), getStdDev(), and PlotLine::setData().
QColor VIDYA::color [private] |
Definition at line 40 of file VIDYA.h.
Referenced by calculate(), getIndicatorSettings(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().
PlotLine::LineType VIDYA::lineType [private] |
Definition at line 41 of file VIDYA.h.
Referenced by calculate(), getIndicatorSettings(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().
QString VIDYA::label [private] |
Definition at line 42 of file VIDYA.h.
Referenced by getIndicatorSettings(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().
int VIDYA::period [private] |
Definition at line 43 of file VIDYA.h.
Referenced by calculate(), calculateCustom(), formatDialog(), getIndicatorSettings(), getStdDev(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().
int VIDYA::volPeriod [private] |
Definition at line 44 of file VIDYA.h.
Referenced by calculate(), calculateCustom(), formatDialog(), getIndicatorSettings(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().
IndicatorPlugin* VIDYA::plug [private] |
BarData::InputType VIDYA::input [private] |
Definition at line 46 of file VIDYA.h.
Referenced by calculate(), formatDialog(), getIndicatorSettings(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().
QString VIDYA::colorLabel [private] |
Definition at line 55 of file VIDYA.h.
Referenced by getIndicatorSettings(), setIndicatorSettings(), and VIDYA().
QString VIDYA::labelLabel [private] |
Definition at line 56 of file VIDYA.h.
Referenced by getIndicatorSettings(), setIndicatorSettings(), and VIDYA().
QString VIDYA::lineTypeLabel [private] |
Definition at line 57 of file VIDYA.h.
Referenced by getIndicatorSettings(), setIndicatorSettings(), and VIDYA().
QString VIDYA::pluginLabel [private] |
QString VIDYA::periodLabel [private] |
Definition at line 59 of file VIDYA.h.
Referenced by getIndicatorSettings(), setIndicatorSettings(), and VIDYA().
QString VIDYA::volPeriodLabel [private] |
Definition at line 60 of file VIDYA.h.
Referenced by getIndicatorSettings(), setIndicatorSettings(), and VIDYA().
QString VIDYA::inputLabel [private] |
Definition at line 61 of file VIDYA.h.
Referenced by getIndicatorSettings(), setIndicatorSettings(), and VIDYA().