Bar Class Reference

#include <Bar.h>

List of all members.

Public Member Functions

 Bar ()
 ~Bar ()
int setDate (QString &)
int setDate (QDateTime &)
void getDate (QDateTime &)
void setOpen (double)
double getOpen ()
void setHigh (double)
double getHigh ()
void setLow (double)
double getLow ()
void setClose (double)
double getClose ()
void setVolume (double)
double getVolume ()
void setOI (int)
double getOI ()
void getString (QString &)
bool getTickFlag ()
void setTickFlag (bool)
bool getEmptyFlag ()
void setEmptyFlag (bool)
void getDateString (bool sepFlag, QString &)
void getDateTimeString (bool sepFlag, QString &)
void getTimeString (bool sepFlag, QString &)
void clear ()
bool verify ()

Protected Attributes

QDateTime date
double open
double high
double low
double close
double volume
int oi
bool openFlag
bool highFlag
bool lowFlag
bool closeFlag
bool volumeFlag
bool oiFlag
bool emptyFlag
bool tickFlag


Detailed Description

Definition at line 29 of file Bar.h.


Constructor & Destructor Documentation

Bar::Bar (  ) 

Definition at line 24 of file Bar.cpp.

References clear().

Bar::~Bar (  ) 

Definition at line 29 of file Bar.cpp.


Member Function Documentation

int Bar::setDate ( QString &  d  ) 

Definition at line 42 of file Bar.cpp.

References date.

Referenced by TesterReport::addTrade(), Yahoo::createAutoHistoryUrls(), UpgradeMessage::createChart(), StocksDialog::deleteRecord(), FuturesDialog::deleteRecord(), DbPlugin::getBar(), Spread::getHistory(), Index::getHistory(), DbPlugin::getIndexHistory(), DbPlugin::getSpreadHistory(), Index::loadIndexData(), DbPlugin::loadIndexData(), NYBOT::parse(), CSV::parse(), CME::parse(), Yahoo::parseHistory(), Yahoo::parseQuote(), BarData::prepend(), StocksDialog::saveRecord(), FuturesDialog::saveRecord(), VerticalLine::setSettings(), TrendLine::setSettings(), Text::setSettings(), SellArrow::setSettings(), FiboLine::setSettings(), Cycle::setSettings(), and BuyArrow::setSettings().

int Bar::setDate ( QDateTime &  d  ) 

Definition at line 33 of file Bar.cpp.

References date.

void Bar::getDate ( QDateTime &  d  ) 

Definition at line 101 of file Bar.cpp.

References date.

Referenced by TesterReport::addTrade(), Yahoo::createAutoHistoryUrls(), StocksDialog::createSplitPage(), Index::getHistory(), DbPlugin::getIndexHistory(), IndicatorPlot::getInfo(), BarData::prepend(), VerticalLine::setSettings(), TrendLine::setSettings(), Text::setSettings(), SellArrow::setSettings(), FiboLine::setSettings(), Cycle::setSettings(), BuyArrow::setSettings(), StocksDialog::split(), StocksDialog::updateFields(), and FuturesDialog::updateFields().

void Bar::setOpen ( double  d  ) 

Definition at line 106 of file Bar.cpp.

References emptyFlag, open, and openFlag.

Referenced by UpgradeMessage::createChart(), DbPlugin::getBar(), DbPlugin::getCCHistory(), Spread::getHistory(), Index::getHistory(), CC::getHistory(), DbPlugin::getIndexHistory(), DbPlugin::getSpreadHistory(), Index::loadIndexData(), DbPlugin::loadIndexData(), NYBOT::parse(), CSV::parse(), CME::parse(), Yahoo::parseHistory(), Yahoo::parseQuote(), BarData::prepend(), StocksDialog::saveRecord(), FuturesDialog::saveRecord(), and StocksDialog::split().

double Bar::getOpen (  ) 

Definition at line 113 of file Bar.cpp.

References open.

