IndicatorPlugin Class Reference

#include <IndicatorPlugin.h>

Inheritance diagram for IndicatorPlugin:

Inheritance graph
[legend]
Collaboration diagram for IndicatorPlugin:

Collaboration graph
[legend]

List of all members.

Public Types

enum  FormatType {
  FormatInputArray, FormatInputArray2, FormatInteger, FormatDouble,
  FormatString, FormatMAType, FormatBool
}
enum  Operator {
  Equal, LessThan, LessThanEqual, GreaterThan,
  GreaterThanEqual, And, Or
}

Public Slots

void wakeup ()

Signals

void signalWakeup ()

Public Member Functions

 IndicatorPlugin ()
virtual ~IndicatorPlugin ()
void setIndicatorInput (BarData *)
void loadFile (QString &, Setting &)
void saveFile (QString &, Setting &)
void getPluginName (QString &)
void getHelpFile (QString &)
IndicatorPlugin::Operator getOperator (QString &)
PlotLinegetWilderMA (PlotLine *d, int)
void getMATypes (QStringList &)
bool checkFormat (QString &, QPtrList< PlotLine > &, int, int)
void setFormatMethod (QString &)
virtual Indicatorcalculate ()
virtual int indicatorPrefDialog (QWidget *)
virtual PlotLinecalculateCustom (QString &, QPtrList< PlotLine > &)
virtual void getIndicatorSettings (Setting &)
virtual void setIndicatorSettings (Setting &)
virtual void setCustomFunction (QStringList &)
virtual void loadIndicatorSettings (QString &)
virtual void saveIndicatorSettings (QString &)
virtual PlotLinegetMA (PlotLine *d, int, int)
virtual void formatDialog (QStringList &, QString &, QString &)

Protected Attributes

BarDatadata
QStringList lineTypes
QStringList inputTypeList
QStringList opList
QStringList maList
bool saveFlag
QString pluginName
QString helpFile
QValueList< FormatTypeformatList
QStringList formatStringList
bool dateFlag
bool logScale
QString formatMethod


Detailed Description

Definition at line 35 of file IndicatorPlugin.h.


Member Enumeration Documentation

enum IndicatorPlugin::FormatType

Enumerator:
FormatInputArray 
FormatInputArray2 
FormatInteger 
FormatDouble 
FormatString 
FormatMAType 
FormatBool 

Definition at line 44 of file IndicatorPlugin.h.

enum IndicatorPlugin::Operator

Enumerator:
Equal 
LessThan 
LessThanEqual 
GreaterThan 
GreaterThanEqual 
And 
Or 

Definition at line 55 of file IndicatorPlugin.h.


Constructor & Destructor Documentation

IndicatorPlugin::IndicatorPlugin (  ) 

Definition at line 27 of file IndicatorPlugin.cpp.

References dateFlag, BarData::getInputFields(), PlotLine::getLineTypes(), inputTypeList, lineTypes, logScale, maList, opList, pluginName, and saveFlag.

IndicatorPlugin::~IndicatorPlugin (  )  [virtual]

Definition at line 60 of file IndicatorPlugin.cpp.


Member Function Documentation

void IndicatorPlugin::signalWakeup (  )  [signal]

Referenced by wakeup().

void IndicatorPlugin::setIndicatorInput ( BarData d  ) 

Definition at line 64 of file IndicatorPlugin.cpp.

References data.

Referenced by CUS::calculate(), TesterStopPage::loadCustomLongStop(), TesterStopPage::loadCustomShortStop(), QtstalkerApp::loadIndicator(), Tester::loadSignals(), IndicatorSummary::run(), and Scanner::scan().

void IndicatorPlugin::loadFile ( QString &  file,
Setting dict 
)

Definition at line 69 of file IndicatorPlugin.cpp.

References Setting::setData().

Referenced by loadIndicatorSettings().

void IndicatorPlugin::saveFile ( QString &  file,
Setting dict 
)

Definition at line 104 of file IndicatorPlugin.cpp.

References Setting::getData(), and Setting::getKeyList().

Referenced by saveIndicatorSettings().

void IndicatorPlugin::getPluginName ( QString &  d  ) 

Definition at line 173 of file IndicatorPlugin.cpp.

References pluginName.

Referenced by FormulaEdit::functionDialog(), and IndicatorPage::newIndicator().

void IndicatorPlugin::getHelpFile ( QString &  d  ) 

Definition at line 178 of file IndicatorPlugin.cpp.

References helpFile.

IndicatorPlugin::Operator IndicatorPlugin::getOperator ( QString &  d  ) 

Definition at line 183 of file IndicatorPlugin.cpp.

References opList.

Referenced by UTIL::calculateCOMP().

PlotLine * IndicatorPlugin::getWilderMA ( PlotLine d,
int  period 
)