Referenced by DbPlugin::getCCHistory(), Index::getHistory(), CC::getHistory(), DbPlugin::getIndexHistory(), ExScript::getInput(), Index::loadIndexData(), DbPlugin::loadIndexData(), NYBOT::parse(), Yahoo::parseHistory(), BarData::prepend(), DbPlugin::setBar(), StocksDialog::split(), StocksDialog::updateFields(), and FuturesDialog::updateFields().

void Bar::setHigh ( double  d  ) 

Definition at line 118 of file Bar.cpp.

References emptyFlag, high, and highFlag.

Referenced by UpgradeMessage::createChart(), DbPlugin::getBar(), DbPlugin::getCCHistory(), Spread::getHistory(), Index::getHistory(), CC::getHistory(), DbPlugin::getIndexHistory(), DbPlugin::getSpreadHistory(), Index::loadIndexData(), DbPlugin::loadIndexData(), NYBOT::parse(), CSV::parse(), CME::parse(), Yahoo::parseHistory(), Yahoo::parseQuote(), BarData::prepend(), StocksDialog::saveRecord(), FuturesDialog::saveRecord(), and StocksDialog::split().

double Bar::getHigh (  ) 

Definition at line 125 of file Bar.cpp.

References high.

Referenced by BarData::createDateList(), DbPlugin::getCCHistory(), Index::getHistory(), CC::getHistory(), DbPlugin::getIndexHistory(), ExScript::getInput(), Index::loadIndexData(), DbPlugin::loadIndexData(), NYBOT::parse(), Yahoo::parseHistory(), BarData::prepend(), DbPlugin::setBar(), BarData::setMinMax(), StocksDialog::split(), StocksDialog::updateFields(), and FuturesDialog::updateFields().

void Bar::setLow ( double  d  ) 

Definition at line 130 of file Bar.cpp.

References emptyFlag, low, and lowFlag.

Referenced by UpgradeMessage::createChart(), DbPlugin::getBar(), DbPlugin::getCCHistory(), Spread::getHistory(), Index::getHistory(), CC::getHistory(), DbPlugin::getIndexHistory(), DbPlugin::getSpreadHistory(), Index::loadIndexData(), DbPlugin::loadIndexData(), NYBOT::parse(), CSV::parse(), CME::parse(), Yahoo::parseHistory(), Yahoo::parseQuote(), BarData::prepend(), StocksDialog::saveRecord(), FuturesDialog::saveRecord(), and StocksDialog::split().

double Bar::getLow (  ) 

Definition at line 137 of file Bar.cpp.

References low.

Referenced by BarData::createDateList(), DbPlugin::getCCHistory(), Index::getHistory(), CC::getHistory(), DbPlugin::getIndexHistory(), ExScript::getInput(), Index::loadIndexData(), DbPlugin::loadIndexData(), NYBOT::parse(), Yahoo::parseHistory(), BarData::prepend(), DbPlugin::setBar(), BarData::setMinMax(), StocksDialog::split(), StocksDialog::updateFields(), and FuturesDialog::updateFields().

void Bar::setClose ( double  d  ) 

Definition at line 142 of file Bar.cpp.

References close, closeFlag, and emptyFlag.

Referenced by UpgradeMessage::createChart(), DbPlugin::getBar(), DbPlugin::getCCHistory(), Spread::getHistory(), Index::getHistory(), CC::getHistory(), DbPlugin::getIndexHistory(), DbPlugin::getSpreadHistory(), Index::loadIndexData(), DbPlugin::loadIndexData(), NYBOT::parse(), CSV::parse(), CME::parse(), Yahoo::parseHistory(), Yahoo::parseQuote(), StocksDialog::saveRecord(), FuturesDialog::saveRecord(), and StocksDialog::split().

double Bar::getClose (  ) 

Definition at line 149 of file Bar.cpp.

References close.