Definition at line 144 of file IndicatorPlugin.cpp.

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

Referenced by getMA().

void IndicatorPlugin::getMATypes ( QStringList &  l  ) 

Definition at line 128 of file IndicatorPlugin.cpp.

References maList.

Referenced by VFI::calculateCustom(), THERM::calculateCustom(), TALIB::calculateCustom(), FI::calculateCustom(), checkFormat(), VFI::formatDialog(), THERM::formatDialog(), TALIB::formatDialog(), FI::formatDialog(), VOL::indicatorPrefDialog(), VFI::indicatorPrefDialog(), THERM::indicatorPrefDialog(), TALIB::indicatorPrefDialog(), FI::indicatorPrefDialog(), and BARS::indicatorPrefDialog().

bool IndicatorPlugin::checkFormat ( QString &  p,
QPtrList< PlotLine > &  d,
int  hrange,
int  lrange 
)

Definition at line 189 of file IndicatorPlugin.cpp.

References FormatBool, FormatDouble, FormatInputArray, FormatInputArray2, FormatInteger, formatList, FormatMAType, formatStringList, getMATypes(), and pluginName.

Referenced by UTIL::calculateAccum(), UTIL::calculateADMS(), UTIL::calculateCOLOR(), UTIL::calculateCOUNTER(), VOL::calculateCustom(), VIDYA::calculateCustom(), VFI::calculateCustom(), THERM::calculateCustom(), SZ::calculateCustom(), SYMBOL::calculateCustom(), PP::calculateCustom(), LOWPASS::calculateCustom(), LMS::calculateCustom(), FI::calculateCustom(), ExScript::calculateCustom(), BARS::calculateCustom(), UTIL::calculateHL(), UTIL::calculateNormal(), and UTIL::calculatePER().

void IndicatorPlugin::setFormatMethod ( QString &  d  ) 

Definition at line 283 of file IndicatorPlugin.cpp.

References formatMethod.

Referenced by FormulaEdit::functionDialog().

Indicator * IndicatorPlugin::calculate (  )  [virtual]

Reimplemented in BARS, CUS, ExScript, FI, LMS, LOWPASS, PP, SINWAV, SZ, TALIB, THERM, VFI, VIDYA, and VOL.

Definition at line 292 of file IndicatorPlugin.cpp.

Referenced by TesterStopPage::loadCustomLongStop(), TesterStopPage::loadCustomShortStop(), QtstalkerApp::loadIndicator(), Tester::loadSignals(), IndicatorSummary::run(), and Scanner::scan().

int IndicatorPlugin::indicatorPrefDialog ( QWidget *   )  [virtual]

Reimplemented in BARS, CUS, ExScript, FI, LMS, LOWPASS, PP, SINWAV, SZ, TALIB, THERM, VFI, VIDYA, and VOL.

Definition at line 297 of file IndicatorPlugin.cpp.

Referenced by IndicatorPage::editIndicator(), and IndicatorPage::newIndicator().

PlotLine * IndicatorPlugin::calculateCustom ( QString &  ,
QPtrList< PlotLine > &   
) [virtual]

Reimplemented in BARS, ExScript, FI, LMS, LOWPASS, PP, SINWAV, SYMBOL, SZ, TALIB, THERM, UTIL, VFI, VIDYA, and VOL.

Definition at line 302 of file IndicatorPlugin.cpp.

Referenced by CUS::calculate().

void IndicatorPlugin::getIndicatorSettings ( Setting  )  [virtual]

Reimplemented in BARS, CUS, ExScript, FI, LMS, LOWPASS, PP, SINWAV, SZ, TALIB, THERM, VFI, VIDYA, and VOL.

Definition at line 307 of file IndicatorPlugin.cpp.

Referenced by IndicatorPage::editIndicator(), IndicatorPage::newIndicator(), and saveIndicatorSettings().

void IndicatorPlugin::setIndicatorSettings ( Setting  )  [virtual]

Reimplemented in BARS, CUS, ExScript, FI, LMS, LOWPASS, PP, SINWAV, SZ, TALIB, THERM, VFI, VIDYA, and VOL.

Definition at line 311 of file IndicatorPlugin.cpp.

Referenced by IndicatorPage::editIndicator(), loadIndicatorSettings(), and IndicatorPage::newIndicator().

void IndicatorPlugin::setCustomFunction ( QStringList &   )  [virtual]

Reimplemented in CUS.

Definition at line 315 of file IndicatorPlugin.cpp.

Referenced by TesterStopPage::loadCustomLongStop(), TesterStopPage::loadCustomShortStop(), Tester::loadSignals(), and Scanner::scan().

void IndicatorPlugin::loadIndicatorSettings ( QString &  d  )  [virtual]