Referenced by DbPlugin::getCCHistory(), Spread::getHistory(), Index::getHistory(), CC::getHistory(), DbPlugin::getIndexHistory(), ExScript::getInput(), DbPlugin::getSpreadHistory(), Index::loadIndexData(), DbPlugin::loadIndexData(), NYBOT::parse(), Yahoo::parseHistory(), DbPlugin::setBar(), StocksDialog::split(), StocksDialog::updateFields(), FuturesDialog::updateFields(), and PortfolioDialog::updatePortfolioItems().

void Bar::setVolume ( double  d  ) 

Definition at line 154 of file Bar.cpp.

References emptyFlag, volume, and volumeFlag.

Referenced by UpgradeMessage::createChart(), DbPlugin::getBar(), NYBOT::parse(), CSV::parse(), CME::parse(), Yahoo::parseHistory(), Yahoo::parseQuote(), BarData::prepend(), StocksDialog::saveRecord(), FuturesDialog::saveRecord(), and StocksDialog::split().

double Bar::getVolume (  ) 

Definition at line 161 of file Bar.cpp.

References volume.

Referenced by ExScript::getInput(), Yahoo::parseHistory(), BarData::prepend(), DbPlugin::setBar(), StocksDialog::split(), StocksDialog::updateFields(), and FuturesDialog::updateFields().

void Bar::setOI ( int  d  ) 

Definition at line 166 of file Bar.cpp.

References emptyFlag, oi, and oiFlag.

Referenced by UpgradeMessage::createChart(), DbPlugin::getBar(), Index::loadIndexData(), DbPlugin::loadIndexData(), NYBOT::parse(), CSV::parse(), CME::parse(), BarData::prepend(), and FuturesDialog::saveRecord().

double Bar::getOI (  ) 

Definition at line 173 of file Bar.cpp.

References oi.

Referenced by Index::getHistory(), DbPlugin::getIndexHistory(), ExScript::getInput(), Index::loadIndexData(), DbPlugin::loadIndexData(), BarData::prepend(), DbPlugin::setBar(), and FuturesDialog::updateFields().

void Bar::getString ( QString &  s  ) 

Definition at line 178 of file Bar.cpp.

References close, closeFlag, getDateTimeString(), high, highFlag, low, lowFlag, oi, oiFlag, open, openFlag, volume, and volumeFlag.

bool Bar::getTickFlag (  ) 

Definition at line 219 of file Bar.cpp.

References tickFlag.

Referenced by StocksDialog::updateFields(), and FuturesDialog::updateFields().

void Bar::setTickFlag ( bool  d  ) 

Definition at line 224 of file Bar.cpp.

References tickFlag.

Referenced by DbPlugin::getAllBars(), DbPlugin::getHistory(), and CSV::parse().

bool Bar::getEmptyFlag (  ) 

Definition at line 229 of file Bar.cpp.

References emptyFlag.

Referenced by Yahoo::createAutoHistoryUrls(), BarData::createDateList(), StocksDialog::createDetailsPage(), FuturesDialog::createDetailsPage(), StocksDialog::createSplitPage(), DbPlugin::getCCHistory(), CC::getHistory(), BarData::prepend(), StocksDialog::slotDateSearch(), FuturesDialog::slotDateSearch(), StocksDialog::slotFirstRecord(), FuturesDialog::slotFirstRecord(), StocksDialog::slotLastRecord(), FuturesDialog::slotLastRecord(), StocksDialog::slotNextRecord(), FuturesDialog::slotNextRecord(), StocksDialog::slotPrevRecord(), FuturesDialog::slotPrevRecord(), StocksDialog::split(), and PortfolioDialog::updatePortfolioItems().

void Bar::setEmptyFlag ( bool  d  ) 

Definition at line 234 of file Bar.cpp.

References emptyFlag.

Referenced by DbPlugin::getCCHistory(), and CC::getHistory().

void Bar::getDateString ( bool  sepFlag,
QString &  d 
)

Definition at line 239 of file Bar.cpp.

References date.