Definition at line 326 of file IndicatorPlugin.cpp.

References dateFlag, loadFile(), logScale, and setIndicatorSettings().

Referenced by QtstalkerApp::loadIndicator(), and IndicatorSummary::run().

void IndicatorPlugin::saveIndicatorSettings ( QString &  d  )  [virtual]

Definition at line 319 of file IndicatorPlugin.cpp.

References getIndicatorSettings(), and saveFile().

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

Reimplemented in TALIB.

Definition at line 133 of file IndicatorPlugin.cpp.

References TALIB::getMA(), and getWilderMA().

Referenced by VOL::calculate(), FI::calculate(), FI::calculateCustom(), BARS::calculateMA(), THERM::getTHERM(), VFI::getVFI(), and LMS::slowK().

void IndicatorPlugin::formatDialog ( QStringList &  ,
QString &  ,
QString &   
) [virtual]

Reimplemented in BARS, ExScript, FI, LMS, LOWPASS, PP, SINWAV, SYMBOL, SZ, TALIB, THERM, UTIL, VFI, VIDYA, and VOL.

Definition at line 337 of file IndicatorPlugin.cpp.

Referenced by FormulaEdit::functionDialog().

void IndicatorPlugin::wakeup (  )  [slot]

Definition at line 278 of file IndicatorPlugin.cpp.

References signalWakeup().

Referenced by ExScript::doScript().


Member Data Documentation

BarData* IndicatorPlugin::data [protected]

Definition at line 94 of file IndicatorPlugin.h.

Referenced by VIDYA::calculate(), TALIB::calculate(), LOWPASS::calculate(), CUS::calculate(), BARS::calculateBar(), BARS::calculateCandle(), TALIB::calculateCustom(), BARS::calculateMA(), VOL::calculateNVI(), BARS::calculatePF(), VOL::calculatePVI(), VOL::calculatePVT(), VOL::calculateVOL(), FI::getFI(), ExScript::getInput(), LMS::getLMS(), BARS::getPFSettings(), PP::getPP(), SINWAV::getSINWAV(), SYMBOL::getSYMBOL(), SZ::getSZ(), THERM::getTHERM(), VFI::getVFI(), BARS::indicatorPrefDialog(), and setIndicatorInput().

QStringList IndicatorPlugin::lineTypes [protected]

Definition at line 95 of file IndicatorPlugin.h.

Referenced by IndicatorPlugin(), VOL::indicatorPrefDialog(), VIDYA::indicatorPrefDialog(), VFI::indicatorPrefDialog(), THERM::indicatorPrefDialog(), TALIB::indicatorPrefDialog(), SZ::indicatorPrefDialog(), SINWAV::indicatorPrefDialog(), LOWPASS::indicatorPrefDialog(), LMS::indicatorPrefDialog(), FI::indicatorPrefDialog(), ExScript::indicatorPrefDialog(), and BARS::indicatorPrefDialog().

QStringList IndicatorPlugin::inputTypeList [protected]

Definition at line 96 of file IndicatorPlugin.h.

Referenced by CUS::calculate(), IndicatorPlugin(), VIDYA::indicatorPrefDialog(), TALIB::indicatorPrefDialog(), LOWPASS::indicatorPrefDialog(), and BARS::indicatorPrefDialog().

QStringList IndicatorPlugin::opList [protected]

Definition at line 97 of file IndicatorPlugin.h.

Referenced by UTIL::calculateCOMP(), UTIL::formatDialog(), getOperator(), and IndicatorPlugin().

QStringList IndicatorPlugin::maList [protected]

Definition at line 98 of file IndicatorPlugin.h.

Referenced by getMATypes(), and IndicatorPlugin().

bool IndicatorPlugin::saveFlag [protected]

Definition at line 99 of file IndicatorPlugin.h.

Referenced by IndicatorPlugin().

QString IndicatorPlugin::pluginName [protected]

Definition at line 100 of file IndicatorPlugin.h.

Referenced by BARS::BARS(), VIDYA::calculate(), checkFormat(), CUS::CUS(), ExScript::ExScript(), FI::FI(), VOL::getIndicatorSettings(), VIDYA::getIndicatorSettings(), VFI::getIndicatorSettings(), THERM::getIndicatorSettings(), TALIB::getIndicatorSettings(), SZ::getIndicatorSettings(), SINWAV::getIndicatorSettings(), PP::getIndicatorSettings(), LOWPASS::getIndicatorSettings(), LMS::getIndicatorSettings(), FI::getIndicatorSettings(), ExScript::getIndicatorSettings(), CUS::getIndicatorSettings(), BARS::getIndicatorSettings(), getPluginName(), IndicatorPlugin(), LMS::LMS(), LOWPASS::LOWPASS(), PP::PP(), VIDYA::setDefaults(), VFI::setDefaults(), THERM::setDefaults(), SZ::setDefaults(), SINWAV::setDefaults(), PP::setDefaults(), LOWPASS::setDefaults(), LMS::setDefaults(), FI::setDefaults(), ExScript::setDefaults(), BARS::setDefaults(), SINWAV::SINWAV(), SYMBOL::SYMBOL(), SZ::SZ(), TALIB::TALIB(), THERM::THERM(), UTIL::UTIL(), VFI::VFI(), VIDYA::VIDYA(), and VOL::VOL().