Referenced by IndicatorPlot::drawInfo(), getDateTimeString(), and IndicatorPlot::getInfo().

void Bar::getDateTimeString ( bool  sepFlag,
QString &  d 
)

Definition at line 247 of file Bar.cpp.

References getDateString(), and getTimeString().

Referenced by BarData::createDateList(), StocksDialog::createDetailsPage(), FuturesDialog::createDetailsPage(), StocksDialog::deleteRecord(), FuturesDialog::deleteRecord(), Spread::getHistory(), Index::getHistory(), DbPlugin::getIndexHistory(), ExScript::getInput(), DbPlugin::getSpreadHistory(), getString(), Index::loadIndexData(), DbPlugin::loadIndexData(), DbPlugin::setBar(), StocksDialog::updateFields(), FuturesDialog::updateFields(), PortfolioDialog::updatePortfolioItems(), and IndicatorPlot::updateStatusBar().

void Bar::getTimeString ( bool  sepFlag,
QString &  d 
)

Definition at line 261 of file Bar.cpp.

References date.

Referenced by getDateTimeString(), and IndicatorPlot::getInfo().

void Bar::clear (  ) 

Definition at line 269 of file Bar.cpp.

References close, closeFlag, date, emptyFlag, high, highFlag, low, lowFlag, oi, oiFlag, open, openFlag, tickFlag, volume, and volumeFlag.

Referenced by Bar(), BarData::clear(), BarData::createDateList(), and BarData::prepend().

bool Bar::verify (  ) 

Definition at line 290 of file Bar.cpp.

References close, high, low, and open.

Referenced by NYBOT::parse(), CME::parse(), Yahoo::parseHistory(), and Yahoo::parseQuote().


Member Data Documentation

QDateTime Bar::date [protected]

Definition at line 62 of file Bar.h.

Referenced by clear(), getDate(), getDateString(), getTimeString(), and setDate().

double Bar::open [protected]

Definition at line 63 of file Bar.h.

Referenced by clear(), getOpen(), getString(), setOpen(), and verify().

double Bar::high [protected]

Definition at line 64 of file Bar.h.

Referenced by clear(), getHigh(), getString(), setHigh(), and verify().

double Bar::low [protected]

Definition at line 65 of file Bar.h.

Referenced by clear(), getLow(), getString(), setLow(), and verify().

double Bar::close [protected]

Definition at line 66 of file Bar.h.

Referenced by clear(), getClose(), getString(), setClose(), and verify().

double Bar::volume [protected]

Definition at line 67 of file Bar.h.

Referenced by clear(), getString(), getVolume(), and setVolume().

int Bar::oi [protected]

Definition at line 68 of file Bar.h.

Referenced by clear(), getOI(), getString(), and setOI().

bool Bar::openFlag [protected]

Definition at line 69 of file Bar.h.

Referenced by clear(), getString(), and setOpen().

bool Bar::highFlag [protected]

Definition at line 70 of file Bar.h.

Referenced by clear(), getString(), and setHigh().

bool Bar::lowFlag [protected]

Definition at line 71 of file Bar.h.

Referenced by clear(), getString(), and setLow().

bool Bar::closeFlag [protected]

Definition at line 72 of file Bar.h.

Referenced by clear(), getString(), and setClose().

bool Bar::volumeFlag [protected]

Definition at line 73 of file Bar.h.

Referenced by clear(), getString(), and setVolume().

bool Bar::oiFlag [protected]

Definition at line 74 of file Bar.h.

Referenced by clear(), getString(), and setOI().

bool Bar::emptyFlag [protected]

Definition at line 75 of file Bar.h.

Referenced by clear(), getEmptyFlag(), setClose(), setEmptyFlag(), setHigh(), setLow(), setOI(), setOpen(), and setVolume().

bool Bar::tickFlag [protected]

Definition at line 76 of file Bar.h.

Referenced by clear(), getTickFlag(), and setTickFlag().


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