QString IndicatorPlugin::helpFile [protected]

Definition at line 101 of file IndicatorPlugin.h.

Referenced by BARS::BARS(), CUS::CUS(), ExScript::ExScript(), FI::FI(), VOL::formatDialog(), VIDYA::formatDialog(), VFI::formatDialog(), UTIL::formatDialog(), THERM::formatDialog(), TALIB::formatDialog(), SZ::formatDialog(), SYMBOL::formatDialog(), SINWAV::formatDialog(), PP::formatDialog(), LOWPASS::formatDialog(), LMS::formatDialog(), FI::formatDialog(), ExScript::formatDialog(), BARS::formatDialog(), getHelpFile(), VOL::indicatorPrefDialog(), VIDYA::indicatorPrefDialog(), VFI::indicatorPrefDialog(), THERM::indicatorPrefDialog(), TALIB::indicatorPrefDialog(), SZ::indicatorPrefDialog(), SINWAV::indicatorPrefDialog(), PP::indicatorPrefDialog(), LOWPASS::indicatorPrefDialog(), LMS::indicatorPrefDialog(), FI::indicatorPrefDialog(), ExScript::indicatorPrefDialog(), CUS::indicatorPrefDialog(), BARS::indicatorPrefDialog(), LMS::LMS(), LOWPASS::LOWPASS(), PP::PP(), SINWAV::SINWAV(), SYMBOL::SYMBOL(), SZ::SZ(), TALIB::TALIB(), THERM::THERM(), UTIL::UTIL(), VFI::VFI(), VIDYA::VIDYA(), and VOL::VOL().

QValueList<FormatType> IndicatorPlugin::formatList [protected]

Definition at line 102 of file IndicatorPlugin.h.

Referenced by BARS::BARS(), UTIL::calculateAccum(), UTIL::calculateADMS(), UTIL::calculateCOLOR(), UTIL::calculateCOUNTER(), BARS::calculateCustom(), UTIL::calculateHL(), UTIL::calculateNormal(), UTIL::calculatePER(), checkFormat(), ExScript::ExScript(), FI::FI(), LMS::LMS(), LOWPASS::LOWPASS(), PP::PP(), SYMBOL::SYMBOL(), SZ::SZ(), THERM::THERM(), VFI::VFI(), VIDYA::VIDYA(), and VOL::VOL().

QStringList IndicatorPlugin::formatStringList [protected]

Definition at line 103 of file IndicatorPlugin.h.

Referenced by UTIL::calculateADMS(), UTIL::calculateCOLOR(), VOL::calculateCustom(), VIDYA::calculateCustom(), VFI::calculateCustom(), THERM::calculateCustom(), SZ::calculateCustom(), SYMBOL::calculateCustom(), PP::calculateCustom(), LOWPASS::calculateCustom(), LMS::calculateCustom(), FI::calculateCustom(), ExScript::calculateCustom(), BARS::calculateCustom(), UTIL::calculateHL(), and checkFormat().

bool IndicatorPlugin::dateFlag [protected]

Reimplemented in ExScript.

Definition at line 104 of file IndicatorPlugin.h.

Referenced by VOL::calculate(), VIDYA::calculate(), VFI::calculate(), THERM::calculate(), TALIB::calculate(), SZ::calculate(), SINWAV::calculate(), PP::calculate(), LOWPASS::calculate(), LMS::calculate(), FI::calculate(), CUS::calculate(), BARS::calculate(), IndicatorPlugin(), and loadIndicatorSettings().

bool IndicatorPlugin::logScale [protected]

Definition at line 105 of file IndicatorPlugin.h.

Referenced by VOL::calculate(), VIDYA::calculate(), VFI::calculate(), THERM::calculate(), TALIB::calculate(), SZ::calculate(), SINWAV::calculate(), PP::calculate(), LOWPASS::calculate(), LMS::calculate(), FI::calculate(), ExScript::calculate(), CUS::calculate(), BARS::calculate(), IndicatorPlugin(), and loadIndicatorSettings().

QString IndicatorPlugin::formatMethod [protected]

Definition at line 106 of file IndicatorPlugin.h.

Referenced by TALIB::formatDialog(), and setFormatMethod().


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